diff --git a/.agents/web.md b/.agents/web.md index 8c9bed9..e630e0f 100644 --- a/.agents/web.md +++ b/.agents/web.md @@ -589,8 +589,8 @@ deploying the page needs no kernel toolchain. tile per other open window (`#dock-terminal-K`, `#dock-display`, `#dock-preview`, ...), and while wland's relay is connected `#dock-wayland` (Ctrl-A w). Pins (`pins.ts`): localStorage `kw.pins`, an - ordered list of app ids and `group:` (by default Terminal, the Browsers, - AI, Desktop, Graphics and Games groups, and Settings), changed from the + ordered list of app ids and `group:` (by default Terminal and + Settings), changed from the tiles' and the launcher's menus (Keep in Dock, Remove from Dock, Move Left, Move Right); an entry the registry no longer has is kept but not shown. A pinned app's tile stands for its window (`appwindows.ts` diff --git a/web/index.html b/web/index.html index 153f543..ef56cb5 100644 --- a/web/index.html +++ b/web/index.html @@ -171,7 +171,7 @@ module never runs, this is what shows: the desktop as components/App.tsx first draws it (inert): the console's window (Workspace.tsx) with its placeholder, the Dock (Dock.tsx: Apps, dimmed until the system runs, - Settings, the console's tile) and the top bar (TopBar.tsx: the mark, the + the console's tile, Settings) and the top bar (TopBar.tsx: the mark, the boot indicator, the power button); the failure card is for a failure before then. -->
@@ -193,9 +193,7 @@
diff --git a/web/src/components/Dock.tsx b/web/src/components/Dock.tsx index cff7ecf..6afc54a 100644 --- a/web/src/components/Dock.tsx +++ b/web/src/components/Dock.tsx @@ -13,8 +13,7 @@ // Ctrl-A o; dimmed while the system does not run: data-off, store.ts // isRunning); // - the apps and launcher groups kept in the Dock (pins.ts; by default -// Terminal, Browsers, AI, Desktop, Graphics, Games and Settings; on phones -// Terminal, glmark2, Galculator, Desktop and Settings), in their order. A +// Terminal and Settings), in their order. A // group's tile (#dock-group-, GroupFace: its icon in front of a small // fan of cards) opens its apps in a stack above it (DockStack.tsx // #dock-stack; useStackHover below: a mouse resting on the tile opens it, diff --git a/web/src/pins.ts b/web/src/pins.ts index fa6434e..f773d26 100644 --- a/web/src/pins.ts +++ b/web/src/pins.ts @@ -24,18 +24,13 @@ import { APPS, GROUPS } from "./apps/index.ts"; import type { App, Group } from "./apps/types.ts"; import { createStore } from "./store.ts"; import { store } from "./prefs.ts"; -import { isMobile } from "./config.ts"; /** The key under prefs.ts store()'s `kw.` prefix. */ const KEY = "pins"; /** A stored group entry's prefix. */ const GROUP = "group:"; -/** A fresh profile's pins on a desktop: the console's Terminal, the Browsers, AI, Desktop, Graphics and Games folders and Settings. */ -const DESKTOP_PINS: readonly string[] = ["terminal", `${GROUP}browsers`, `${GROUP}agents`, `${GROUP}desktop`, `${GROUP}gl`, `${GROUP}games`, "settings"]; -/** A fresh profile's pins on a phone (config.ts isMobile()): the console's Terminal, glmark2, Galculator, the Desktop folder and Settings. */ -const MOBILE_PINS: readonly string[] = ["terminal", "glmark2", "galculator", `${GROUP}desktop`, "settings"]; -/** A fresh profile's pins: MOBILE_PINS on a phone, else DESKTOP_PINS. */ -export const DEFAULT_PINS: readonly string[] = isMobile() ? MOBILE_PINS : DESKTOP_PINS; +/** A fresh profile's pins: the console's Terminal and Settings. */ +export const DEFAULT_PINS: readonly string[] = ["terminal", "settings"]; const BY_ID = new Map(APPS.map((a) => [a.id, a])); const GROUP_BY_ID = new Map(GROUPS.map((g) => [g.id, g]));