Repository navigation
Track B: speed foundation — client store, /sync with ETag, optimistic edits, side panel - #8
Merged
Merged
Conversation
…its, side panel - GET /workspaces/:id/sync: the viewer's filtered snapshot with a strong ETag over its exact bytes; 304 on match; private, no-cache, Vary: Cookie. - BoardStore: pending edits layered over each snapshot, stale polls discarded, 5 s polling while visible, undo stack. Views read the store; view switches use history.replaceState, no server render. - Side panel opens tasks from the store; fields edit in place, optimistically. - Decision 033 amends 026: snapshot ETag instead of a change table; no IndexedDB yet. - Tests: sync leak test (proven red), store and field-value units, speed E2E on 2,000 tasks (no request on view switch; 23-60 ms), Read Only exit check on /sync. 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>
This was referenced Nov 10, 2026
Signed-off-by: Erik Goins <erikgoins@gmail.com> # Conflicts: # docs/INDEX.md # docs/STATE.md # packages/server/src/index.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Roadmap Track B (decisions 026, 027; new decision 033 amends 026).
What
GET /api/v1/workspaces/:id/sync: the viewer's filtered snapshot with a strong ETag over its exact bytes; 304 on match.Cache-Control: private, no-cache,Vary: Cookie.apps/web/src/lib/board-store.ts): views read it; view switches usehistory.replaceState(no server render); polls every 5 s while visible and on focus; pending edits layer over each snapshot; a poll that started before an edit finished is discarded; undo stack.Measured (2,000 tasks, local Chromium)
List 23 ms, board 53 ms, timeline 60 ms per switch, no request. The roadmap's 16 ms target needs virtualized rows (follow-up, B6). The CI budget is 400 ms.
Tested
pnpm lint,pnpm typecheck,pnpm test(376 passed),pnpm test:e2e(11 passed),pnpm smoke: all pass./syncand the side panel.speed.spec.ts: first poll 304; no request on view switch; panel without page load; optimistic edit before a stubbed 502, then rollback; stubbed success kept.apps/web/e2e/outbox.tscarries the same change as #7, so the two merge cleanly. STATE.md and INDEX.md will need a small conflict fix after #5–#7.🤖 Generated with Claude Code
https://claude.ai/code/session_01T7sHybpLbFAyRXzPFkfWun