Tabs slide to their slots with a sliding selection pill and drag under the pointer; the address field is a pill with a site chip, host emphasis and a star that fills; flyouts and menus share one floating surface that springs open and fades closed. Web page corners are masked over the GL blit. tests/smoke/chrome.txt shoots the chrome and every flyout dark and light. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89 lines
7.4 KiB
Markdown
89 lines
7.4 KiB
Markdown
# Progress
|
||
|
||
One entry per session, newest last, ≤ 15 lines: done, verified how, not done, later.
|
||
|
||
## S001 — Compile to a binary (2026-11-11)
|
||
- Done: self-test WIP and UI brief committed; first build had 5 errors (missing `Read` import in instance.rs,
|
||
missing `Speller` import in actions.rs, borrow errors in app.rs:796, store/scripts.rs:124,
|
||
ui/pages/settings.rs:947), fixed in place; removed a no-op `drop(&mut)` in app.rs. No feature degraded.
|
||
- Verified: `nice cargo build --release -j 2` exit 0; `target/release/nacre` (144 MB) `--help`/`--version` exit 0
|
||
headless; `ldd` resolves everything. nacre crate alone rebuilds in ~1 min (Servo was already built).
|
||
- Not done: unit tests, launching a window (later plans).
|
||
- 66 warnings remain: egui 0.37 deprecations (`Ui::id`, `Id::new`) and dead code. Dead code that hints at unwired
|
||
features: `History::autocomplete`/`top_sites` (omnibox inline completion, new-tab top sites?),
|
||
`keys::conflicts` (shortcut conflict check), `Command::SpellReplace` (duplicate of `MenuAction::SpellReplace`),
|
||
`tabs::Page::Error`, `Prompt::Info`. Worth a look in the gaps phase.
|
||
|
||
## S002 — Unit tests green (2026-11-11)
|
||
- Done: `nice cargo test --release -j 2` compiles with no test-only errors; 29 tests pass, run 0.1 s (build ~16 s).
|
||
Green twice in a row. No code or test changes were needed: no bugs found.
|
||
- Verified: grep of test modules: only temp dirs (adblock, vault), loopback TcpStream (bridge), `/nonexistent`
|
||
paths (history); URLs in tests are string constants. No test touches `~/.config/nacre*`, Tor or proxies.
|
||
- Not done: coverage is thin (29 tests across 16 modules; no tests for e.g. downloads dlm, session, apps).
|
||
|
||
## S003 — First launch and smoke harness (2026-11-11)
|
||
- Done: hidden display = Xvfb + llvmpipe (D-005). `tools/smoke.sh` + `tests/smoke/{launch,https,restore}.txt`
|
||
(CLAUDE.md §5). Launch renders nacre://newtab (egui) and a local file:// page (Servo); example.org loads through
|
||
the bridge (route Direct, ~205 KB); second launch restores the session; user profile untouched.
|
||
- Fixed: (1) every egui glyph panicked in vello_cpu ("rasterize before flushing"): servo-canvas turns on
|
||
vello_cpu/multithreading for epaint too. Vendored epaint 0.37.0 in `vendor/epaint` (`[patch.crates-io]`),
|
||
glyphs render single-threaded (D-006); regression test `theme::tests::egui_draws_text` (fails without it).
|
||
(2) segfault on quit: Hub<->Servo Rc cycle kept Servo alive; `App::quit` now drops every Servo handle before
|
||
the windows' GL contexts (src/app.rs).
|
||
- Verified: `tools/smoke.sh tests/smoke/launch.txt` exit 0 ×5, 2 non-blank PNGs, 0 `panicked`; 30 tests green.
|
||
- Not done: exit fix not A/B-checked by reverting (crash seen once before the fix, 5 clean runs after).
|
||
- Later: toolbar/tab icons draw as tofu boxes (icon font glyphs missing); new-tab clock text nearly invisible on the
|
||
light theme; tile letters ("Y", "G") above names look like missing favicons.
|
||
|
||
## S004 — Phase 1 review (2026-11-11)
|
||
- Done: build current; `docs/review/phase1.md` written; user's feedback recorded as R1-01..R1-06 (6 open, 0 fixed).
|
||
- Most severe: R1-01 icon glyphs missing (tofu boxes), R1-03 YouTube fails to load (not investigated; S006).
|
||
- Not done: no fixes (none trivial); the user's session tried only a short run.
|
||
- Later: R1-05/R1-06 feed the Phase 4 redesign (look of old Python Nacre, animations).
|
||
|
||
## S005 — Painters (2026-11-11)
|
||
- Done: D-008 one painter per window (`window.rs` `page_context`/`painted_tab`/`paint_unshown`); PiP = second web
|
||
view with its own painter that reloads the page and seeks (`Tab::pip`, `actions.rs` enter/exit_pip, PIP_JS
|
||
take/start/state/resume). Fixed: egui destroy in the wrong GL context (chrome blank after PiP); PiP video frozen
|
||
(Servo 0.7 freezes a playing video seeked then play()ed: `pip.start` pauses first).
|
||
- Measured (llvmpipe, 15 tabs): per-tab painters 1128 MB / 141 threads vs shared 349 MB / 71 threads; ~56 MB per
|
||
painter; frame median ~13 ms either way. glibc keeps freed memory after discard.
|
||
- Verified: painters.txt, launch.txt, painters-perf.txt exit 0; 30 unit tests green. Shots checked by eye
|
||
(target/smoke/painters-final): s1-s6 tabs, r1-r3 resize, p1 placeholder, p2/p4 PiP playing (1.33 s -> 3.40 s),
|
||
p3 tab 1, p5 tab 5 resumed, c1-c3 closes.
|
||
- Not done: real-GPU check (S010). PiP loses page state (in DESIGN engine limits). Split view now impossible.
|
||
- Later: status field `painters` counts web views, not painters; rename. malloc_trim after discard.
|
||
|
||
## S015 — Material You foundation (2026-11-11)
|
||
- Done: `theme.rs` M3 schemes from `material-colors =0.4.2` (D-009) with all roles + old aliases; `theme::apply` stores
|
||
tokens (palette, roundness, motion) in the egui context; shape/space/type tokens; springs (FAST/DEFAULT/SLOW/EFFECT,
|
||
Motion setting scales or disables). Outfit variable font (5 weights) + Material Symbols subset (`tools/icons.py`,
|
||
139 icons, 55 KB). `widgets.rs` restyled (buttons, icon buttons, switch, segmented, card, rows), `ui/paint.rs`
|
||
(cookie, wavy line/progress, shadow), hidden `nacre://gallery` + `tests/smoke/gallery.txt`. DESIGN.md § UI system.
|
||
- Fixed: R1-01 (every emoji/Unicode glyph in src/ui now an icon constant); R1-02 (strong text used on_primary =
|
||
white in light theme; clock now Thin Outfit in primary).
|
||
- Verified: 38 unit tests (reference colours #555992/#BEC2FF/#65558F/#CFBDFE, contrast ≥ 4.5 for 12 presets light and
|
||
dark, widget click/Tab+Space/hover-settle); gallery.txt and launch.txt exit 0, shots checked by eye.
|
||
- Not done: focus ring and pressed states not seen in screenshots (tests only); no real-GPU check; no CJK font.
|
||
- Later: chrome toolbar glyphs still drawn at text size via egui Buttons (S016); `egui::Ui::id`/`Id::new`
|
||
deprecation warnings across src/ui.
|
||
|
||
## S016 — Chrome and menus redesign (2026-11-11)
|
||
- Done: chrome.rs rewritten: pill tabs on springs (selection pill slides, drag under the pointer, others make room),
|
||
round +, 52 pt toolbar of icon buttons with badges/progress ring/VPN dot, address pill (site chip, "Not secure",
|
||
host emphasis, zoom/install chips, star that fills), suggestions as a floating menu, bookmarks bar chips + empty
|
||
hint, page as a rounded card (corners masked over the GL blit). menus.rs: `floating` (spring open/close), `menu_item`;
|
||
every flyout and the page menu restyled (wavy download/seek bars, cookie artwork with dot visualizer, morphing play).
|
||
Measurements: DESIGN.md "Chrome". Main menu: Save page/PDF/QR/Install/Shortcut moved into "Save and share".
|
||
- Shots: `tools/smoke.sh tests/smoke/chrome.txt` (target/smoke/s016f-chrome): chrome-dark/light, main(-opening)-dark,
|
||
main-light, downloads, shield, vpn, siteinfo, qr, tabmenu (dark+light), media(-playing), profiles, apps, back,
|
||
bookmark, suggest-dark, narrow-light. selftest: `flyout tabmenu|back|bookmark`, `type <text>`.
|
||
- Verified: chrome, launch, restore, painters, gallery smoke exit 0; 40 unit tests (+drag_layout, address_job).
|
||
- Not done/seen: S006 basics scripts don't exist yet (ran the four above instead); page right-click menu, hover,
|
||
press and a live tab drag not in screenshots (no pointer in selftest for chrome); no real-GPU check.
|
||
- egui limits hit: Area capped at 600×400 unless `default_size`; Xvfb never focuses the window, so text focus drops
|
||
(selftest `type` sends Focused(true)); stale TextEdit selection shows after focus leaves (cleared by hand).
|
||
|
||
## Later
|
||
- Reader mode, split view, translate, real gamepad rumble (D-002: not planned for now).
|
||
- Packaging and first release (D-001: plan when the user asks).
|