Skip to content

fix(frontend): reliably open downloaded notes directly from profile#76

Merged
joshuapanicker merged 1 commit intomainfrom
fix-open-note-from-profile
Mar 6, 2026
Merged

fix(frontend): reliably open downloaded notes directly from profile#76
joshuapanicker merged 1 commit intomainfrom
fix-open-note-from-profile

Conversation

@carter-a-lim
Copy link
Copy Markdown
Collaborator

Summary

When clicking a downloaded note from the Profile page, the note modal didn't always open. Users had to click "Load More" before the popup appeared. The ?open=<id> logic only searched already-loaded notes, so if the note was paginated past the first 16 results it was silently skipped.

Added a ?id=<noteId> filter to /api/notes so a single note can be fetched directly. The course detail page now uses this to fetch and prepend any missing note before opening the modal.

How to Test

  1. Download a note from a course page with many notes (so it's not on page 1).
  2. Go to Profile → Downloads tab.
  3. Click that note — the modal should open immediately without needing to scroll or click "Load More".

Checklist

  • Tests added/updated
  • Lint/tests pass locally
  • Docs updated (README/ADR/changelog)

Screenshots / Demos

N/A — behaviour fix, no visual change.

@joshuapanicker joshuapanicker merged commit 3fc6dca into main Mar 6, 2026
1 check passed
@joshuapanicker joshuapanicker deleted the fix-open-note-from-profile branch March 6, 2026 02:05
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.

2 participants