Skip to content

Window Projects globally and reduce recurring view work - #685

Merged
callumalpass merged 1 commit into
mainfrom
sprint-w7-tn-projects-recurrence
Nov 28, 2026
Merged

callumalpass merged 1 commit into
mainfrom
sprint-w7-tn-projects-recurrence

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Refs #602

  • Use one measured window across Projects headings and rows. Keep jump-to-project, collapse state, accessible disclosure, full-order keyboard navigation, selection, and task-detail navigation across the window.
  • Find Today’s next task without generating every upcoming occurrence. Reuse the projected occurrence while formatting Calendar properties.
  • Keep the Calendar’s previous and next touch targets at least 44 × 44 CSS px on narrow phones.

Performance

Medians of seven samples after one warmup. Projects uses loopback Chromium 149 at 1280 × 800 with 125 projects and 80 tasks each. Entry is navigation from Search through the first rows and two animation frames.

Projects Before After
Entry 8,132 ms 1,130 ms
Mounted task rows 10,000 20

The shared builder benchmark seeds 10,000 daily or weekday series and 2,000 undated tasks. The clock is fixed and the Calendar range spans 42 days.

Recurring fixture stage Before After
Today summary and next suggestion 90 ms 1 ms
Today occurrence helper 60 ms 61 ms
Starter Inbox execution 248 ms 259 ms
Cached recurrence date expansion and occurrence construction 44 ms 42 ms
Cold Calendar entry generation and grouping 6,309 ms 7,045 ms
Calendar item presentation 2,016 ms 1,860 ms

Outputs matched across runs, including 227,000 Today helper occurrences, 2,000 Inbox records and 310,000 Calendar items. A separate cold model CPU profile put most sampled time in RRULE iteration and date sets. Direct uncached expansion took 3.35 s for 305,000 dates in that profile fixture. Starter Inbox filters persisted dates and performs no RRULE expansion. These results measure local view work and exclude hosted collection apply.

Reproduce with node scripts/bench-projects.mjs against pnpm dev:e2e and rpnpm run bench:recurrence.

Verification

  • Projects browser regression covers an offscreen jump, disclosure, cross-group and offscreen keyboard focus, range selection, and task-detail navigation. Existing list, section and board drag tests passed.
  • At 360 px, Today, Inbox, Projects, task detail, Scratchpad and Calendar fit the viewport. Axe found no contrast violations in light or dark mode on the sampled screens. The audit found the Calendar arrow buttons at 40.5 × 44 CSS px before the fix.
  • For Sign-in logs expected 401s and service worker fallback errors as console errors #544, the built local SDK entry constructor emitted no browser console errors or failed requests before startup. TaskNotes delegates pairing to the SDK. The static HTML fallback routing was addressed in Serve offline shell HTML without redirect errors during sign-in #675 and its source test passed. Live sign-in and hosted service-worker requests were outside this local audit.
  • Remote verification passed i18n, formatting, typecheck, lint, release and unit suites, conformance, and production plus self-hosted builds.

@callumalpass
callumalpass merged commit 25c1674 into main Nov 28, 2026
8 checks passed
@callumalpass
callumalpass deleted the sprint-w7-tn-projects-recurrence branch November 28, 2026 09:34
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