Skip to content

Release 3.3.7: a sidebar that closes to a rail, "by danted4", toasts - #49

Merged
danted4 merged 4 commits into
mainfrom
3.3.7
Dec 4, 2026
Merged

danted4 merged 4 commits into
mainfrom
3.3.7

Conversation

@danted4

@danted4 danted4 commented Dec 4, 2026

Copy link
Copy Markdown
Owner

What the user asked for

  1. A chevron on the sidebar's right edge that closes it to a thin rail of icons, keeping "Code-Automata", the version, "by danted4" and the tagline visible, and giving the board's columns the space.
  2. The author beside the version, as ytd (4.1.11) and torrenter (3.10.3) now show theirs: name, then "v… · by danted4", the version linking its release and the owner their GitHub profile.
  3. (From the preview) the chevron inside the sidebar, tinted like New Task but dimmer; the old text gone at once on close and the brand fading into the top bar ~0.5 s later; every message that pushed the page down moved into a toast; toasts that go on their own unless fatal.

The user reviewed each of these in a local preview build (com.code-automata.preview), including a temporary toast scenario (not in this PR), and approved them.

Changes

  • store/sidebar-store.ts: collapsed (persisted, code-automata-sidebar; anything but true reads as open), toggled (not persisted: only a click animates), sidebarWidth/useSidebarWidth (256 / 56 px).
  • components/layout/sidebar.tsx: the open sidebar (now headed by BrandLockup) or the rail (logo, Open Project, the pages with the worktree count as a corner badge, compact theme picker, New Task; each with aria-label and tooltip). Same data-testids for the links and New Task in both. The toggle (sidebar-toggle, aria-expanded) sits inside the right edge (right-0), 25% primary fill, 45% on hover/focus. The open content keeps 256px while the sidebar widens, so nothing wraps.
  • components/layout/brand.tsx: BrandLockup (icon, name → /, "v{version} · by danted4", tagline), BrandBar (one line at the top left beside the rail, router.tsx), releaseUrl, OWNER_URL. Links are target=_blank (opened in the browser since 3.3.6).
  • globals.css: sidebar-appear-soon (200 ms after 180 ms) and -late (450 ms after 500 ms), off under prefers-reduced-motion.
  • router.tsx main paddingLeft, kanban/board.tsx scroller (board-columns) from the width; Settings header pt-10 while closed (top left is the brand's).
  • theme-switcher.tsx: compact (palette-only trigger, list opens to the right).
  • Toasts: lib/board-notice.ts (load → refused → connecting, one toast by id; connecting after CONNECTING_GRACE_MS 1.5 s), kanban/unreadable-tasks.tsx (the list with per-file two-click Delete, fixed width so Delete stays visible), Worktrees' failed reload; lib/toast-policy.ts durations (default 6 s, connecting 8 s, actionable 12 s, fatal ∞), sonner.tsx closeButton and the default duration.
  • CHANGELOG 3.3.7, CLAUDE.md (sidebar, brand, toasts), version 3.3.7.

Verified

  • yarn lint, typecheck, vitest (255 passed; new: sidebar-store, brand, sidebar, board-notice, unreadable-tasks), yarn build.
  • In a browser against ca-server (agent-browser, 1440×900): board, Settings and Worktrees with the sidebar open and closed; a broken task file (toast, Delete visible); the server stopped (connecting toast after the grace).
  • The user in the preview app on macOS.
  • Not run locally: the e2e suite, Rust checks (no Rust change besides the version).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Euju6UiFfM3Ax8sqArwAHM

Kanav Sharma and others added 4 commits December 5, 2026 00:39
- The sidebar closes to a 56px rail of icons (named in their tooltips) by
  a chevron tab inside its right edge, tinted with New Task's color; the
  choice is kept (store/sidebar-store.ts). The main area and the board's
  scroller follow its width, so the board gains about 200px.
- The brand, as ytd and torrenter show theirs: the icon, "Code-Automata",
  "v3.3.7 · by danted4" (the release and the owner's GitHub profile) and the
  tagline head the open sidebar; while it is closed the same line sits at
  the page's top left (BrandBar). After a click the old content goes at
  once and the new fades in (globals.css).
- Page messages are toasts at the bottom right instead of strips that
  pushed the content down: the board's connection, refused project and
  task load (lib/board-notice.ts; connecting only after a 1.5 s grace),
  unreadable task files with their Delete buttons, a failed worktree
  reload. Toasts go on their own unless fatal (lib/toast-policy.ts: 6 s by
  default, connecting 8 s, unreadable files 12 s; a refused project or
  tasks that cannot load stay until fixed); every toast can be closed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Euju6UiFfM3Ax8sqArwAHM
…hout a project

P49-1: "Retry now" calls preventDefault, so sonner keeps the fatal toast
open; a retry failing the same way no longer leaves an empty board with
nothing saying why.
P49-2: connecting is a plain toast with a spinner icon, not toast.loading
(sonner gives that no timer and no close button), so it goes after 8 s and
can be closed, as the changelog says. Checked in a browser: spinner and
close button shown, gone after its 8 s.
P49-3: boardNotice takes whether a project is open; without one there is
no stream and no notice.
P49-4: an inactive link's colors are classes, so hover changes its text
color again (inline color only for the current page); tested.
P49-6: the width and padding transitions are off under
prefers-reduced-motion, like the fades.
Also: the toast close button takes the theme's colors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Euju6UiFfM3Ax8sqArwAHM
…rror icon

Sonner merges an update into the toast of the same id, so the error kept
the connecting spinner; icon: undefined lets it fall back to the type's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Euju6UiFfM3Ax8sqArwAHM
Their tasks are missing from the board and the toast holds their Delete,
so it stays like the fatal ones (TOAST_MS.untilFixed, replacing fatal and
the 12 s actionable); its close button still hides it until the board is
opened again or the broken files change. Changelog and CLAUDE.md say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Euju6UiFfM3Ax8sqArwAHM
@danted4
danted4 merged commit 9482b8d into main Dec 4, 2026
8 checks passed
@danted4
danted4 deleted the 3.3.7 branch December 4, 2026 19:44
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