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 c808b6a..cd9025d 100644 Binary files a/assets/fonts/MaterialSymbolsOutlined-Nacre.ttf and b/assets/fonts/MaterialSymbolsOutlined-Nacre.ttf differ 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