Skip to content

PDF hints: note under the student's work instead of below the page - #75

Merged
Azrkiel merged 1 commit into
mainfrom
fix/pdf-note-near-work
Nov 15, 2026
Merged

Azrkiel merged 1 commit into
mainfrom
fix/pdf-note-near-work

Conversation

@Azrkiel

@Azrkiel Azrkiel commented Nov 15, 2026

Copy link
Copy Markdown
Owner

User report: Albert's notes were drawn in the band below the whole page, far from the work, so the hint couldn't be seen while writing.

  • PDF notes now start right under the problem's last row on that page, aligned with the student's ink (600 px column, clamped to the page), on a soft paper backing (data-albert-backing) so they read over print.
  • Falls back to the labelled below-page band (and the exported note page) only when there's no room under the work (< 190 px).
  • More help chip follows the note's x.
  • Tests: conductor unit (new fallback case), pdf-surface / pdf-workflow / pdf-export assertions updated to on-page notes; the export note-page test now writes at the page foot to keep covering the fallback. Unit 988 passed / 20 skipped; e2e pdf-surface, pdf-workflow, pdf-export, ask, pointer, pdf-restore 31 passed; hint-mock flaked once in the batch (known), 10/10 alone.

🤖 Generated with Claude Code

…he page

Notes on PDF pages now sit under the problem's last row on that page, lined
up with the student's ink, on a soft paper backing so they read over print.
They fall back to the labelled below-page band only when the page has no
room under the work. More help follows the note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Azrkiel
Azrkiel merged commit e72ae17 into main Nov 15, 2026
2 checks passed
@Azrkiel
Azrkiel deleted the fix/pdf-note-near-work branch November 15, 2026 11:59
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