waybetter/packages/shell/tests
CRT 3079933452 Safe mode: one run with only the shell working (the app menu, --safe-mode, Shift at launch on Windows)
Host: `safe.rs` is a flag in this process's memory, never written to disk, so the next normal start is back to the owner's setup. While it is on a site tab gets the tab bridge and nothing of the app's page layers: its document-start scripts are `SiteHooks::safe_init_scripts` (default: the bridge alone) instead of `init_scripts`; `site_page_loaded`, `tab_placed` and `tab_background` are not called; `page_scripts` is empty; `eval_in_site_tabs` does nothing. So no page runtime, plugins, theme, custom CSS, feature flags, fixes, hotfix data or words reach a page: the site runs as in a browser, and only the shell is the app's. It starts from the launch argument `--safe-mode` (for when the interface itself is broken), from Shift held while the app starts (Windows), or from the shell: `safe_mode_get` / `safe_mode_set {on}` (shell-only), where a switch rebuilds every tab webview (profiles marked stale, `tabs-rebuild` asks the shell for its layout) so document-start scripts change too. Tests: the argument, the flag, and that app.rs and host.rs gate every layer.

Frame: the app menu's "Restart in safe mode…" says what it does before anything reloads; while on, the titlebar shows an amber "Safe mode | Leave" chip (one click leaves) and the row reads "Leave safe mode"; the chrome drops its theme (and pane themes) and takes it back on leaving, without touching the first-frame cache. `features.safeMode` (on by default).
2026-09-30 16:13:03 +00:00
..
deckModel.test.ts Deck columns (Power User Mode): shell deckModel (bounded decks, paging layout, focus, unread totals), runtime column mode (hide site chrome, fill width, filters, unread tracking, no requests), host ColumnConfig bounds, TabRole, deck shortcuts, capped unread in TabState; column boxes skip rail rules 2026-09-28 15:55:57 +00:00
frame.test.ts shell: the shell frame, createShell(site) (moved from wayBetter for X) 2026-09-29 05:47:10 +00:00
language.test.ts i18n: supported and community language tiers 2026-09-30 08:48:11 +00:00
linkDrop.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
menu.test.ts Safe mode: one run with only the shell working (the app menu, --safe-mode, Shift at launch on Windows) 2026-09-30 16:13:03 +00:00
models.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00
panel.test.ts Feature health on the area cards: a feature that paused itself is named by its area's "health" palette entry, and the panel reads it for the row and the card (no new report to the host) 2026-09-30 15:00:04 +00:00
store.test.ts shell: the Store view and install screen as framework React components, strings in the framework catalogs 2026-09-29 04:08:04 +00:00
windowControls.test.ts Extract the wayBetter framework core from wayBetter for X 2026-09-27 20:01:33 +00:00