Skip to content

fix(native): restore checkout grouping overrides - #184

Merged
rynfar merged 2 commits into
nativefrom
nw/152-grouping-overrides
Nov 4, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/152-grouping-overrides

Conversation

@rynfar

@rynfar rynfar commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

Native ignored saved per-checkout grouping rules and hid Checkouts for a lone checkout, making “Keep separate” impossible to undo. This ports the control restored in pingdotgg/t3code#23641 and connects the existing core grouping resolver to client settings.

The filter stores logical group keys and resolves their current members on every regroup, including global mode changes. Missing keys wait for shell/config readiness and archived groups read as All projects, while stored keys can return with their projects. Override insert/delete operations execute against the latest file in the existing ordered writer, preserving other instances’ entries. Regression tests cover selection when checkouts split or rejoin and edits made after another instance saves.

The local settings path now decodes the trimmed-key overrides record, preserves raw settings during unrelated edits, and patches one checkout's rule while retaining the others. Inherit deletes the key. Grouping uses the configured server's environment ID with the normalized checkout path, overrides take precedence over the global mode, and duplicate registrations retain every project reference. The Checkouts select uses the web's options, labels, placement, and lone-checkout behavior; only Remove requires project write access.

Sidebar/filter groups, the settings project list, and palette project labels share these settings. Added an in-memory offscreen project fixture so grouping can be captured without creating server projects. SB-GROUPING and ST-PROJECTS remain partial; both Issue columns now point to follow-up #185.

Validation passed: failing-first grouping/scope and latest-file writer regressions; all 1,268 workspace tests; cargo clippy --workspace --all-targets -- -D warnings; cargo test --workspace; snapshot build; theme generation check; parity sync tests; conformance fixture check; vp run check:changed 7a627cf8c4. Offscreen interaction verified split, lone-checkout selection, inherit/rejoin, settings list updates, palette labels, and filter checkmarks through split/rejoin using a copied smoke home. No server project/settings mutations or agent turns were used.

Local PNG evidence (factory instructions require local paths, not uploads):

  • Before: lone checkout had no Checkouts section: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/before-panel.png
  • After: lone checkout inherits the global default: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-panel.png
  • All four options and exact web labels: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/grouping-options.png
  • Default grouping: three fixture checkouts share one group: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/before-sidebar.png
  • Selecting Keep separate splits one checkout from its siblings: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-sidebar.png
  • The separated lone checkout still offers its rule: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-separate.png
  • Selecting Use global default rejoins all three checkouts: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-inherit.png
  • Settings list reflects the override: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-settings-list.png
  • Palette label reflects the override: /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-palette.png

Remaining gaps (tracked in #185):

  • SB-GROUPING: simultaneous cross-environment grouping/preferred checkout selection, merged scratch scopes/migration, project ordering/manual order across consumers, and the palette's full logical-group/checkout action flow. The palette still lists physical checkout actions, with override-aware labels.
  • ST-PROJECTS: existing icon/image picker and custom-icon drawing gaps, draft-menu project settings entry, and the cross-page project-scope notice remain.
  • Unverified at runtime: reduced project-write permissions and local disk-write failure feedback. The grouping control uses the existing local settings writer and is independent of project mutation permissions.

Closes #152.

Review-fix scope evidence (before/after, same offscreen interaction):

  • /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/before-scope-split.png
  • /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-scope-split.png
  • /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/before-scope-rejoin.png
  • /Volumes/DevSSD/t3code-native-152-grouping-overrides/apps/native/.evidence-152/after-scope-rejoin.png

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar force-pushed the nw/152-grouping-overrides branch from 07b775a to 8f21eb9 Compare November 4, 2026 00:25
@rynfar
rynfar merged commit 4785767 into native Nov 4, 2026
@rynfar rynfar mentioned this pull request Nov 4, 2026
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