Nacre/PLAN.md

22 lines
2.6 KiB
Markdown

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Nacre — vision
## Goal
A daily-driver web browser in Rust on WebKitGTK 6.0 (GTK 4 host) with an egui UI, 1:1 in features with the user's Python/QtWebEngine Nacre (new tab page, settings, permissions, vault/autofill, ad blocker, VPN/DNS bridge, downloads, Discord presence, media, import of old profiles). Recipient: the user, replacing their current browser; releases go to their Forgejo (astar76/Nacre).
## Current state
Storage, networking, ad blocker, media, importer, updates, keys, the WebKit host and an egui UI, built and smoke-tested hidden; Servo is gone (S053). Architecture: `docs/DESIGN.md`; features: `docs/FEATURES.md`; open checks: `docs/REVIEW.md`; redesign spec: `docs/UI-BRIEF.md`.
## Phases
1. **First build** — make it compile (`nice cargo build --release -j 2`), fix errors in place, get the binary to start.
2. **Verify** — run the unit tests, smoke test offscreen (page renders, tabs, settings), check the shared-GL painter question; fix what breaks.
3. **Gaps** — work through `docs/REVIEW.md`, fix the user's review items, add MPRIS media keys (other candidates deferred, D-002).
4. **UI redesign** — Material You (tonal-spot schemes, spring motion, expressive shapes) and the animated new tab page per `docs/UI-BRIEF.md`, using the `app-taste` skill. Starts only after the framework works.
5. **Polish pass** (`Plans/07 Polish pass`, input `docs/review/phase5.md`) — the crash, load speed, SVG/masks, small fixes, flyouts and context menu, custom download manager, a DevTools window, motion rules, a little-things sweep and site passes; ends with the phase 5 review (S042).
6. **WebKit engine** (`Plans/08 WebKit engine`, D-032–D-040, runs first) — GTK 4 host with the egui overlay over WebKitGTK 6.0 views, engine callbacks, ad block via content filters + web process extension, network/privacy/downloads, profile and sealed cookies, tuning defaults, Servo removal (done, S053), site pass vs Chromium; Widevine later.
7. **Fix round** (`Plans/09 Fix round`, D-048–D-050, after S054) — stuck tabs and view cleanup, PiP focus, site context menus and click-through ads, memory saver, nacre:// lockdown, history flyout and About list, custom download manager by port, UI alignment.
8. Packaging and release (Linux AppImage/tar.gz, Windows installer and zip) when the user asks.
Each of phases 1–4 ends with a user review plan (D-003).
## Out of scope
Chrome extensions and Widevine/DRM for now (WebKit limits, shown as unavailable; Widevine is a later plan). Printing, private mode and third-party cookie blocking are possible on WebKit and belong to later plans. Anything copied from the older `Nacre-rust` repo.