Skip to content

hoist the SongBook import Save action into PageHeader so it stays above the fold - #6090

Merged
atomantic merged 1 commit into
mainfrom
claim/issue-6001
Sep 3, 2026
Merged

hoist the SongBook import Save action into PageHeader so it stays above the fold#6090
atomantic merged 1 commit into
mainfrom
claim/issue-6001

Conversation

@atomantic

Copy link
Copy Markdown
Owner

Summary

  • Adds a primary Save button to PageHeader on /songbook/import, so the screen's main action is reachable above the fold. On a ~375px viewport it previously sat below the tab bar, a 12-row textarea and a 50vh live preview — roughly 1000px down.
  • Mirrors SongBookViewer, which already keeps its Save in PageHeader.
  • The header button shares the form button's gating (saving || !contentText.trim()) and surfaces the existing saveHint as its tooltip.
  • The form's own submit button stays in place, so Enter-to-submit and the bottom-of-form path are unchanged. The back link's label collapses on mobile (hidden sm:inline) to make room, as the viewer does.

Closes #6001

Test plan

  • cd client && npm test -- src/pages/SongBookImport.test.jsx — 15 passed, no act() warnings. New case asserts the header Save is disabled with an empty draft, enables after a paste, and creates the song when clicked.
  • cd client && npm run lint — clean.

…ve the fold (#6001)

On a ~375px viewport the form's Save sits below the tab bar, a 12-row
textarea and a 50vh live preview — roughly 1000px down, so a user who
pastes a tab has to scroll three viewports to submit and back again to
edit. SongBookViewer already keeps its Save in PageHeader; mirror that.

The form's submit button stays put so Enter-to-submit and the bottom-of-form
path keep working, and the back link's label collapses on mobile to make
room for the new button.
@atomantic
atomantic merged commit 34848ce into main Sep 3, 2026
7 checks passed
@atomantic
atomantic deleted the claim/issue-6001 branch September 3, 2026 17:22
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.

Primary Save song action in SongBookImport is buried ~1000px below the fold on mobile viewports

1 participant