--- name: app-shell description: Port ANA's app shell — one workspace, six tabs in a menu under the ANA logo (PRD with Current / History, Work with a sub-tab per kind of work, Knowledge with Ontology / Graph, Requests · Evolve · Update with Waiting / In progress / Done), sub-tabs (in the top bar), badges, right-aligned profile, "New version available" reload pill, and the remembered tab. Use when the user says "탭 구조", "모바일 네비게이션", "워크 탭", "서브탭", or when ana-update reports app-tabs missing. --- # app-shell — where things live One workspace, six tabs, in this order: | Tab | Sub-tabs | What | |---|---|---| | **PRD** | Current · History | what this ANA is and does (see agent-requests) | | **Work** | none at first; one per kind of work once built | empty until the agent builds it from the PRD (*Build Work from the PRD*) into `#workArea` | | **Knowledge** | Ontology · Graph · Documents | one graph of everything here — kinds and relations, items, things, documents and their links (see agent-requests) | | **Requests** | Waiting · In progress · Done | what the agent needs from you (see agent-requests) | | **Evolve** | Waiting · In progress · Done | proposals for the work and the app (see agent-requests) | | **Update** | Waiting · In progress · Done | features from upstream not yet here (see ana-update) | ## UX spec ``` Mobile (≤768px) Desktop ┌───────────────────────────────────┐ [logo ANA | Work •3 ▾] Tasks Calendar Notes (Chip)(✎)(⟳)(A) │[logo] Work •3 ▾ (Chip)(A) │ ────────────────────────────────────────────────────── │ Tasks Calendar Notes │ ← sub-tabs (second row on phones, next to the logo on desktop) │ … │ The logo opens the menu: PRD · Work · Knowledge · Requests · Evolve · Update ─ System │ (chat FAB) │ └───────────────────────────────────┘ No bottom menu — phones use the same logo menu. ``` - The profile avatar is **always the rightmost** item in the header; on phones the Chip switch group sits at the right (`#modeToggle { margin-left: auto }`). - The **last tab** is remembered (`localStorage ana-tab`), and each tab's sub-tab too (`ana-subtabs`). - The **address carries the screen**: `#/[/]` (`#/prd`, `#/knowledge/graph`, `#/requests/wait`). Opening such a URL goes straight there (it wins over the remembered tab); switching tabs rewrites it with `history.replaceState` (no history entries); editing it fires `hashchange`. An unknown tab falls back to the remembered one. `urlTab`, `syncUrl`, `openFromUrl`. - **Work sub-tabs switch screens:** each Work screen (`todoView`, `scheduleView`, `memoView`) carries the same `