Repository navigation
Reduce duplicate work when opening a dense agenda - #691
Merged
Merged
Conversation
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.
Refs #602
Upcoming now starts with the anchor, configured list length and end of the visible date strip. The strip waits for its actual DOM dates before asking for entries. This removes a speculative pass over the collection and retains the separate overdue-on-today projection. Floating dates in the same synchronous batch share one validated device timezone. A microtask clears it so the next batch picks up device timezone changes.
The agenda also keeps its position when the sidebar settles during initial load. Once someone scrolls into the agenda, changing the pane width still reanchors the selected day. The previous resize handler scrolled a freshly opened desktop agenda by 1,114 px and left controls obscured by its sticky header.
Chromium measurements
Seven paired runs, alternating base and PR order, against local optimized e2e builds of
be09772aand592a3c41. The workflow below ran without concurrent local test jobs from this lane. SDK first-row timings came from separate seven-pair runs for each size. Values are milliseconds from the action through its visible outcome and two animation frames. p95 uses nearest rank (the largest of seven). These are end-to-end browser timings on a shared workstation. The 60-task fixture is a control for browser and machine variation.Cold uses a fresh Chromium context, warm reloads the fixture in that context and repeats the workflow. Both rebuild their in-memory records. The SDK protocol fixture measures from its Open button, including replica seeding. Demo open includes page navigation. View switches use the app router. Capture and completion wait for the Operations count to change. Edit waits for the new title in a reopened drawer, and drag waits for the moved task in the destination day. All writes use disposable local fixtures.
On the final head, the median 10k Upcoming switch fell from 1,336 to 1,037 ms cold (22%) and from 1,230 to 783 ms warm (36%). Both measurements also improved in the earlier run. The final Upcoming p95 rose from 2,343 to 4,036 ms cold and from 2,045 to 2,726 ms warm. Tail latency varied on the shared host.
Warm drag went from 2,766 to 2,437 ms in the final run, reversing the earlier slowdown. Cold Calendar entry (707 to 781 ms) and warm completion through the project-count update (146 to 202 ms) had higher medians. Search entry was within 1 ms cold and warm. The measured improvement is in median Upcoming entry.
10,000 tasks
60 tasks
Earlier shared-host run (seven paired workflows)
The application source was identical. This harness took pointer coordinates before dragging. The final harness waits for actionable source and destination elements. Both verify the moved task in the destination day. Some earlier rounds overlapped local accessibility tests. One incomplete pair ended in a renderer crash and was discarded. The first attempt to repeat the workflow also exposed a stale coordinate read after the date strip rerendered. Both tables use complete pairs only.
10,000 tasks
60 tasks
Correctness and accessibility
Reproduction
In separate worktrees at the base and PR revisions, run
rpnpm --pull dist run build:e2e. Serve the built directories on loopback withpnpm exec vite preview --host 127.0.0.1 --port 4773 --strictPortfor the base and port 4774 for the PR. Run the PR's harness for both origins.