Skip to content

Expand Scratchpad touch targets and reduce Upcoming calendar work - #690

Merged
callumalpass merged 1 commit into
mainfrom
sign-in-touch-target-perf
Nov 28, 2026
Merged

callumalpass merged 1 commit into
mainfrom
sign-in-touch-target-perf

Conversation

@callumalpass

Copy link
Copy Markdown
Owner

Refs #602
Refs #544

Upcoming

Opening Upcoming and mounting overdue rows repeatedly serialized every task calendar item. The Google event hook allocated a new filtered list on each render, including while signed out with no events. The hook now retains that list until the loaded result or visible calendars change. The date strip also reuses its two formatters across cells in a decoration pass.

Interaction Before median After median Before p95 After p95
Open Upcoming, 10,000 tasks 1,404 ms 1,154 ms 3,027 ms 2,396 ms
Scroll overdue groups, 10,000 tasks 221 ms 161 ms 497 ms 256 ms
Open Upcoming, 60 tasks 224 ms 190 ms 420 ms 339 ms

Built e2e bundles, baseline 7996852b, Chromium 149.0.7827.55 at 1440×900 on a Ryzen 9 7940HS. Both loopback builds used the same demo size, UTC clock fixed at 2026-11-04 noon, reduced motion and blocked service workers. Each build had two warm-ups and 21 measured runs, alternating build order per round. Entry runs from Today navigation to Upcoming until the first overdue task row and two animation frames. Scroll runs from scrolling the middle overdue row group into view until its first task row and two animation frames. P95 uses nearest rank. These are local renderer timings. The hosted SDK apply stage requires a separate production measurement.

In an independently instrumented 11-run pass, the median number of task revision serializations while scrolling fell from 16,044 to 0.

Scratchpad

At 390×844, the first draft checkbox painted a 20px square and the fold gutter intercepted the left corners of its intended touch area. The coarse-pointer layout now reserves a 44×44 button and paints a 20px square inside it. Linked completion marks, fold controls, task titles, review labels and inline create actions also get room for touch. The phone regression hit-tests all four corners, taps one, checks the resulting checkbox states and runs full-page axe.

Sign-in diagnostics

Testing traced the two initial 401s to Connect Portal’s pairing-review GET and current-user GET. The reload diagnostic occurred with a second TaskNotes tab holding the installation. The SDK owns that lock and the reload lifecycle. The TaskNotes test now explicitly checks that the informational open_in_another_tab state produces no app failure reference. Its existing internal-error case still exercises the visible code and warning. The live report observed zero service-worker fallback errors.

Validation

  • rpnpm unit suite: 2,370 passed, 9 skipped. Focused sign-in diagnostics and calendar tests passed after the final date-strip change.
  • rpnpm typecheck, lint, production build and e2e build passed.
  • Local Chromium: all seven phone cases and both Scratchpad review cases passed. Full-page axe at 390×844 reported zero violations. The dense agenda case initially exceeded its five-second first-row assertion and passed on an unchanged standalone rerun, including focus, scroll, counts and axe.

@callumalpass
callumalpass merged commit be09772 into main Nov 28, 2026
8 checks passed
@callumalpass
callumalpass deleted the sign-in-touch-target-perf branch November 28, 2026 12:46
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