Skip to content

feat(mobile): restore thread details and keep files in its own sheet - #712

Merged
nixuuu merged 1 commit into
feat/workspace-v3-2from
feat/workspace-v3-3
Nov 14, 2026
Merged

nixuuu merged 1 commit into
feat/workspace-v3-2from
feat/workspace-v3-3

Conversation

@nixuuu

@nixuuu nixuuu commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Change

Stage 3 of the workspace v3 redesign, with mobile parity. JS only, shipped over the air.

  • Thread details on mobile again has what it had before feat(workspace): open thread files in persistent tabs #640:

    • connectors with availability and Manage;
    • placement;
    • pull requests with Link and Create;
    • secrets;
    • schedules with their actions;
    • background tasks;
    • lineage and subagents.

    PR and task rows still open full tabs of the current thread.

  • The header opens Files directly (a sheet with the tree) instead of a Modules sheet. The module picker (+), Open in tab and Close module are gone.

  • Shared domain: Workspace drops the per-thread panel state (sidebar, panelCollapsed, panelWidth, setSidebar, collapsePanel, sizePanel). The module list keeps only the full-tab kinds (pull requests and tasks). Saved layouts from older versions keep their file and PR tabs and ignore the old fields and removed module tabs.

  • docs/workspace.md: the mobile surfaces match the new model.

Related: #640

Verification

  • bun install, gen:check, full typecheck (web and mobile), lint, format:check and the web production build pass on this head.
  • expo export for iOS and Android passes.
  • @expo/fingerprint gives identical hashes for this head and dev: iOS 138e0c6b…, Android 906dc944…. The change is OTA-safe.
  • Full check:tmp passed: 3002 pass, 175 skip, 0 fail across 570 files, with nothing left in the temp dir. It ran before two later fixes that touch only styles and a label (summary card height, "Delete file" without an ellipsis).
  • Device check pending. I did not run the app on a simulator or device. The sheet contents reuse the pre-feat(workspace): open thread files in persistent tabs #640 components unchanged.

Copy audit (§8)

Before After Reason
Modules (header icon), sheet title Modules Files Names the only remaining panel, as on web.
Open module, Open sidebar module, Open in tab, Close module removed Mechanisms removed.
(none) This tab is no longer available. Close it to continue. Notice for a restored tab of a removed module, with the action.

No other text changes. Glossary terms are unchanged.

@nixuuu
nixuuu added this pull request to stack #713 November 14, 2026 11:54
Thread details on mobile again has everything the summary had at hand,
so connectors, pull requests with Link and Create, schedules and
background tasks sit beside placement, secrets and lineage. The header
opens Files directly instead of a modules sheet, and the module picker
is gone. Pull request and task rows still open full tabs.

The shared workspace model drops the per-thread panel state and the
removed Files and Connectors module tabs. Saved layouts from older
versions keep their tabs and ignore the old panel fields.

Related: #640
@nixuuu
nixuuu force-pushed the feat/workspace-v3-3 branch from 4bd3b2d to bd1e4fd Compare November 14, 2026 11:59
@nixuuu
nixuuu marked this pull request as ready for review November 14, 2026 12:39
@nixuuu
nixuuu merged commit df4c542 into dev Nov 14, 2026
12 checks passed
@nixuuu
nixuuu deleted the feat/workspace-v3-3 branch November 14, 2026 12:40
nixuuu added a commit that referenced this pull request Nov 14, 2026
…#710)

## Change

Stage 1 of the workspace v3 redesign (option C, approved by the user),
based on the workspace stack #640–#648.

**Thread summary is its own element.**
- A fixed 20 rem card in the thread area's top-right corner. It is no
longer the right panel's empty state, so it never changes width with the
panel and never jumps between threads.
- It collapses to a pill showing the branch, the newest pull request
with its checks, and the subagent count. Expanded or collapsed is one
device-wide choice (`threadPanelCollapsed` in the device view).
- It again has everything the summary had at hand before #640:
  - placement: computer, directory or worktree, branch, Manage worktree;
