Make Sonda feel like an app on a phone #42

Merged
squid merged 2 commits from fix/phone-app-feel into main 2026-11-16 16:39:22 +00:00
Owner

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.

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.
A review of the phone experience (the issue) found a desktop page made
smaller. What changes:

feat:
- The player bar is one row on a phone (cover, title, play and next, a thin
  line of progress) and is not there while nothing plays. A tap or a swipe up
  on it opens the full-screen player.
- The Back gesture closes the full-screen player instead of leaving the page
  under it; a swipe down closes it too. The full queue is listed on a phone.
- The queue is kept in the browser: a reload, or a tab that Android throws
  away, comes back paused on the same song at the same second. It belongs to
  the person signed in and is forgotten on sign-out.
- Tabs have icons; the page starts at its top on a new route and back goes to
  where the list was; a swipe on the page no longer reloads it.

fix:
- The player now knows when the system pauses the audio (another app, a
  headset), so the button and the lock screen no longer say it plays.
- The lock screen has a working seek bar and the right play/pause state.
- The player bar was not hidden by max-sm:hidden: its grid rules were outside
  the Tailwind layers and won. They are in the components layer now.
- Song rows give the title the room on a phone (no number column).
- The album header is centred and the greeting is smaller on a phone; recent
  songs on Home show the artist.
- Thumbnails ask for the small cover (300 px) and not the 1000 px one.
- Pages use dvh, the viewport covers the notch, and the tabs keep clear of
  the gesture bar; the update notice no longer sits on the bar.
- No grey tap flash, no double-tap delay, no image menu on a long press.
squid merged commit 95f9be70bd into main 2026-11-16 16:39:22 +00:00
Sign in to join this conversation.
No reviewers
No labels
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
squid/sonda!42
No description provided.