Version history of src/App.css

September 2026

The bar keeps time with a neural beat tracker now, and the tempo is the number the grid actually keeps. Beat This! (Foscarin, Schluter & Widmer, ISMIR 2024) ships as small0 — 2M params, 11 MB of MIT weights exported once to ONNX by scripts/neural-beat/ and never needing python again — inference in a dedicated module worker over onnxruntime-web (webgpu where the browser offers it, wasm everywhere else), the log-mel frontend and keep_first chunking ported in pure TS and pinned to the authors' own torch outputs as goldens (the goldens being how torchaudio's *reflect* center-padding got found, where a port that guessed zeros was 0.79 log-units wrong on every track's first beat). The Ellis DP stays as the fallback it always was: every track the network abstains on, and every browser that will not run its wasm, is answered by the dynamic program exactly as before, and the search can never tell the two apart. The worker answers samples-in-grid-out or null and never rejects; two failures retire it for the session; a track the network has not finished thinking about in 45 s falls back mid-question. The reported tempo became the median inter-beat interval rather than the mean, because a mean cannot tell 'the track is slower' from 'the model lost two beats in the bridge' — music felt at 137 was reporting at 131, and the test pins both numbers; the grid is then trimmed to that tempo (greedy, 0.6x-the-median, with a refusal clause for music that has no shared tempo to trim toward), so the number and the pulse cannot disagree the way 163 BPM with picked eighths made them. Beats snap onto the onset envelope's loudest rise within 60 ms before the grid is built, so boundaries land on the sound rather than on the model's rounded guess at it. The pulse itself lost its second clock: what was a CSS animation corrected toward the audio at 4 Hz corrected its seam instead, free-running every time a correction missed, and is now one rAF pass that turns the playhead (peekLivePosition, the AudioContext itself, not the 4 Hz sample) into --pb-phase on the span with the flash as pure CSS arithmetic — pause freezes it because the position does, a seek moves it because the position does, drift is not representable. The tempo sits tiny (8px, reserved line, no grow-on-analysis) above the title rather than beside it, fades in when the analysis lands, and breathes around its baseline. 829 tests, ort-vs-torch parity at 2.7e-5 max logit error, and the shipped model verified end-to-end through the real worker in a real browser at exactly 120.00 on a 120 click track.
2000.nyc
·
One colour in the theme is now chosen by the record being heard, and the seam between what the cover decides and what the app decides is the whole feature. The record lends the hue and the chroma; the app keeps the lightness, because --accent is ink as well as fill — the query text, the share line, the playing row's title, all at 11px — and a colour taken out of a photograph is a colour a photograph chose, which is generally dark: covers are photographs, and the palette's own vivid-preference has to fight that before the derivation ever starts. Parked at the house green's lightness (0.695, where #3fb950 measures oklch(0.695 0.181 146)) every hue lands between 6.7:1 and 8.7:1 on --panel and between 4.34:1 and 5.15:1 on the typing wash, so about half the wheel is lifted a few hundredths until it clears WCAG's 4.5:1 for body text and nothing lands under it; the floor is the standard's number rather than a number chosen for this theme, which is the only reason it is worth checking. The wash is modelled in Oklab for the same reason the browser mixes there: a channel blend of the green into --panel at 34% lands at rgb(26,68,32) and the real wash at rgb(29,59,32), and that difference is enough to move which side of the floor a hue falls on, which is how a legibility check stops meaning anything if you skip it. Chroma is bisected down to what sRGB can show rather than left for the conversion to clip, because clipping is not a quiet failure — an ochre came back 17° round the wheel, orange gone to olive, which is the sleeve being misquoted rather than quoted quietly — and --accent-dim is derived by ratio rather than by fixed lightness so the dim of a crimson record stays the dim of a crimson record and stays a border rather than becoming a second accent.
2000.nyc
·
The heart wanted the right side of the title and it wanted breathing room, and the two turns of that request are the same rule found twice: a mark with a neighbour on each side belongs to neither of them, which is the difference between a heart that says something about the track and a heart that says something about the row's layout. Trailing rather than leading is what was asked for, and the naive version of it fails quietly — an inline `::after` is part of the inline content the name cell truncates, so the ellipsis eats it on exactly the long-titled rows that needed the room, and a favorite that goes missing when the title is long is a favorite that goes missing in the library's own words. Parked absolutely inside a gutter reserved by `padding-right` on the name cell instead, the glyph is outside the ellipsis's reach: it hugs the end of a short title where the eye wants it and stands in the same air after a long one, and the gutter is laid out on every row whether worn or not, so a row gaining its first heart still moves nothing. 34px of gutter around the 18px box puts sixteen clear pixels between a name and its heart; the chip column was given eight of its own, which with the row's 8px cell gap is the same sixteen on the other side — the chips arrive at that boundary from the opposite direction, the heart ending the name and the chips being their own column, and two marks that nearly touch read as one label, which is the last thing a format chip wants in an app that spends hues on formats and gave the heart rose precisely so it could never be mistaken for one of them. The row's `gap` was the tempting lever and is not usable: one value for every boundary in the row, so buying the heart's gap there would have widened the space between the chips as well, paying for a separation nobody asked for in the one place the layout is already tight.
2000.nyc
·
A favorite is not a hackermusic thing to invent: Navidrome keeps one per-user `annotation` row and the Subsonic pair `star`/`unstar` writes it (`server/subsonic/media_annotation.go:76-133`, which resolves the id it is given to an artist, an album, a playlist or a song) while `getStarred` reads all three kinds back in one unbounded request (`album_lists.go:120-175` runs three unpaged `GetAll`s), so the app got a heart worn by the row, the key that flips it, and one read per connection rather than a feature of its own — and the server kept the veto, which is the part that decides what the rest of it means. The set lives in memory and is never persisted, and the reason is the only argument worth having: a cache beside the song index buys an instant first paint of the hearts and costs the one thing a heart is for, since a mark on a track somebody unfavorited on their phone yesterday is a claim about the server printed with the app's own authority, and one small request per session is what saying what it means costs. Optimism is the other half — a keypress paints a pixel and does not wait on a tailnet round trip, with the refusal taking the row back and keeping its own sentence for the toolbar, because "Subsonic error 50: not authorized" and "Failed to fetch" want different things from the reader — and the boot race needed saying once: the hydrate carries the favorites as they were when the server read them, so a toggle the server has since accepted is newer knowledge about the same id and is re-applied over the answer rather than losing to it, with each local decision stamped by the generation it was made under so a press that outlived its own connection switch cannot resurrect itself over the next server's snapshot as a favorite nobody confirmed there. The mark itself is a row class and `content`, deliberately neither a component nor an element: the row window is the hottest scope in the app and its budget is measured against mounting every row on screen at once, and a component reading the store — the shape `TrackCacheMark` uses — blew that budget on its first run (a scope, two memos and an effect per row), while a static element per row, with nothing reactive about it at all, cost about 2ms of the same window and a virtualized list pays that again on every scroll. It sits at the head of the row's name rather than after it because the name cell is `overflow: hidden` with an ellipsis, which is to say a trailing heart goes missing on exactly the long-titled rows that needed the room, and the box is a fixed width so a row gaining its first heart moves neither its title nor the column. What CSS cannot reach is the accessibility tree, so the key also says what it did in words on a toolbar line that `f`, a click in the bar and a refused copy all share — one line, because news that outlives the thing it reported on is furniture, and a toolbar that keeps it is a noticeboard. Two finds came out of writing the tests. `endpointUrl` built caller params with `searchParams.set` over an iterator that yields every occurrence, so the repeated `id` that `star` is read with (`Values.Strings` is `URL.Query()["id"]`, `utils/req/req.go:63-66`) collapsed to its last entry: a batch favorite would have asked the server to star one track, been told ok, and left the caller believing the rest — invisible by construction, which is what a param-shape test is for. And an artist header had no way to name itself, because `/api/song` carries `mf.ArtistID` on the *track* and never on a row for the artist, so `buildRows` aggregates it now under the same first-one-wins rule the album row already uses for its id, and a header without one says so on the line instead of favoriting something the reader did not point at. The bar's three names answer the complementary question — clicking the track, the record or the artist asks the list to put that thing under the cursor and in view, over a request line (`lib/locate.ts`) since the two components are siblings and only the list knows where a thing lives — and it moves the cursor rather than only the scroll, because "where is this" is asked so the keys carry on from the answer, while the transport keeps its own marker and moves nothing the reader is looking at; the grid folds back to the list to do it, the scroll is `keepInView` so a visible track does not make the list jump, a name the query has hidden is *reported* with the key that would clear it rather than chased, since the query is something the reader typed and a click that edited their search to make the answer findable destroys their work, and a name with no id behind it is drawn disabled because a control that cannot do its job is a lie about the interface. Twenty-nine tests: thirteen of the store (the optimistic window held open by a fake that answers star/unstar when a test says so rather than in a microtask, the veto, the generation guard, the two presses on one id where the last answer is the truth because the server's setters are not toggles), six of the client (the fallback walks only an unrouted endpoint, and a stale salt buys one request not two), two of the row aggregation, six of the list honouring a click — where one asserted the cursor had moved twice and was wrong about the harness, not the app: two keydowns in one task both read the index the first has not committed, exactly as `cursorAt`'s own comment warns, so a burst has to be flushed to be counted — and the boot's own zero-diagnostic test. The one failure in the run is `HOT_SCOPE_TIME` on the virtualized `<For>`, which straddles its 8ms budget on this box with this change stashed away as surely as with it.
2000.nyc
·