From 500c4f0ed442693de7576de722db6cd0d5e23c90 Mon Sep 17 00:00:00 2001 From: astar76 Date: Wed, 11 Nov 2026 23:56:31 -0600 Subject: [PATCH] S020: welcome flow, task manager, about, clear data, site settings, source, devtools, error pages, dialogs, bars; row layout fix; PROGRESS, INDEX Co-Authored-By: Claude Sonnet 5.5 --- Plans/04 UI redesign/S020-ui-pages.md | 12 +- Plans/INDEX.md | 2 +- .../fonts/MaterialSymbolsOutlined-Nacre.ttf | Bin 70052 -> 73196 bytes assets/servo/badcert.html | 32 +- assets/servo/crash.html | 27 +- assets/servo/neterror.html | 32 +- docs/DESIGN.md | 16 + docs/PROGRESS.md | 18 + docs/review/phase1.md | 2 +- src/selftest.rs | 25 ++ src/ui/dialogs.rs | 399 +++++++++++------- src/ui/icons.rs | 8 + src/ui/pages/apps.rs | 2 +- src/ui/pages/devtools.rs | 207 +++++---- src/ui/pages/misc.rs | 362 ++++++++-------- src/ui/pages/mod.rs | 3 +- src/ui/pages/passwords.rs | 2 +- src/ui/pages/settings.rs | 2 +- src/ui/pages/welcome.rs | 315 ++++++++++++++ src/ui/widgets.rs | 33 +- tests/smoke/dialogs.txt | 43 ++ tests/smoke/pages-ui.txt | 68 +++ tests/smoke/pages/dialogs.html | 6 + tools/icons.txt | 4 + 24 files changed, 1144 insertions(+), 476 deletions(-) create mode 100644 src/ui/pages/welcome.rs create mode 100644 tests/smoke/dialogs.txt create mode 100644 tests/smoke/pages/dialogs.html diff --git a/Plans/04 UI redesign/S020-ui-pages.md b/Plans/04 UI redesign/S020-ui-pages.md index 06cec4b..c162a8d 100644 --- a/Plans/04 UI redesign/S020-ui-pages.md +++ b/Plans/04 UI redesign/S020-ui-pages.md @@ -12,12 +12,12 @@ Apply the design system to the remaining internal pages and all dialogs, with de - each page file as you redo it ## Steps -- [ ] History and bookmarks pages (lists, search, folders, empty states) -- [ ] Downloads page and passwords/vault page (lock state, entries, empty state) -- [ ] Apps, devtools and misc pages -- [ ] Dialogs: alert/confirm/prompt, HTTP sign-in, select, colour, permissions, leave page — M3 dialog shape and motion -- [ ] Smoke shots of every page and dialog, light/dark; check by eye; stores and basics smoke scripts still pass -- [ ] PROGRESS entry, INDEX line, commit `S020: …` and push +- [x] History and bookmarks pages (lists, search, folders, empty states) +- [x] Downloads page and passwords/vault page (lock state, entries, empty state) +- [x] Apps, devtools and misc pages +- [x] Dialogs: alert/confirm/prompt, HTTP sign-in, select, colour, permissions, leave page — M3 dialog shape and motion +- [x] Smoke shots of every page and dialog, light/dark; check by eye; stores and basics smoke scripts still pass +- [x] PROGRESS entry, INDEX line, commit `S020: …` and push ## End criteria - Basics and stores smoke scripts green. diff --git a/Plans/INDEX.md b/Plans/INDEX.md index 0b7003c..17cee36 100644 --- a/Plans/INDEX.md +++ b/Plans/INDEX.md @@ -30,5 +30,5 @@ Tracker: https://claude.ai/artifact/9AD7fPfwJ4ASFzVTJGKU4h - [x] [S017 — New tab page: elements](04%20UI%20redesign/S017-ntp-elements.md) · Opus medium - [x] [S018 — New tab page: backgrounds and Customize](04%20UI%20redesign/S018-ntp-backgrounds.md) · Opus medium - [x] [S019 — Settings pages redesign](04%20UI%20redesign/S019-ui-settings.md) · Opus medium -- [ ] [S020 — Other pages and dialogs redesign](04%20UI%20redesign/S020-ui-pages.md) · Sonnet high +- [x] [S020 — Other pages and dialogs redesign](04%20UI%20redesign/S020-ui-pages.md) · Sonnet high - [ ] [S021 — Phase 4 review with the user](04%20UI%20redesign/S021-phase4-review.md) · Sonnet medium · 🧑 diff --git a/assets/fonts/MaterialSymbolsOutlined-Nacre.ttf b/assets/fonts/MaterialSymbolsOutlined-Nacre.ttf index c808b6a75aa4e76dc6f0ab3dbf1844e9e3347cf9..cd9025d4566cd2b5b5904d602f756adb63e783ee 100644 GIT binary patch delta 4249 zcmZ3onB~oGmI-1)1uqyF7_>aX9D^8y82lL+3PmPr$ki9RFfcG2Ni0h&Vqkx{nt`E+ zgMop;Bsn*+z^>y!Cj$d>1_J{tTUuFS(Um#do-!~L*)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(}ZBWWcfc2B)LRW<&dXOq(Y=eN)-|JY9=<^YxrRteiOvt3lpo zY?yqf=vuvog60V=d9AhDI@&vR%ym}litASD73!PnR~T3soHb%IW-?JRA~>`vP=*}K|j+OKsGcG&8u=~&~q&+(;`qEm#^e5V)A z*3Plc6)q93)7&K8RXrwq&hQHN4)Ce-Iqs|NXBZ$I!0Z#SbhAxKyWi&GV`o@5YoFcc UvYlO+(T;ulT^UAxMkWRZ03~=cl>h($ diff --git a/assets/servo/badcert.html b/assets/servo/badcert.html index 5c0555e..4bd3c5c 100644 --- a/assets/servo/badcert.html +++ b/assets/servo/badcert.html @@ -4,21 +4,31 @@ Connection not secure +
!

