Nota — a free DAW for macOS, Windows and Linux. No subscription, no account — just open it and make music.
description: "Tasks for spec 090 — Nota Remote in the new look, with clip previews in Scenes"
Tasks: Nota Remote in the new look, with clip previews in Scenes
Input: Design documents from specs/090-remote-new-look/
Prerequisites: plan.md, spec.md, research.md, data-model.md, contracts/
Tests: the smoke test is the project's gate (constitution IV); the spec asks it to cover the theme geometry and the clips message (Compliance checklist), so test tasks are included.
Format: [ID] [P?] [Story] Description
- [P]: Can run in parallel (different files, no dependencies)
- [Story]: US1 look, US2 skins, US3 guard rails, US4 clip previews
Path Conventions
- Phone page:
src/web/remote/ - Hub:
src/managed/Nota.Remote/; host:src/managed/Nota.App/MainWindow.Remote.cs - Tests:
tests/Nota.SmokeTest/
Phase 1: Setup
- T001 Capture "before" screenshots of every screen and overlay (phone 390×844, phone landscape 844×390, tablet 1024×1366; 4 built-in themes) from the current page via the mock (
src/web/remote/mock/nota-mock.mjs,npm run build && npm run mock) into/tmp/remote090/before/, and record hit-area sizes and text contrast per screen (DOM measurement script) to/tmp/remote090/before/metrics.json
Phase 2: Foundational (blocking)
- T002 Add the design tokens to
src/web/remote/src/app.css:--r-card 9px; --r-group 7px; --r-field 6px; --r-cell 5px; --r-value-bar 4px; --r-switch 3px; --r-fine 2pxon:root;--font-ui: Geist, system-ui, -apple-system, sans-serif;--picked-ink: var(--accent-bright)under:root, [data-theme='dark']andvar(--accent-pale)under[data-theme='light']; rootfont-family: var(--font-ui)andfont-variant-numeric: tabular-nums; utilities.live(solid accent + ink-on-accent) and.picked(accent-soft + picked-ink) - T003 Remove Geist Mono: delete
src/web/remote/public/fonts/GeistMono-Medium.woff2, its@font-faceand the.monorule insrc/web/remote/src/app.css; replace everyclass="mono"/.monouse insrc/web/remote/src/**with plain text (tabular figures are global) or a role class - T004 [P] Create
src/web/remote/src/lib/fmt.ts(SPDX header):db(v)(one decimal, U+2212,−∞,+only when > 0),pct(v)(whole, thin space +%),bpm(v)(two decimals),bars(beats)([n, unit]),MINUS,THIN; replace the helpers inscreens/Mixer.svelte,screens/Scenes.svelte,screens/XY.svelte,screens/Macros.svelte,components/Header.svelte,screens/BigTransport.svelte - T005 Update
tests/Nota.SmokeTest/DesignTokenCheck.Remote.cs: radii must be0,50%or containvar(--r-(replace the 0–4 px list); fail onGeist Mono,monospaceorclass="mono"insrc/web/remote/src; require--picked-inkdefined for both theme kinds inapp.css; requireGeistMonoabsent fromsrc/web/remote/public/fonts
Checkpoint: tokens exist; the page still renders; build and smoke scan pass.
Phase 3: User Story 1 — the phone looks like the desktop (P1) 🎯 MVP
Goal: every surface follows DESIGN.md (spec 038): corner scale, one typeface, orange in three strengths, sentence case, number format.
Independent Test: mock at phone / landscape / tablet in Studio Dark; every screen and overlay matches DESIGN.md (quickstart § 2).
- T006 [US1] Restyle shared controls in
src/web/remote/src/app.css:.btn(radius--r-group,.btn.on= picked: soft tint +--picked-ink, no solid),.seg(group--r-group, cells--r-cell,.on= picked),.switch(track--r-switch, knob--r-fine, solid accent when on),.label(sentence case, ink 3, 400 weight),.learnable - T007 [US1] Restyle
src/web/remote/src/App.svelte: tabs and rail — current screen = picked (soft tint fill,--picked-inktext, rail gets the 2 × 14 orange tick like the desktop's left rail, tabs keep the edge line); docked bars square - T008 [P] [US1] Restyle
src/web/remote/src/components/Header.svelte: track picker and transport keys--r-group; Play running and Record = live solid (record colour for Record); position readout well--r-field, open = picked edge; readout 500 weight; link status text;fmt.bpm - T009 [P] [US1] Restyle
src/web/remote/src/components/Sheets.svelte: sheet / menu--r-groupwith popover; chosen row = picked (soft tint + orange tick);whochips--r-cell; field--r-fieldwith 1 px accent focus outline; tonic buttons picked; Theme segment picked - T010 [P] [US1] Restyle
src/web/remote/src/components/Overlays.svelteandcomponents/Banner.svelte: covers docked, checklist--r-card, code cells--r-fieldwith the typing cell's accent edge, primary action by weight + tone, count-in number live accent, toast--r-group, banner docked; text sentence case - T011 [US1] Restyle
src/web/remote/src/screens/Mixer.svelte: strips docked; fader cap--r-value-bar; pan bar and fader slot grey at rest, while held soft tint + accent line (shell slider rule); dB / pan viafmt; M / S / Arm--r-cellwith Mute / Solo / Record fills and derived ink; meter channels--r-fine; group tag chip - T012 [US1] Restyle
src/web/remote/src/screens/Macros.svelte: grid frame--r-card; device picker--r-group; knob arc and active value text in the playing track's colour (--tcfromapp.track.color, neutral--viz-inkwhen no track), arc groove grey; values viafmt.pct - T013 [US1] Restyle
src/web/remote/src/screens/XY.svelte: field--r-card; crosshair and point in the track colour (--tc), a quiet--tctint layer (opacity, nocolor-mix) behind the point while live; axes panel--r-group; Hold / Return picked; Tilt.btn.onpicked, the "Tilt is moving the point" pill live solid; automation chip--r-cell - T014 [P] [US1] Restyle
src/web/remote/src/screens/Pads.svelte: pads--r-field; under finger = live accent; played by the track = track colour + derived ink; bank segment picked; Full velocity / Repeat picked; rate chip--r-value-bar - T015 [P] [US1] Restyle
src/web/remote/src/screens/Keys.svelte: keyboard frame--r-groupbottom, keys--r-finebottom; scale cells and chords--r-cell; under finger live accent; track-played band / edge in track colour; mode segment and key button picked; octave readout - T016 [P] [US1] Restyle
src/web/remote/src/screens/BigTransport.svelte: keys--r-card; Play running live accent, Record live record; Loop / Click on = picked (soft tint + orange icon/text); section buttons--r-cell, current = orange tick, looping = live solid; position readout weight 500, record colour while recording; tempo viafmt.bpm - T017 [P] [US1] Restyle
src/web/remote/src/screens/Empty.svelte: card--r-card, sentence case - T018 [US1] Restyle the Scenes chrome in
src/web/remote/src/screens/Scenes.svelte(cell layout itself in US4): scene buttons and Stop--r-cell, clip cells--r-field, empty slots sunken; playing / queued in clip colour with derived ink; recording record colour; selected-looking states never orange - T019 [US1] Sweep
src/web/remote/src/**for labels: sentence case everywhere ("Tap tempo", "Full velocity", "Follow Nota"), acronyms kept (MIDI, XY, USB, dB, BPM); no letter-spacing; ranges with en dash
Checkpoint: US1 complete — MVP of #556.
Phase 4: User Story 2 — the phone wears the user's skin (P1)
Goal: font and radii from a spec 087 skin reach the phone, live, in both modes.
Independent Test: wear a v2 skin with radius.scale: 0 and a font family; the phone repaints square and in that face (or Geist).
- T020 [US2] Extend
src/managed/Nota.Remote/RemoteContracts.cs:RemoteTheme(string Id, string Name, bool Dark, IReadOnlyDictionary<string,string> Colors, string? Font = null, IReadOnlyDictionary<string,double>? Radii = null)—Radii"7 keys (card … fine), resolved px; null when the design scale" - T021 [US2] Fill them in
src/managed/Nota.App/MainWindow.Remote.csRemoteThemeOf:Font = t.Geometry.FontFamily;Radii=SkinGeometry.Key(step) → t.Geometry.RadiusOf(step)for everyRadiusStepwhen any differs fromSkinGeometry.Design(step), else null; make the cache key includeGeometryifNotaColourThemeequality does not - T022 [US2] Write
font/rper theme inThemeJsoninsrc/managed/Nota.Remote/RemoteHub.State.csper contracts/theme-message.md G1–G2 - T023 [US2] Phone side:
ThemeMessagetypes insrc/web/remote/src/lib/types.ts(font?: string; r?: Record<string, number>); insrc/web/remote/src/lib/palette.tscssVarsalso emits--font-ui(sanitised family, quoted, then Geist stack) and--r-*(fromr, else the design values, so a theme without them resets — G4);lib/theme.svelte.tsapplies and stores them (index.html restores them generically fromnota-remote:vars) - T024 [P] [US2] Mock:
?skin=<file>insrc/web/remote/mock/nota-mock.mjsloads a v2 theme file (font + radius scale / steps, resolved likeSkinGeometry.RadiusOf) and sendsfont/r; add a sample skinsrc/web/remote/mock/square-avenir.json - T025 [US2] Smoke test in
tests/Nota.SmokeTest/RemoteTests.cs: a theme withFontandRadiisendsfontand all sevenrkeys; a built-in sends neither; a geometry-only change re-sends the theme
Checkpoint: US1 + US2 done — #556 complete.
Phase 5: User Story 4 — clip previews in Scenes (P2, #557)
Goal: each filled cell shows name, length and notes / waveform like the desktop slot, updated on change, growing while recording.
Independent Test: quickstart § 3.
- T026 [US4] Add
string ClipColor(int trackId, int scene)toIRemoteHostinsrc/managed/Nota.Remote/RemoteContracts.csand implement it insrc/managed/Nota.App/MainWindow.Remote.cs(clip's own palette colour viaTryGetSessionClipProps, else the track's — asSessionView.ClipBrush); update the test host intests/Nota.SmokeTest/RemoteTests.cs - T027 [US4] Create
src/managed/Nota.Remote/RemoteHub.Clips.cs(SPDX header):ClipPreviewper data-model.md ("Notes ≤ 128, 1/64-of-length grid"; "Peaks byte[48] 0–99"); build fromGetSessionNotes(instrument tracks) orGetSessionSlotPeaks(…, 48)(audio),AudioRecordPeaksOf/ bars-so-far while recording (state 4 / 5); nameGetSessionClipNameelse " - T028 [US4] Send
clipsinPush(src/managed/Nota.Remote/RemoteHub.State.cs) per contracts/clips-message.md C1–C6: per-phoneSentClipssignatures onRemoteClient(src/managed/Nota.Remote/RemoteClient.csor where the client class lives), cleared when the phone leaves Scenes; full set in batches ≤ 64 slots (firstall: true);k: "x"for slots emptied - T029 [US4] Phone store:
ClipsMessage/Previewtypes insrc/web/remote/src/lib/types.ts;clipshandler insrc/web/remote/src/lib/app.svelte.tskeepingclips: Map<"id:i", Preview>(cleared onall: true, deleted onk: "x") - T030 [US4] Create
src/web/remote/src/components/ClipPreview.svelte(SPDX header): DPR-aware canvas; notes as 3 px bars over the clip's own pitch range, x by start/len ÷ 64; peaks as centred bars 62 % of a step wide; ink from a prop (CSS var resolved via computed style), redraw on data / size / ink / theme change only (ResizeObserver) - T031 [US4] Scenes cell layout in
src/web/remote/src/screens/Scenes.svelte: top row clip name (ellipsis) + length; preview below in clip colour (stopped),--tc-ink(playing / queued), record colours (recording); play mark and progress line on top; use the clip colour fromclipsfor--tc - T032 [P] [US4] Mock:
src/web/remote/mock/nota-mock.mjssends aclipsmessage on Scenes with demo notes and peaks, and a growing recording slot - T033 [US4] Smoke test in
tests/Nota.SmokeTest/RemoteTests.cs: a phone on Scenes getsclipsfor filled slots (notes for an instrument clip, 48 peaks for audio), none on another screen, none re-sent while unchanged, a note edit re-sends just that slot, notes capped at 128
Checkpoint: #557 complete.
Phase 6: User Story 3 — guard rails (P2)
Goal: nothing smaller, nothing less readable.
- T034 [US3] Capture "after" screenshots and metrics (same script and sizes as T001, plus the sample skin) into
/tmp/remote090/after/; compare hit areas (≥ before, ≥ 36 px short side) and contrast (≥ before) per screen; fix regressions in the affected component
Phase 7: Polish & cross-cutting
- T035 Run
npm run checkandnpm run buildinsrc/web/remote; fix every error and warning - T036 Run
scripts/build.sh; smoke test green - T037 [P]
CHANGELOG.md[Unreleased]: Changed — Nota Remote in the new look, wears skins' typeface and corners (#556); Added — clip previews in Remote Scenes (#557) - T038 [P] FEATURES.md via the
nota-featuresskill; user docs (Remote page EN + RU) via thenota-docsskill - T039 Real-hub check (quickstart § 3) with the desktop side by side; Scenes with previews screenshots for the PR
Dependencies & Execution Order
- Setup (T001) → Foundational (T002–T005) → US1 (T006–T019) → US2 (T020–T025) can start after T002 (independent of US1 screens) → US4 (T026–T033) after T018 → US3 (T034) after US1, US2, US4 → Polish.
- Within US1: T006 before T007–T018 (shared classes); T011–T013, T018 touch one file each.
- Within US4: T026 → T027 → T028; T029 → T030 → T031.
Parallel Opportunities
- T004 with T002 / T003.
- US1: T008, T009, T010, T014, T015, T016, T017 in parallel after T006.
- US2 hub side (T020–T022) in parallel with US1 page work; T024 any time.
- US4: hub (T026–T028) in parallel with phone (T029–T031); T032 any time.
Implementation Strategy
- MVP: Phases 1–3 (the look) — demonstrable in the mock.
- US2 (skins) — #556 done.
- US4 (previews) — #557 done, separate commit.
- Guard rails, polish, evidence, one PR closing both issues.
Nota Compliance (re-check)
- SPDX header on
fmt.ts,ClipPreview.svelte,RemoteHub.Clips.cs, mock skin file - No new dependency; Geist Mono removed
- No audio-thread or C ABI change
- Smoke test extended (T005, T025, T033)
- CHANGELOG / FEATURES / docs (T037, T038)
- DESIGN.md followed
Phase 8: Convergence
- T040 Clamp every skinnable radius on small parts so a 2× skin never turns a part into a pill: wrap
var(--r-*)inmin(var(--r-…), 25%)-style caps (or a--r-*-smallset) for buttons, segment cells, M / S / Arm, chips, pads, keys and Session cells insrc/web/remote/src/app.cssand the screen styles; keepDesignTokenCheck.Remotepassing per spec Edge Cases "Roundness 2×" (partial) - T041 Make the smoke test green: rerun
scripts/build.shon a quiet machine and compare the VST3 render-pool timing checks againstdevelopbuilt the same way; if they fail ondeveloptoo, record that they are unrelated, else fix per Constitution IV / plan Quality Gates (partial) - T042 Cover audio-clip previews end to end: a smoke test in
tests/Nota.SmokeTest/RemoteTests.csthat puts an audio clip in a Session slot (AddSessionAudioFileor equivalent) and checks theclipsslot hask: "p"with 48 values 0–99 and a 99 at the loudest bucket per FR-018 / US4/AC2 (partial) - T043 Real-hub check with the desktop beside the phone (quickstart § 3): MIDI and audio previews match the desktop Session slot, an edit follows within 1 s, a recording grows; capture the side-by-side screenshots per FR-017 / SC-007 / SC-008 (missing)
- T044 Update the user manual's Nota Remote page (EN + RU) in
../nota-docsvia thenota-docsskill — new look, skin typeface / corners, Scenes clip previews — once that repo is free of the unrelated in-progress branch per Constitution VI (missing) - T045 Review the two fixes outside the restyle — the tablet Mixer master strip width (
.tablet .masterstrip) and full-width rows in the track sheet — and keep or split them with a line in the PR description per Constitution V (unrequested)