Skip to content

Improve performance of large notes reviews - #20

Merged
Kevin-Taha merged 4 commits into
mainfrom
narrow-layouts
Nov 8, 2026
Merged

Kevin-Taha merged 4 commits into
mainfrom
narrow-layouts

Conversation

@Kevin-Taha

@Kevin-Taha Kevin-Taha commented Nov 8, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • Render annotated pages near the viewport while preserving keyboard navigation, editing, filtering, and export across all notes.
  • Provide a full-list mode for browser Find and assistive technology; keep thumbnail and page preload margins independent.
  • Add large-review browser coverage and viewport observer tests.

Performance

On an isolated 1,151-page textbook with 2,298 notes, first review open improved from 1.42 s to 0.20 s; at 4× CPU throttling it improved from 5.08 s to 1.44 s. These are individual measurements on the same machine.

Validation

  • bun run check
  • bunx playwright test --workers=2 --reporter=dot (93 passed, 1 skipped; passed on retry after an intermittent unrelated navigation test failure)
  • bunx playwright test review.spec.ts review-large.spec.ts --workers=1 --reporter=list after the observer fix

Kevin-Taha and others added 4 commits November 7, 2026 17:55
…ones

Under 960px of reading area the 280px margin column becomes a 44px rail of
note markers, so fit width gives the page the room. Markers open the note's
card over the page edge; notes can be written, edited and closed by touch.
The overlay sidebar starts closed and closes after a jump or a tap on the
page. Fit width may go down to 25% so a letter page fits a phone.

Part of #18.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 6cfe0214-e2a8-4a94-99bd-74b28c84b315
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: 6cfe0214-e2a8-4a94-99bd-74b28c84b315
Render annotated pages on demand while preserving navigation, editing, search, and full-list access.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b28d19f9-2210-4a6d-a9ea-84b5b5364063
Co-authored-by: Copilot App <[email protected]>
Copilot-Session: b28d19f9-2210-4a6d-a9ea-84b5b5364063
@Kevin-Taha
Kevin-Taha merged commit 983c4c8 into main Nov 8, 2026
2 checks passed
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