Skip to content

feat(native): complete SB-SECTIONS sidebar sections, shelves, and #286 project filter parity - #351

Merged
rynfar merged 2 commits into
nativefrom
nw/242-sb-sections-done
Nov 13, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/242-sb-sections-done

Conversation

@rynfar

@rynfar rynfar commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Ref #242
Closes #286

Problem

SB-SECTIONS remained partial in apps/native/parity/LEDGER.md due to missing cached SidebarPane / fleet lifecycle parity (natural visible snooze wake advancing SidebarPane.now immediately without waiting for the minute clock, single-env project-scope tail reset, fleet clock scheduling when local model.rows is empty, fleet settled_shelf_loading() notice redraw, #303 project-folder hover action alignment, and scoped empty states) alongside #286 (pingdotgg/t3code#29639, commit 20e92ffe02) project-filter combobox parity and reusable deterministic --sidebar-fixture snapshot support.

Summary of Changes

  • Core project scope & environment badge helpers (crates/core/src/sidebar/grouping.rs):
    • Added ProjectScope::single, pickable_scoped_project_groups, project_groups_span_environments, resolve_project_environment_badge ("Also on ..." / "On ..."), order_while_open (preserving open-combobox row order across live pin/unpin mutations), and filter_project_scope_items.
  • Sidebar controller & cached SidebarPane parity (crates/app/src/sidebar/{controller,mod,project_folders}.rs):
    • controller.rs: tracks local_settled_scope_keys to reset settled_visible = 10 on single-env scope changes, records built_at + last_wake_at, makes grow_settled_shelf and wake_timer fleet-aware, and emits AppEvent::Notice when fleet settled_shelf_loading() transitions.
    • mod.rs: advances SidebarPane.now immediately on natural wake (last_wake_at) so #woke-<id> renders on the wake frame without waiting for the minute timer, keeps schedule_clock_at active for fleet rows when local model.rows is empty, syncs fleet_seen on AppEvent::SidebarSelection, gates search rendering on active/fleet project presence, renders scoped empty states + #empty-add-project, and adds sb_sections_pane_tests covering cached SidebarPane sections, collapsed selected-row retention, older-settled paging/loading/retry/collapse-unmount, natural visible wake + #woke-<id> acknowledgement, fleet clock scheduling, and #286 click/Shift-click/pin stability.
    • project_folders.rs: aligns #303 folder header padding (px(8.).pb(px(1.))), scopes hover per folder key, and overlays #folder-new-{key} (SquarePen) flush left of the chevron while hiding collapsed hidden_count + FolderDot underneath on hover.
  • #286 project filter combobox (crates/app/src/sidebar/project_filter.rs) & #settled-show-more (crates/app/src/sidebar/row.rs):
    • Ports ProjectComboboxRow.tsx, ProjectEnvironmentBadge.tsx, ProjectPinButton.tsx, and Sidebar.tsx (pingdotgg/t3code#29639): 2-favicon 14px trigger stack with -4px overlap + 2px p.sidebar ring cutout, 288px frosted glass popover with Floating shadow, "Search projects..." input auto-focused on open, autoHighlight on open and query changes, scroll tracking (project_filter_scroll), "All projects" row with circular check badge + 24px trailing height-matching spacer, inline environment badge, ProjectRowActions (24x24 Settings left of far-right 24x24 Pin/PinOff with 24x24 reserved slot when !can_pin), order_while_open pin stability, plain click single-select + close, Shift-click toggle + stay-open, Escape focus restoration, Shift+F10 / Menu project settings handoff, right-click filter dismissal before ContextMenu, and keyboard navigation with fallback handlers on popup_id.
    • Allows #settled-show-more in row.rs (min_h(36), py(6), flex-shrunk icon + flex_1().min_w_0() label) to wrap "Could not load older threads. Retry" cleanly without right-edge clipping.
  • Reusable zero-write --sidebar-fixture <json> (crates/app/src/snapshot.rs) & ledger (apps/native/parity/LEDGER.md):
    • Added --sidebar-fixture <json> calling stop_pump() + freeze_snapshot() for deterministic single-env and multi-env sidebar captures across Waves 2B/3/4.
    • Flipped SB-SECTIONS to done and added apps/web/src/components/ProjectPinButton.tsx + #286 to SB-GROUPING.

Offscreen evidence

Draft release: https://github.com/rynfar/t3code/releases/tag/untagged-8c5564cc1539e4971b06 (native-parity-evidence-351)

  • Populated sections — Pinned, Active (Approval + Woke), Working (Working 1m), Snoozed, Settled + Show 25 more (Dark / Light):
    sections-populated-dark
    sections-populated-light
  • Collapsed shelves (Working 2, Snoozed 1, Settled 19) retaining selected Working row (Dark / Light):
    shelves-collapsed-dark
    shelves-collapsed-light
  • Older-settled shelf Loading state (Dark / Light):
    older-settled-loading-dark
    older-settled-loading-light
  • Older-settled shelf Could not load older threads. Retry state (Dark / Light):
    older-settled-retry-dark
    older-settled-retry-light
  • Project folders (#303) — hovered SquarePen action & collapsed FolderDot::Attention + count (Dark / Light):
    project-folders-dark
    project-folders-light
  • #286 project filter combobox — 2-favicon ring trigger, 288px frosted glass popover, circular check badge, machine badges, Settings + Pin actions & reserved !can_pin slot (Dark / Light):
    project-filter-286-dark
    project-filter-286-light

Verification (HEAD 3ef357a03b07aa3d915752118cb651ec9d94c8bb)

  • RED -> GREEN receipts:
    • t3-core: sidebar::grouping::tests::project_filter_scope_and_environment_badge_parity failed RED (assertion failed: single.is_selected(&groups[1])) -> GREEN
    • t3-native: sidebar::sb_sections_pane_tests::fleet_clock_and_project_filter_286_scope_and_pin_stability failed RED (schedule_clock_at must stay active for fleet rows even when single-env model.rows is empty) -> GREEN
  • cargo test -p t3-core -p t3-client: t3-client 105 passed, t3-core 1258 unit + 8 conformance passed, 0 failed
  • cargo test -p t3-native --features snapshot (isolated T3_NATIVE_HOME per suite):
    • sb_sections_pane_tests: 2 passed, 0 failed
    • snooze_grant_tests: 1 passed, 0 failed
    • deletion_tests: 11 passed, 0 failed
    • omitted_rows::tests: 6 passed, 0 failed
    • scoped_route_tests: 3 passed, 0 failed
    • project_filter_tests: 3 passed, 0 failed
    • grouping_frames: 1 passed, 0 failed
  • cargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings)
  • cargo build -p t3-native & cargo build -p t3-native --features snapshot: passed
  • node scripts/gen-theme.ts --check, node --test parity/sync.test.ts (42/42 passed), node conformance/generate.ts --check: passed
  • vp fmt --check apps/native/parity/LEDGER.md & vp run check:changed fork/native: passed (format, typecheck 40/40 packages, test 1 file / 2 tests)

Model: Gemini 4 Carbon (High) (Antigravity)

- Let #settled-show-more expand vertically and wrap long retry copy cleanly without clipping.
- Focus #project-filter-search on toggle, add autoHighlight on open and query change, restore focus on Escape, add key fallbacks and Shift+F10 project settings on popup_id, and close the filter before right-click ContextMenu.
- Track #project-filter-list scroll on keyboard highlight moves and apply Floating shadow to #project-filter-popup.
- Expand fleet_clock_and_project_filter_286_scope_and_pin_stability to cover real trigger clicks, query filtering, arrow navigation, Escape, Shift+F10, right-click menu handoff, and Shift/plain row selection.
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