diff --git a/CLAUDE.md b/CLAUDE.md index 1dc3e5c..188c69c 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -38,7 +38,7 @@ docs/ PROGRESS.md, DECISIONS.md, STATUS.md, HANDOFF.md Plans/ INDEX.md, _TEMPLATE.md, /SNNN-*.md README.md FEATURES.md PLAN.md PROMPT.md ORCHESTRATOR.md ``` -Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~/Projects` (Damson, Mulberry, Nacre …), the reference app checkout (`/home/astar76/Projects/Tunal-reference`, outside the repo), anything under `/usr`, `~/.ssh/` (read only). +Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~/Projects` (Damson, Mulberry, Nacre …) and the old prototype in `~/Documents/Apps/tunal-files/`, the reference app checkout (`/home/astar76/Projects/Tunal-reference`, outside the repo), anything under `/usr`, `~/.ssh/` (read only). ## 2. Facts @@ -50,7 +50,7 @@ Never modify: `PROMPT.md` (the user's brief), the user's other projects under `~ - **MusicBrainz / Cover Art Archive**: no API key; ≤ 1 request/s across the whole app; User-Agent `Tunal/ ( https://archlinux.tail7c4f5e.ts.net/git/astar76/Tunal )`. - **Native dependencies (decided, D-004–D-007, D-014, D-016, D-019)**: video frames via the `ffmpeg` CLI subprocess; audio `cpal` (alsa-lib) + symphonia; iOS `idevice` over system `usbmuxd`; MTP own pure-Rust client on `nusb`; native DnD via Slint's libwayland connection and `x11rb`; TLS/SSH crypto rustls + ring. No new system packages: optional tools missing → that feature off, no error. Any other non-Rust dependency: ask first. - **User validates personally (🧑)**, all in phase 12 (D-009): visual review (S035), the polkit password prompt, real iPhone/Android devices, native drag/clipboard with other apps, a real SFTP host (S036). Plans that need these stop at that step and report. -- **Design references (read only, D-023)**: the user's own Material You apps — `~/Projects/Damson` (`src/theme.rs`, `src/motion.rs`, `src/ui/`), `~/Projects/Mulberry` (`src/theme.rs`, `src/ui/`), `~/Projects/Nacre` (`src/theme.rs`, `src/ui/widgets.rs`, `src/ui/chrome.rs`). They use egui, not Slint: borrow look and feel (colour roles, state layers, shapes, spacing, motion curves and timings) and port the idea to our Slint tokens; never change our stack, never edit them. Their code is the user's own, so copying is allowed where it fits. A library default that looks off is not a reason to accept it: build the control ourselves on `Theme`/`Motion`. +- **Design references (read only, D-027, D-028)**: the user's own Material You apps — `~/Projects/Damson` (`src/theme.rs`, `src/motion.rs`, `src/ui/`), `~/Projects/Mulberry` (`src/theme.rs`, `src/ui/`), `~/Projects/Nacre` (`src/theme.rs`, `src/ui/widgets.rs`, `src/ui/chrome.rs`). They use egui, not Slint: borrow look and feel (colour roles, state layers, shapes, spacing, motion curves and timings) and port the idea to our Slint tokens; never change our stack, never edit them. Their code is the user's own, so copying is allowed where it fits. Also the user's old, buggy Tunal prototype in `/home/astar76/Documents/Apps/tunal-files/tunal/` (Python): look at its elements for ideas only, never copy its code — the new UI is meant to be new. A library default that looks off is not a reason to accept it: build the control ourselves on `Theme`/`Motion`. - **Motion rules** (`app-taste` skill): tokens only, hover tint and press squeeze on every control, interruptible motion, honour reduced motion, no idle animation, repaint only while something moves. Build new motion with the `animate` skill; `/unslop` and `/improve-animations` run in phase 12 (S034, S035; there is no `/review-animations`). - No Forgejo remote yet: the user wants local-only git for now. diff --git a/docs/DECISIONS.md b/docs/DECISIONS.md index d4a5066..7c1e250 100644 --- a/docs/DECISIONS.md +++ b/docs/DECISIONS.md @@ -27,5 +27,6 @@ D-022 — 2026-11-18 — Fallback theme seed `#3F6FB5` (muted blue) when the por D-023 — 2026-11-18 — Window minimum size 720×480 px (preferred 960×640): fits a 240 px sidebar plus a usable content column; Slint 1.19 can't drive the icon font's variation axes (font-weight doesn't reach `wght`), so `Icon` has size only and draws the default instance (wght 400, FILL 0); easing tokens live in an internal `Motion` global and Rust sets the reduced flag through `MotionPrefs` (easing properties can't be exported) — S003 — S003 and every UI plan. D-024 — 2026-11-18 — Location URIs are `scheme://authority/path` with the path as raw bytes (percent-encoded only in Display); every backend implements the object-safe blocking `Location` trait in `tunal-core` (chunked `list` with a `ControlFlow` sink, `watch` returning a drop guard), unsupported ops return `Error::Unsupported`, and views gate actions on `capabilities()` — S006 — S007–S014, S024–S029. D-025 — 2026-11-18 — Controls: every control inherits `StateLayer` (tint drawn above content, `clicked` for users and `activated` for the control's own toggling; inherited properties must be written `root.x`); `TextField` is built on the builtin `TextInput` because std `LineEdit` (material) takes its colours from the fixed `MaterialPalette` and can't use our tokens; the software renderer ignores `transform-scale`, so press squeeze shows only in a real window — S004 — every UI plan, S035. -D-023 — 2026-11-18 — UI sessions look at the user's other Material You apps (Damson, Mulberry, Nacre; egui) as design references for colour roles, state layers, shape, spacing and motion, porting ideas to our Slint Theme/Motion tokens; the stack (Slint 1.19) stays; library defaults that don't match are replaced by own components — user — all UI plans (S004–S031, S034, S035). D-026 — 2026-11-18 — File operations run as jobs in `tunal-core::ops`: `Jobs::new(locations, sink)` (one worker thread runs long jobs in order; mkdir/rename get their own thread), `submit(JobKind) -> JobHandle` (`progress()`, `cancel()`); the sink gets `JobEvent::{Progress, Conflict(Box), Error(ErrorRequest), Finished(Report)}` on the job thread, requests block the job until answered through `Reply::send` (dropped = Skip). Folder onto folder with Overwrite merges. Trash item URIs are `trash:///:[/sub]` with `` = `home` or the hex path of a per-mount trash dir; entries' `name` is that key, `display_name` the original name; jiff 0.2 for local DeletionDate — S007 — S010, S011, S012, S013 and every plan that changes files. +D-027 — 2026-11-18 — UI sessions look at the user's other Material You apps (Damson, Mulberry, Nacre; egui) as design references for colour roles, state layers, shape, spacing and motion, porting ideas to our Slint Theme/Motion tokens; the stack (Slint 1.19) stays; library defaults that don't match are replaced by own components — user — all UI plans (S004–S031, S034, S035). +D-028 — 2026-11-18 — The user's old, buggy Tunal prototype (`/home/astar76/Documents/Apps/tunal-files/tunal/`, Python) is a UI reference only: look at its screens and elements for ideas (layout, panels, playlists, tag editor, dialogs), never copy its code, never port its bugs; the new UI should be fresh, not a re-skin — user — all UI plans, S008 (playlist sort), S021, S023.