Connection not secure

-

This site's certificate can't be trusted, so someone could be reading or changing what you send. - It's safest to go back.

-

Details: ${reason}

- - -
${bytes}
+

This site's certificate can't be trusted, so someone could be reading or changing what you send. It's safest to go back.

+

Details: ${reason}

+
+ diff --git a/docs/DESIGN.md b/docs/DESIGN.md index afe9713..4052aeb 100644 --- a/docs/DESIGN.md +++ b/docs/DESIGN.md @@ -223,6 +223,22 @@ then shows only sections with matches, rows highlighted; `nacre://settings/?sear scheme preview (mini browser in the live roles + key colours), palette swatches built per preset with the current mode/style/contrast (cached), custom colour = hex field + picker. +**Pages and dialogs** (S020). Page widgets in `widgets.rs`: `page_header(title, subtitle, actions)` (Headline title, +actions right or under it below 640 pt, subtitle truncated), `search_pill(id, &mut text, hint)`, `empty_state(glyph, +title, body, action)` and `status_state(glyph, title, body, error)` (round icon, plain words, button), `list_item(id, +glyph, title, detail, trailing)` (one 56 pt row inside a `card`: round icon, title and detail cut with an ellipsis, +whole row clickable, icon buttons at the end), `more_menu` (more button + `menus::menu_item` rows), `password_field`, +`strength_meter`. Pages follow one shape: header, search pill, then `section` + `card` groups; every list has an empty +state (what will appear and how) and a "nothing matches" state. `row` now lays the control beside the text on its first +frame and moves it under the text only when it measured too wide (it used to start stacked, which stuck in narrow cards). +Welcome (`pages/welcome.rs`): six steps in a 560 pt card over the new tab backdrop; indicator dots (current one a +stretched pill, clickable), card height on a spring, step content fades and slides in (a new spring id per step), +Enter continues, Escape skips, every choice is written to settings at once. Dialogs (`dialogs.rs::dialog_card`): scrim +over the page rect, `surface_container_high` card radius `XL`, padding 24, one shadow, eases in; title Headline, body +`on_surface_variant`, actions right with the main one last (Enter = main, Escape = cancel). Permission and find bars are +56 pt `surface_container_high` bars with real buttons. Selftest: `key `, `welcome `. The web error pages +(`assets/servo/{neterror,badcert,crash}.html`) use the same roles in CSS with a dark scheme. + **Shapes** (`ui::paint`): `cookie(painter, center, radius, lobes, rotation, fill, stroke)`, `cookie_image(painter, texture, center, radius, lobes, rotation)` (artwork in a cookie), `cookie_points`, `wavy_line(painter, x0, x1, y, amplitude, wavelength, phase, stroke)`, `wavy_progress(painter, rect, fraction, diff --git a/docs/PROGRESS.md b/docs/PROGRESS.md index 06e5715..6172d6e 100644 --- a/docs/PROGRESS.md +++ b/docs/PROGRESS.md @@ -130,6 +130,24 @@ One entry per session, newest last, ≤ 15 lines: done, verified how, not done, - Not seen: page scrolled below the fold (no scroll command), hover/press in shots, colour picker popup, key capture; backgrounds/chrome smoke not rerun after moving chip/slider out of customize.rs (same code, it compiles). +## S020 — Other pages and dialogs redesign (2026-11-12) +- Done: history, bookmarks (+ reading list), downloads, passwords (logins, addresses, cards, generator, check, master + password, lock screen), apps (+ scripts and styles), devtools, task manager, about, clear data, site settings, source + and the web error pages (neterror, badcert, crash HTML, dark and light) in the S015/S019 system, each with designed + empty, no-match and error states. Welcome is the six-step setup flow (R1-08). All dialogs: alert/confirm/prompt, sign-in, + select, colour, Bluetooth, leave page, autofill dropdowns, permission and find bars. +- Widgets added (DESIGN.md "Pages and dialogs"): page_header, search_pill, empty_state, status_state, list_item, + more_menu, password_field, strength_meter. Fixed `row` starting stacked in narrow containers. Added icons diamond, + fingerprint, rocket_launch, lightbulb. Selftest `key`, `welcome`. +- Shots (target-independent, run with SMOKE_VISIBLE=1): `tests/smoke/pages-ui.txt` (history, bookmarks, downloads, + passwords, apps, site settings, clear data, about, tasks, devtools, source, welcome 1-6, light variants) and + `tests/smoke/dialogs.txt` (alert, confirm, prompt, select, colour, find bar, light alert). +- Verified: 51 unit tests; launch, settings, chrome, pages-ui, dialogs smoke exit 0. +- Not seen: populated downloads and apps lists, password/address/card editors and lists (vault is empty in smoke), + the select dropdown and permission/sign-in/leave-page dialogs (no script trigger), the HTML error pages after + the change (only the old one), welcome Import with a detected browser, hover/press states, tiny windows. "Make Nacre + your default browser" is not in the done step (no code for it yet). + ## 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). diff --git a/docs/review/phase1.md b/docs/review/phase1.md index ea193a5..8c85f19 100644 --- a/docs/review/phase1.md +++ b/docs/review/phase1.md @@ -33,5 +33,5 @@ State tags: `[open]`, `[fixed ]`, `[wontfix: reason]`. Severity: high / - R1-05 [open] UI is "really basic"; the new-tab page isn't what the user was going for. Severity: medium. Phase 4 redesign; target in docs/UI-BRIEF.md. - R1-06 [open] Wants the feel of the old Python Nacre (`nacre` in ~/.local/bin: dark Material-style lists of nacre:// pages, outlined icons), improved with animations and an "unslop" look, very user friendly. Severity: medium. Input for the Phase 4 redesign. - R1-07 [open] Ad-block removal animation, like the "pie" ad blocker extension: before a blocked ad element (e.g. YouTube in-feed "Sponsored" cards, feed/sidebar ad slots) disappears, show a Material You overlay on it, a tonal shape (cookie/scalloped) with a check mark that pops in, then the element shrinks out and its height/width collapses smoothly so the surrounding content shifts into place (no jump, no blank gap). Applies to cosmetic removals and YouTube ad slots. Today `COSMETIC_JS` in `src/inject.rs` only fades and scales to 0.92 and then sets `display:none`, so content jumps. Respect the Motion setting and `animate_removal`; skip offscreen elements. Severity: medium. (user, during S019) → S012. -- R1-08 [open] Welcome page: make nacre://welcome the multi-step setup flow from the user's recording (steps, motion and frames in docs/UI-BRIEF.md "Welcome page", `docs/ui-reference/welcome-*.jpg`), improved where possible. Severity: medium. (user, during S019) → S020. +- R1-08 [fixed S020] Welcome page: make nacre://welcome the multi-step setup flow from the user's recording (steps, motion and frames in docs/UI-BRIEF.md "Welcome page", `docs/ui-reference/welcome-*.jpg`), improved where possible. Severity: medium. (user, during S019) → S020. - R1-09 [open] Address bar becomes a wavy progress bar while a page loads: the address pill turns into a Material 3 Expressive wavy (wiggly) progress line that maps the page's load progress; hovering it (or focusing it, or typing) morphs it back to the normal text field; when not loading it's the normal field. Every change between the two states is animated (spring morph, Motion setting respected). Build it as described here; the old browser's loading wave (a line under the pill) is NOT the target. Severity: medium. (user, during S020) → chrome follow-up after S020, before S021. diff --git a/src/selftest.rs b/src/selftest.rs index d0a24b0..4d262d3 100644 --- a/src/selftest.rs +++ b/src/selftest.rs @@ -19,8 +19,10 @@ //! js + diff --git a/tools/icons.txt b/tools/icons.txt index 575a505..d23341c 100644 --- a/tools/icons.txt +++ b/tools/icons.txt @@ -179,3 +179,7 @@ memory colorize format_color_fill restart_alt +diamond +fingerprint +rocket_launch +lightbulb