Repository navigation
Reduce dense calendar and task interaction latency and enlarge Scratchpad checkboxes - #693
Merged
Merged
Conversation
…rrow Scratchpad checkboxes
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
Calendar only needs the collection-wide alias list when a materialized recurrence child exists. Both repository adapters check their metadata first and retain the existing full lookup when it is needed. When manual-order metadata arrives for an already ordered Upcoming view, React can reuse the same execution and calendar projections. The agenda measures the strip after restoring weekday labels when navigation redraws the cells. Mounting virtual task rows alone skips that synchronous layout read in browsers with ResizeObserver.
Month layout previously scanned every occupied level from row zero for each event. The existing calendar package patch now tracks the end of the last span on each level and advances a cursor within each start column. Each column scans a level at most once. Civil-day grouping also reuses the bucket for implicit one-day entries with the same start.
Sidebar counts are reused for the current date, runtime timezone and deletion mask until task metadata changes. Project shortcuts and drawer relationships now resolve repeated project links once per computation. Choosing a search suggestion or a recent search submits immediately. Typing retains its debounce.
At 390 × 844 CSS pixels on the baseline, the Scratchpad checkbox named “Mark task complete” was 17 × 17 with a fine pointer and 44 × 44 with a coarse pointer. The narrow-screen layout now reserves a 44 × 44 button for both. The phone tests check all four corners, toggle from a corner, check horizontal overflow and run axe.
Chromium measurements at
24ce0e20Baseline
cd1596b485328e79e6166d060d57f5ad03eb5412and head24ce0e20d8d8a48ab67efec13798d84357a95ee0. Both are optimized E2E builds on loopback using the deterministic demo repository. This measures local application and browser time. Connected-repository behavior is covered by the unit suite.Twenty-one paired rounds per collection size alternate baseline/head and head/baseline. “Cold” is the first workflow in a fresh browser context. “Warm” repeats the workflow after a reload in that context. Actions end after their visible result and two animation frames. All rows are in milliseconds, with the median followed by nearest-rank p95 (the second slowest of 21). Chromium 149.0.7827.55 pinned to four physical cores on the shared Linux workstation, 1280 × 800, en-US, reduced motion, and a fixed clock at 2026-11-04 12:00 UTC.
Nine full rounds survived a preview-server interruption. The partial tenth round was discarded in full. The remaining twelve started with the candidate first to preserve alternation across the restart. The same built assets were served on both runs. Host load rose during the later rounds and both builds slowed. All 84 completed contexts and 2,016 timings from the selected full rounds are included.
At 10,000 tasks, warm completion and count refresh improved from 178 / 542 to 117 / 330 ms (median / p95), faster in 19 of 21 pairs. Warm drawer edit, save and reopen improved from 476 / 1,295 to 367 / 1,076 ms, faster in 20 pairs.
Cold Upcoming and Calendar had lower p95s, but higher overall medians. Upcoming was faster in 16 pairs (median paired difference −105 ms) and Calendar in 17 (−65 ms). Per-build medians and the median difference within pairs are separate statistics. Cold capture, drawer open and edit/reopen had higher p95s. Typed tag filtering also had higher p95s in both modes.
The 60-task control improved on tag selection in all 21 cold and all 21 warm pairs. Several interactions regressed. Cold Calendar rose from 128 / 331 to 145 / 403 ms. Warm drawer open rose from 113 to 144 ms at the median and was slower in 16 pairs. Cold edit/save/reopen p95 rose from 422 to 604 ms. The small-collection zero-regression target remains open.
10,000 tasks
60 tasks
Agenda scroll correction at
12a6df50On
24ce0e20the expanded-agenda regression failed five times in five runs. The calendar published a strip height of 52 px before its labels returned. The decorated strip was 70 px tall and covered the selected section by 17 px. With the correction, the published height is 70 px and the section starts 1 px below the strip.All six calendar-polish tests passed. The previously failing case passed five times across the full file and four extra repetitions. All 26 selected Chromium accessibility and interaction tests passed, including fine- and coarse-pointer Scratchpad corner activation at 390 × 844. Each checkbox measured 44 × 44 px. Eight additional full-page axe scans at 60 and 10,000 tasks found zero violations. The unit suite passed 2,379 tests with 9 skipped. Typecheck, lint and the E2E build passed. The latency tables above cover
24ce0e20.Verification at
24ce0e20Reproduce
Use separate worktrees for the two revisions above. In each worktree build the same E2E configuration. Serve the baseline on port 4963 and the candidate on 4964.
pnpm install --frozen-lockfile rpnpm --pull dist run build:e2e pnpm exec vite preview --host 127.0.0.1 --port 4963 --strictPortFrom the candidate worktree, with both previews running and Playwright Chromium installed, run the comparison. Standard output contains every per-action sample in JSON.
Run the unit, static, build and Chromium regression checks from the candidate worktree.
Reproduce the full-page WCAG A/AA scans on both previews