> **Historical record.** This page describes the product as it was when it was written, under an earlier name, and is not kept up to date. For the current system (Astra) read [DESIGN_SYSTEM.md](../DESIGN_SYSTEM.md) for the UI, and [ARCHITECTURE.md](../ARCHITECTURE.md), [DEPLOYMENT.md](../DEPLOYMENT.md), [RUNBOOK.md](../RUNBOOK.md), [REMOTE_RUNNER.md](../REMOTE_RUNNER.md) and [SECURITY.md](../SECURITY.md). # Patch Testing Co-worker: UI redesign spec Status: design spec for the developer agent. Scope: `web/` only (React 18, TypeScript, Vite, Mantine 7, TanStack Query). Author: UI/UX design pass, 17 Oct 2026. Basis: the current app (code read in full for the files listed in section 0, plus screenshots of a local run at 1440x900 and 390x844 in light and dark) and the interaction patterns of AionUi (github.com/iOfficeAI/AionUi, Apache-2.0). This is a **redesign of layout and look only**. Every current function stays available and works as it does now (section 9 is the checklist). No route is removed. No new backend endpoint is needed for steps 1 to 7. Step 8 (scheduled runs "once" / "cron", pause, edit) needs the small backend additions listed in section 7.1, and the UI for those parts stays hidden until they exist. > **Amended 20 Oct 2026 by `UI-SIMPLIFY.md`** (calm palette, one accent, colour only for states, no caps labels, readiness shows the last finished verdict). Where the two disagree, `UI-SIMPLIFY.md` wins. Sections marked *Superseded* below point to it. Sections 9 and 10 are unchanged and still binding. Contents 0. What the current app does well and where it hurts 1. Design principles 2. App shell (layout, proportions, breakpoints, wireframes) 3. Screen-by-screen specs 4. Design tokens 5. Component inventory 6. Implementation plan (ordered, independently shippable steps) 7. Backend needs, out of scope, risks 8. Reusing AionUi code (licence obligations) 9. Functionality preservation checklist 10. Test hooks that must keep working --- ## 0. What the current app does well and where it hurts Read: `components/Layout.tsx`, `components/common.tsx`, `pages/AssistantPage.tsx`, `RunPage.tsx`, `RunGuide.tsx`, `LiveView.tsx`, `RunProof.tsx`, `RunWorkflow.tsx`, `ScenarioReview.tsx`, `FailureReview.tsx`, `SignOffReport.tsx`, `RunReport.tsx`, `ReadinessPage.tsx`, `RunsPage.tsx`, `SettingsPage.tsx`, `AdminPages.tsx`, `PodsPage.tsx`, `AuthShell.tsx`, `LoginPage.tsx`, `chat/ChatDock.tsx`, `styles.css`, `theme.ts`, `glossary.ts`, `agents.ts`, `web/e2e/coworker.e2e.ts`, `src/**/*.test.tsx`. Keep (it works): - Consultant vocabulary (`glossary.ts`): "Scenario", "Your review", "Ready / Not ready / On hold", with the exact rule result kept for audit. - The four-stage guide (Prepare, Approve, Testing, Result) with one recommended action per stage ("Approve all 79 and start testing"). - The honesty cue: "Practice environment, Mock app, not Oracle Fusion" in the menu, the chat header and the reports. - The pill system (`.fpt-pill` + `data-tone`), AA pairs already checked. - The Ask dock (Ctrl K) as a push column, not a modal. Hurts (seen in the screenshots): 1. **Two places for one run.** `/runs/:id` (guide + 10 tabs + "More" menu) and `/assistant/:id` (the same run as a chat) show the same facts in two layouts. Consultants do not know which one is "the" run. 2. **The run is invisible from the menu.** The sidebar has a badge "1" on Test runs but no list of runs; to get back to the run that waits for you, you go through a list page. 3. **Evidence hides behind tabs.** The live browser, the screens and the Excel are tabs that replace the guide; you cannot approve or decide while looking at the screen that failed. 4. **The workflow tab is a static diagram.** It shows state but not what each agent did, how long it took, or which one went quiet. 5. **Desktop wastes width, phone wastes height.** At 1440 the guide uses 1160px for one sentence and a progress bar; at 390 the stepper's connector lines run across the labels and the run header takes 170px. 6. **Dim text on the tinted page fails AA** (`--fpt-dim` #6b7673 on `--fpt-page` #e9f0ee is 4.07:1). 7. **Scheduler is an admin form** (UTC, minutes, "stub"/"live") rather than a consultant feature. --- ## 1. Design principles 1. **Consultant first.** Every label is a business word a functional consultant uses. Technical names (node ids, GO/NO-GO, P1-P4, "stub") appear only in tooltips, audit sections and admin views. Sentences, not field dumps. 2. **One run, one place.** A test run is a conversation with a team. Its workspace shows the conversation in the middle and the evidence on the right. Everything else about the run is one click away from that workspace. 3. **Human approval is always visible.** If a run waits for a person, that is shown in three places at once: an amber badge on the run in the sidebar, an amber "Waiting for you" chip in the top bar, and the action card at the end of the conversation. Approval and decision buttons are never inside a collapsed section or a menu. 4. **Honest about where the test ran.** Every run, report, screen and environment shows **Practice environment** (amber) or **Oracle Fusion pod** (blue) next to it. The words "Oracle Fusion" are never used for the practice pod. Quick simulations say "no browser" wherever a screen would be expected. 5. **Calm.** One accent per state, no gradients on working surfaces (the brand gradient stays on sign-in only), motion only for live state (a pulsing dot while an agent works). Quiet greys for everything that needs no action. 6. **Evidence beside the decision.** When you approve a scenario or judge a failure, its steps, its screen and its Excel row are visible in the side panel without leaving the card. 7. **Nothing lost.** Every current function keeps working; anything moved stays reachable within two clicks of where a consultant would look (section 9). 8. **Same app on web and desktop.** The Electron app loads this web app; the shell must work full-bleed in a window from 1024x700 upwards. --- ## 2. App shell ### 2.1 Regions ``` +------------+-----------------------------------------------+------------------+ | SIDEBAR | TOP BAR (52px) | CONTEXT PANEL | | (nav + +-----------------------------------------------+ (run pages and | | runs as | | scenario | | conver- | CENTER (page or run conversation) | library only) | | sations) | | | | | | tabs: Live | | | | | Screens | | | | | Report | Excel | | | | | Steps | +------------+-----------------------------------------------+------------------+ (+ Ask dock column, Ctrl K, unchanged behaviour) ``` - **Full bleed.** Remove the outer 14px padding and the rounded `.fpt-frame` border. The sidebar sits on `--fpt-sidebar` (tinted), the center and panel on `--fpt-surface`. One 1px `--fpt-border` line separates the regions. (Matches desktop-app conventions; the old frame doubled the margins on laptops.) - The **center** has a max content width of 1080px for reading pages (readiness, lists, settings) and is fluid for the run workspace. - The **context panel** only exists on run routes (`/runs/:id`, `/runs/:id/:tab`, `/runs/new`, `/assistant*`) and on the Scenarios library. Other pages are two-region. - The **Ask dock** (`ChatDock`) keeps its behaviour: Ctrl K toggles it, it is an `