Skip to content

feat(web): toggle all folders in Files tab - #137

Merged
incognitojam merged 1 commit into
mainfrom
t3code/add-files-collapse-expand
Aug 14, 2026
Merged

feat(web): toggle all folders in Files tab#137
incognitojam merged 1 commit into
mainfrom
t3code/add-files-collapse-expand

Conversation

@incognitojam

@incognitojam incognitojam commented Aug 14, 2026

Copy link
Copy Markdown
Collaborator

The Files tab could only expand or collapse folders one at a time, even though diff views already provide a bulk control.

This adds the matching collapse/expand button beside refresh. It follows manual tree expansion state, collapses every directory when any are open, and expands every directory when the tree is fully collapsed.

Verification

  • vp run --filter @t3tools/web typecheck
  • Files-focused web unit suite: 32 tests passed
  • Authenticated local web pass: collapse moved the visible tree from 5 expanded folders to 0 and changed the action to “Expand all files”; expanding restored the folders and changed it back to “Collapse all files”

Written by an agent (T3 Code, gpt-5.6-sol).

@incognitojam
incognitojam force-pushed the t3code/add-files-collapse-expand branch from 609810d to f0577d0 Compare August 14, 2026 18:25
@incognitojam
incognitojam merged commit 9ac67dc into main Aug 14, 2026
9 checks passed
@incognitojam
incognitojam deleted the t3code/add-files-collapse-expand branch August 14, 2026 19:41
incognitojam added a commit that referenced this pull request Aug 14, 2026
> [!NOTE]
> Moves pull request checks out of the Summary scroll and into a
first-class Checks tab, while preserving the existing check actions and
header rollup.

## What Changed

- Added a dedicated Checks tab between Summary and Timeline in both full
and condensed pull request chrome.
- Moved the existing check list, host links, status labels, and
failing-check Fix handoff into the new tab.
- Made the tab-bar check rollup a flat button that opens Checks, and
kept the status icon beside the rollup in the tab content.
- Added a discoverable empty state and a Checks-specific loading ghost.
- Removed the nested Checks section from Summary and added focused
component coverage.

## Why

Checks are a primary pull request state, but they were buried below the
description in Summary. Giving them a tab makes the result directly
reachable without making users scroll through unrelated content.

## UI Changes

| Before: nested under Summary | After: dedicated Checks tab |
| --- | --- |
| ![Checks nested under
Summary](https://raw.githubusercontent.com/yngatech/t3code/2ce6a48902e9f98715a32f34acdafc6018cfc409/assets/pr/pr-checks-tab-before.jpg)
| ![Dedicated Checks
tab](https://raw.githubusercontent.com/yngatech/t3code/2ce6a48902e9f98715a32f34acdafc6018cfc409/assets/pr/pr-checks-tab-after.jpg)
|

Screenshots use the Pull Requests page with host-reported checks from
repository PRs #137 and #138, respectively.

## Verification

- `vp test run
apps/web/src/components/pullRequest/PullRequestChecksTab.test.tsx
apps/web/src/components/pullRequest/pullRequestChecks.test.tsx`
- `vp run --filter @t3tools/web typecheck`
- Targeted formatting and lint checks for the changed pull request
components
- Authenticated local web preview against repository PR #138: the
tab-bar rollup opens Checks, which renders all nine host-reported runs
with the status icon beside the summary and no extra divider

## Checklist

- [x] This PR is small and focused
- [x] I explained what changed and why
- [x] I included before/after screenshots for the UI change
- [x] No video is needed because this change adds no motion or timing
behavior

---
Written by an agent (T3 Code, gpt-5.6-sol).
incognitojam added a commit that referenced this pull request Aug 15, 2026
The Files tab could only expand or collapse folders one at a time, even
though diff views already provide a bulk control.

This adds the matching collapse/expand button beside refresh. It follows
manual tree expansion state, collapses every directory when any are
open, and expands every directory when the tree is fully collapsed.

## Verification

- `vp run --filter @t3tools/web typecheck`
- Files-focused web unit suite: 32 tests passed
- Authenticated local web pass: collapse moved the visible tree from 5
expanded folders to 0 and changed the action to “Expand all files”;
expanding restored the folders and changed it back to “Collapse all
files”

---
Written by an agent (T3 Code, gpt-5.6-sol).
incognitojam added a commit that referenced this pull request Aug 15, 2026
> [!NOTE]
> Moves pull request checks out of the Summary scroll and into a
first-class Checks tab, while preserving the existing check actions and
header rollup.

## What Changed

- Added a dedicated Checks tab between Summary and Timeline in both full
and condensed pull request chrome.
- Moved the existing check list, host links, status labels, and
failing-check Fix handoff into the new tab.
- Made the tab-bar check rollup a flat button that opens Checks, and
kept the status icon beside the rollup in the tab content.
- Added a discoverable empty state and a Checks-specific loading ghost.
- Removed the nested Checks section from Summary and added focused
component coverage.

## Why

Checks are a primary pull request state, but they were buried below the
description in Summary. Giving them a tab makes the result directly
reachable without making users scroll through unrelated content.

## UI Changes

| Before: nested under Summary | After: dedicated Checks tab |
| --- | --- |
| ![Checks nested under
Summary](https://raw.githubusercontent.com/yngatech/t3code/2ce6a48902e9f98715a32f34acdafc6018cfc409/assets/pr/pr-checks-tab-before.jpg)
| ![Dedicated Checks
tab](https://raw.githubusercontent.com/yngatech/t3code/2ce6a48902e9f98715a32f34acdafc6018cfc409/assets/pr/pr-checks-tab-after.jpg)
|

Screenshots use the Pull Requests page with host-reported checks from
repository PRs #137 and #138, respectively.

## Verification

- `vp test run
apps/web/src/components/pullRequest/PullRequestChecksTab.test.tsx
apps/web/src/components/pullRequest/pullRequestChecks.test.tsx`
- `vp run --filter @t3tools/web typecheck`
- Targeted formatting and lint checks for the changed pull request
components
- Authenticated local web preview against repository PR #138: the
tab-bar rollup opens Checks, which renders all nine host-reported runs
with the status icon beside the summary and no extra divider

## Checklist

- [x] This PR is small and focused
- [x] I explained what changed and why
- [x] I included before/after screenshots for the UI change
- [x] No video is needed because this change adds no motion or timing
behavior

---
Written by an agent (T3 Code, gpt-5.6-sol).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant