sonda/web
Repository files (latest commit first)
Filename Latest commit message Latest commit date
tgiachi bfa3e6e458 feat: the seek bar shows the waveform of the track
The seek bar of the player is the shape of the track, with the part already
heard in colour, as in the approved mockups.

- GET /tracks/{id}/peaks gives 120 levels from 0 to 255 (the loudest part is
  255 whatever the volume). The server finds them by decoding the file, MP3 with
  go-mp3 and FLAC with eaburns/flac, both in pure Go. It takes a few seconds, so
  the first request starts the work in the background and answers 202 with
  Retry-After. It is done once for each file (migration 0025), worked out again
  if the size or the date of the file change, one track at a time so that a NAS
  is not kept busy, and a file that cannot be decoded is remembered as such. A
  track deleted while its file is being decoded is not an error.
- The seek bar of the player bar and of the full-screen player draws the shape
  and asks again every few seconds until it is there. Until then, and for a
  friend's track, which has none, the bar is flat. The heard part is teal, or
  the friend colour. It is still a native range input, 44 pixels high in the
  bar.
- OpenAPI path and schema, contract test, tests with real MP3 and FLAC files,
  and a real server checked: a 4-minute MP3 is ready in about a second and a
  half, a 12 MB FLAC in three, and asking again takes a millisecond.
2026-11-13 17:35:00 +01:00
..
public feat(web): the app can be installed and opens offline (PWA) 2026-11-13 12:22:00 +01:00
scripts feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
src feat: the seek bar shows the waveform of the track 2026-11-13 17:35:00 +01:00
.gitignore feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
.oxlintrc.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
components.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
index.html feat(web): new look, part 1: palette, Figtree, menu, covers and controls 2026-11-13 17:11:59 +01:00
package-lock.json feat(web): new look, part 1: palette, Figtree, menu, covers and controls 2026-11-13 17:11:59 +01:00
package.json feat(web): new look, part 1: palette, Figtree, menu, covers and controls 2026-11-13 17:11:59 +01:00
tsconfig.app.json feat(web): four themes with a contrast test 2026-11-12 11:17:41 +01:00
tsconfig.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
tsconfig.node.json feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui 2026-11-12 11:15:50 +01:00
vite.config.ts feat: embed the built web app in sondad behind the webui build tag 2026-11-12 15:56:34 +01:00