Skip to content

Timeline virtualization (roadmap B6): every view under 16 ms - #11

Merged
erikgoins merged 7 commits into
mainfrom
feature/timeline-virtual
Nov 10, 2026
Merged

erikgoins merged 7 commits into
mainfrom
feature/timeline-virtual

Conversation

@erikgoins

Copy link
Copy Markdown
Contributor

Stacked on #10. Roadmap B6, the last item that needs no real GitHub.

What

  • apps/web/src/lib/viewport.ts: the list's window-scroll virtualization, moved out so the timeline shares it.
  • Timeline draws only labels and bars near the viewport (40 of 2,000 tasks). A dependency arrow is drawn when it crosses the drawn rows, even with one end off screen. J/K scroll the focused row into view.
  • The unscheduled list shows 100 tasks and a "Show more" button.

Measured (2,000 tasks, local Chromium)

List 6 ms, board 7 ms, timeline 10 ms per switch (timeline was 27–32 ms). Every view now meets the roadmap's 16 ms target locally.

Tested

  • Locally: pnpm lint, pnpm typecheck, pnpm test (390 passed), pnpm test:e2e (33 passed), pnpm smoke: all pass.
  • New: the timeline renders fewer than 150 rows with one bar per label; 200 J presses reach task 200 and keep it in view. The Read Only exit check still counts exactly 2 timeline rows.

🤖 Generated with Claude Code

https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun

erikgoins and others added 6 commits November 10, 2026 09:30
- packages/core keymap: every shortcut as data, a matcher for chords and
  two-key sequences, display strings; shared with the Mac app (decision 028).
- useShortcuts: one listener, typing and modal guards, scopes.
- Command menu (cmdk): search tasks, run any command with its keys; pickers for
  status, priority, cycle; value dialog for due date and estimate.
- Focus, selection, and on-screen order in every view; bulk edits run one by one
  and undo as one step. Copy ID, URL, branch name. ? shortcut sheet.
- Tests: keymap units (conflicts proven red), 15 E2E tests across every group.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
PR #9 bound them to Members and Tasks; the accepted keymap (Q6, decision 028)
reserves them. Members and Tasks are menu-only. RESERVED in keymap.ts lists
Linear's keys for unbuilt pages, and a test (proven red) keeps them unbound.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
…st, dense cards

- Workspace layout owns the store, sidebar, panel, and keys: shortcuts work on
  every workspace page and the store survives navigation.
- Split context (stable API vs state) and a focus store: J moves focus in 0.3 ms
  on 2,000 rows (Track C re-rendered every row).
- List grouped by status, virtualized (37 rows in the DOM of 2,000): switch 14-18 ms;
  board 7 ms with 50-card columns. Dense rows and cards: priority, ID, status,
  labels, due date, avatars.
- Write-path line (decisions 008, 021) from viewer.githubLinked; empty states;
  dark mode follows the system.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
- lib/viewport.ts: the list's window-scroll virtualization, shared.
- Timeline draws only labels and bars near the viewport (40 of 2,000); arrows
  that cross the drawn rows; J/K scroll the focused row into view.
- Unscheduled list shows 100 and a Show more button.
- Measured at 2,000 tasks: list 6 ms, board 7 ms, timeline 10 ms (was 27-32 ms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
@erikgoins
erikgoins changed the base branch from feature/shell to main November 10, 2026 17:48
- Create the test account through the API: the onboarding form hung once on CI
  (covered by identity.spec.ts anyway).
- Read timeline label and bar counts in one pass (a re-render raced two reads).
- Keep traces and screenshots of every failure and upload them from CI.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun
Signed-off-by: Erik Goins <erikgoins@gmail.com>
@erikgoins
erikgoins merged commit 29d454d into main Nov 10, 2026
3 checks passed
erikgoins added a commit that referenced this pull request Nov 10, 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