- pull requests with state, checks and the current branch's PR
highlighted, plus Link and Create;
- background tasks, and schedules with pause/resume/cancel plus
"Schedule a task";
  - connectors with availability plus Manage;
  - secrets, fork, lineage and subagents.
- The duplicate title row is gone.
- The chat column centres left of the card's lane (`chat-column`,
`--chat-lane`). The lane depends only on the area width, so toggling the
card never moves text. Where both do not fit, the column keeps left and
the card floats over it with a shadow. Below 32 rem the pill opens a
sheet. Escape in the card collapses it and returns focus to the pill.

**The right panel holds Files only.**
- One top-bar `Files` toggle (a sheet on narrow screens).
- Removed: the icon rail, the module dropdown, the panel `+`, pop-out,
both extra collapse buttons and the top-bar info button, together with
the Pull requests, Tasks and Connectors panel modules. PR and task rows
still open full tabs.
- Files open state and width (256–480 px) are device-wide. The old
per-thread values are no longer read.

**Motion.**
- The workspace grid eases the Files column (`t-panel-column`, 400 ms
open / 350 ms close, `--ease-smooth-out`). The panel content stays
mounted at a fixed width and only fades (`t-panel`), clipped by the
shrinking column.
- The summary grows from its pill (`t-summary`, `--duration-fast`, from
`--scale-large`) and shrinks back on `--duration-quick`.
- The double "rise" on module switches is gone.
- `prefers-reduced-motion` makes all of it instant; resizing disables
the column transition.

`docs/workspace.md` (Polish) describes the v3 model: the summary is a
separate element, not part of the panel.

Related: #640

## Verification

Run with `nice` and temp in `/var/tmp`, on the stack head:
- `bun install`, `gen:check`, full `typecheck`, `lint`, `format:check`,
the web production build and both mobile exports pass. iOS and Android
fingerprints are identical to `dev`.
- Focused test: `tests/integration/device-view.test.ts` now also covers
the Files width bounds.
- Full `check:tmp` passed on the stack head (see #712).

Browser checks used a private bench stack seeded with a long branch, PR
#412 with checks, 19 subagents, schedules and a long Polish title, in
light and dark at 1440, 1100 and 390 px:
- The card sits in its lane at 1440 and floats over the column at 1100.
The pill shows branch, PR and checks, and subagents. The sheet opens at
phone width.
- Mid-animation frames show the Files column easing (for example
`1013/138 px` → `885/266 px`) while the panel content fades inside it.
- Switching threads with Files open keeps the grid at `864px 288px` and
the card at the same x and width on every sample, so nothing jumps.

## Copy audit (§8)

| Before | After | Reason |
| --- | --- | --- |
| `Collapse panel` / `Show panel` / `Open modules` (top bar), `Collapse
panel` / `Close modules` (panel) | `Files` toggle (pressed state) | One
control. The label names the panel, like the sidebar toggles. |
| `Thread details` (top-bar info button) | `Show thread details` (pill),
`Collapse thread details` (card) | Verb first. The pill and the card
each have one action. |
| `Toggle thread details` (palette) | `Toggle thread details`, `Toggle
Files` | One command per element. |
| `Resize workspace panel` | `Resize Files` | Names what resizes. |
| `Working directory` (tree header) | `Files` + directory name | Says
what the panel is and whose files they are. |
| `Open module`, `Open sidebar module`, `Open in tab`, `Close module`,
`Thread details ▾` | removed | Mechanisms removed. |
| `Open Tasks to choose another task.` | `Choose another task in Thread
details.` | The Tasks module no longer exists. |
| (none) | `This tab is no longer available` / `Close it to continue.` |
Empty state for a restored tab of a removed module: a title plus one
sentence with the action. |

Glossary terms are unchanged ("thread", "subagent", "worktree"). No new
error texts. No text relies on colour alone: PR state and checks have
accessible labels. Checked with short and long titles and branches at
desktop and phone widths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant