Make Sonda feel like an app on a phone #42
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/phone-app-feel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I'm fixing what made Sonda feel like a desktop page on my phone. Closes #41.
A review of the phone experience (read-only, on the code and on screenshots) gave a list; I fixed what changes how it feels: a one-row player bar that is not there while nothing plays, swipe up and down and the Back gesture for the full-screen player, the queue kept across a reload or a discarded tab, the lock screen (seek bar, play state, and the player knowing when the system pauses the audio), song rows and the album header for a narrow screen, small covers for thumbnails, safe areas, and touch details.
Checked: 1230 web tests, tsc, oxlint, go vet, gofmt, the build. On the real binary in a phone-sized Chromium: the bar is hidden while nothing plays and is one row of 73 px while it does, swipe up opens the player, Back closes it and stays on the page, swipe down closes it, a system pause is followed by the button and the lock screen, and after a reload the bar is back with the song, paused, at the same second. That run found that the bar was not hidden (its grid rules were outside the Tailwind layers), which the unit tests could not see; fixed.
Not done, left for another time: a menu per song row (play next, add to queue), seeking on release instead of on every drag step, an in-app back button and an install hint for the installed app.