fix: make the book list, book page and import/export usable on phones #72

Merged
jfro merged 1 commit from mobile/pages into main 2026-10-25 18:30:07 +00:00
Owner

Fixes Nye's mobile audit findings F3–F5 for the pages outside the scanner flows. F2 (16px inputs) is fixed by #71's global touch rule, so it isn't repeated here.

Book list (F3). On phones (max-sm) the Media Types and Details columns hide, media types show as badges under the author, and Edit/Delete become stacked 44px icon buttons (labels kept for screen readers). At 393px the row actions now end at x=361 instead of 601–702.

Hover-only controls (F4). Grid view Edit/Delete and the book page's remove-media-type ✕ only fade until hover with a fine pointer (pointer-fine:), so mouse/trackpad users see what they see today. On touch they're always visible, 44px tall; the ✕ is a 44×44 target with an aria-label.

Sideways scroll (F5). Export helper text wraps (daisyUI .label is nowrap), and the Import sample JSON/CSV blocks scroll inside themselves.

Desktop layout is unchanged. Checked in Playwright WebKit at 393×852 with touch and at 1280×800; mix precommit passes (635 tests). No CHANGELOG/version changes.

Fixes Nye's mobile audit findings F3–F5 for the pages outside the scanner flows. F2 (16px inputs) is fixed by #71's global touch rule, so it isn't repeated here. **Book list (F3).** On phones (`max-sm`) the Media Types and Details columns hide, media types show as badges under the author, and Edit/Delete become stacked 44px icon buttons (labels kept for screen readers). At 393px the row actions now end at x=361 instead of 601–702. **Hover-only controls (F4).** Grid view Edit/Delete and the book page's remove-media-type ✕ only fade until hover with a fine pointer (`pointer-fine:`), so mouse/trackpad users see what they see today. On touch they're always visible, 44px tall; the ✕ is a 44×44 target with an aria-label. **Sideways scroll (F5).** Export helper text wraps (daisyUI `.label` is `nowrap`), and the Import sample JSON/CSV blocks scroll inside themselves. Desktop layout is unchanged. Checked in Playwright WebKit at 393×852 with touch and at 1280×800; `mix precommit` passes (635 tests). No CHANGELOG/version changes.
fix: make the book list, book page and import/export usable on phones
All checks were successful
CI / test (pull_request) Successful in 47s
9937a6b347
- Book list on phones: Media Types and Details columns hide, media
  types show under the author, and Edit/Delete become stacked 44px icon
  buttons so they stay on screen at 393px.
- Grid view Edit/Delete and the book page's remove-media-type buttons
  only hide until hover with a fine pointer (mouse/trackpad); on touch
  they're always visible with 44px targets.
- Export helper text wraps and the Import sample blocks scroll in place,
  so neither page scrolls sideways.
Author
Owner

Screenshots (Playwright WebKit, 393×852 touch, then desktop 1280):

List Grid Book page
list grid book

Desktop list, unchanged:
desktop

F3, F4, F5 checks pass on 9937a6b (row-actions, hover-only, hscroll).

Screenshots (Playwright WebKit, 393×852 touch, then desktop 1280): | List | Grid | Book page | |---|---|---| | ![list](https://git.knope.dev/attachments/656cc132-0e08-40de-9f6a-eb1b4a667f9f) | ![grid](https://git.knope.dev/attachments/f2a4caad-57f5-426f-8695-c3deb9a2614f) | ![book](https://git.knope.dev/attachments/6450bce1-d4af-4faa-ac6b-4f621523a4cf) | Desktop list, unchanged: ![desktop](https://git.knope.dev/attachments/ecf46cf7-3913-483e-8858-b3dd74c4ac6e) F3, F4, F5 checks pass on 9937a6b (row-actions, hover-only, hscroll).
Author
Owner

Review from Nye (approved) — covers head 9937a6b

Ran the branch locally (dev, Playwright WebKit at iPhone 393x852 / 852x393 and iPad 820x1180 / 1180x820, light and dark) with the audit checks in scripts/mobile_check.py.

Works

  • F3 fixed: on iPhone the book list keeps Edit/Delete on screen (icon-only, stacked, 44px tap targets on touch, labelled via aria-label); Media Types and Details columns hide below sm, with media badges moved under the title.
  • F4 fixed: grid-card actions and the book page's remove-media-type button are always visible on touch (pointer-coarse) and still hover/focus-reveal with a mouse (pointer-fine + group-focus-within), so keyboard users can reach them too.
  • F5 fixed: export/import help text wraps (whitespace-normal); no horizontal scroll on either page at iPhone width.
  • Merged with #71 (2a6f174) locally: no conflicts, and all 5 audit checks (camera-modal, input-zoom, row-actions, hover-only, hscroll) pass together. CI green on 9937a6b.

No blocking or non-blocking issues. Ready to ship once Jeremy says so.

## Review from Nye (approved) — covers head 9937a6b Ran the branch locally (dev, Playwright WebKit at iPhone 393x852 / 852x393 and iPad 820x1180 / 1180x820, light and dark) with the audit checks in scripts/mobile_check.py. **Works** - F3 fixed: on iPhone the book list keeps Edit/Delete on screen (icon-only, stacked, 44px tap targets on touch, labelled via aria-label); Media Types and Details columns hide below `sm`, with media badges moved under the title. - F4 fixed: grid-card actions and the book page's remove-media-type button are always visible on touch (`pointer-coarse`) and still hover/focus-reveal with a mouse (`pointer-fine` + `group-focus-within`), so keyboard users can reach them too. - F5 fixed: export/import help text wraps (`whitespace-normal`); no horizontal scroll on either page at iPhone width. - Merged with #71 (2a6f174) locally: no conflicts, and all 5 audit checks (camera-modal, input-zoom, row-actions, hover-only, hscroll) pass together. CI green on 9937a6b. No blocking or non-blocking issues. Ready to ship once Jeremy says so.
jfro merged commit ec9c4c7b54 into main 2026-10-25 18:30:07 +00:00
jfro deleted branch mobile/pages 2026-10-25 18:40:48 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
jfro/fuzzy_catalog!72
No description provided.