Skip to content
This repository was archived by the owner on Oct 21, 2026. It is now read-only.

feat(web): collapse the sidebar to an icon rail - #33

Merged
donnes merged 2 commits into
mainfrom
t3code/icon-sidebar
Sep 28, 2026
Merged

donnes merged 2 commits into
mainfrom
t3code/icon-sidebar

Conversation

@donnes

@donnes donnes commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

Collapsing the sidebar hid it completely, losing sight of which company you were in and which threads needed you.

  • Collapsed on desktop and web, the sidebar is a rail: profile avatar (menu + "waiting elsewhere" dot), new thread, search, notes, automations, one icon per pinned/active thread in the current profile with a static status dot and title tooltip, then usage and settings. With all profiles shown, each thread carries its profile color on its edge. Mobile keeps its sheet.
  • The rail starts below the titlebar row so macOS traffic lights and the toggle sit on one continuous bar; page headers inset only past what extends beyond the rail.
  • The expanded header is symmetric: traffic lights, their own left padding, the T3 Code mark, and the toggle at the far right with the same padding. Without traffic lights both fall back to the usual controls inset.

Layout lives in profileScope/profileSidebar.css; upstream header/toggle components are unchanged.

Verification: web typecheck and lint; checked in a dev build with simulated macOS traffic lights (desktop app not run; please check zoom).

Screenshots (demo data; macOS traffic lights simulated at the desktop app's inset)

Before After
Expanded Header before Symmetric header
Collapsed Sidebar hidden Icon rail

Stack (review bottom-up):

  1. Usage keybinding sort order
  2. Sidebar profile switcher
  3. Icon-rail sidebar
  4. Settings → Profiles
  5. Mobile profile filter (this PR: 3)

Done by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.

🤖 Generated with Claude Code

@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L labels Sep 28, 2026
@donnes
donnes force-pushed the t3code/icon-sidebar branch 2 times, most recently from c252cf8 to 7b3636d Compare September 28, 2026 19:52
@donnes
donnes force-pushed the t3code/profile-switcher branch from 1f5665c to 027b05a Compare September 28, 2026 20:33
Base automatically changed from t3code/profile-switcher to main September 28, 2026 20:39
donnes and others added 2 commits September 28, 2026 17:40
Collapsing the sidebar hid it completely, losing sight of which company you were in and which
threads needed you.

- Collapsed on desktop and web, the sidebar is a rail: the profile avatar (with its menu and the
  "waiting elsewhere" dot), new thread, search, notes, automations, one icon per pinned or active
  thread in the current profile with a static status dot and a title tooltip, then usage and
  settings. With all profiles shown, each thread carries its profile's color on its edge. Mobile
  keeps its sheet.
- The rail starts below the titlebar row, so macOS traffic lights and the sidebar toggle sit on one
  continuous bar; page headers inset only past what extends beyond the rail.
- The expanded header is symmetric: traffic lights, the lights' own left padding, the T3 Code
  mark, and the toggle at the far right with the same padding. Without traffic lights both insets
  fall back to the usual controls inset.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Review fixes for the collapsed sidebar:

- Collapsing unmounted the expanded sidebar, and with it the thread jump and previous/next
  shortcuts that `Sidebar` and `LegacySidebar` register. It now stays mounted but hidden while the
  rail shows, as it stayed mounted off-canvas before; hidden rows also drop their live
  subscriptions. A regression test covers collapse and expand.
- The rail compared snooze times against the zone-less minute string, which `Date.parse` reads as
  local time, so snoozed threads woke early or late outside UTC. It now compares full UTC
  timestamps and, like the expanded sidebar, re-reads the clock exactly when the earliest snooze
  ends. Tests run in America/Sao_Paulo.
- The menu button truncates its last span, which clipped the icon wrapper and its status dot. A
  screen-reader title now comes last instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@donnes
donnes force-pushed the t3code/icon-sidebar branch from 7b3636d to 5245f93 Compare September 28, 2026 20:40
@donnes
donnes enabled auto-merge (squash) September 28, 2026 20:40
@donnes
donnes merged commit 394f67f into main Sep 28, 2026
15 checks passed
@donnes
donnes deleted the t3code/icon-sidebar branch September 28, 2026 20:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

size:L vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant