From e1afcad6ca073b67b3c0df7f0dc7996add34ffb9 Mon Sep 17 00:00:00 2001 From: Muhammad Talha Atif Date: Thu, 26 Nov 2026 16:10:10 +0500 Subject: [PATCH 1/3] Redesign the desktop UI without changing what it does - Calmer layout: 5 main menu items plus the sample-only screens under "More screens (Demo)", one place for each action, and the task screen goes from four columns to a task list and one panel. - What the app sends and saves is unchanged: daemon commands, cloud requests, stored settings and the diff reader. - Everything made up is labelled Demo. Sample code is flagged wherever it could be approved. - Fixes the 30 TypeScript errors on main with type-only changes, so the build passes again. - design/current-functionality.md lists what works today, what is demo, and problems found but not fixed. --- design/current-functionality.md | 68 + src/App.css | 8259 ++---------------------- src/App.tsx | 3 +- src/api/cloud.ts | 5 +- src/components/AnalyticsView.tsx | 205 +- src/components/AppSidebar.tsx | 489 +- src/components/AuthModal.tsx | 9 +- src/components/CommandPalette.tsx | 9 +- src/components/DashboardView.tsx | 464 +- src/components/Demo.tsx | 22 + src/components/ModelHubView.tsx | 375 +- src/components/ModernWorkspace.tsx | 1667 ++--- src/components/NewTaskForm.tsx | 46 +- src/components/ProjectsView.tsx | 460 +- src/components/ReviewQueueView.tsx | 187 +- src/components/SettingsView.tsx | 84 +- src/components/TerminalDock.tsx | 7 +- src/components/Topbar.tsx | 20 +- src/components/WorkflowBuilderView.tsx | 247 +- src/components/WorkspacePages.tsx | 297 +- src/types/auth.ts | 7 + 21 files changed, 1897 insertions(+), 11033 deletions(-) create mode 100644 design/current-functionality.md create mode 100644 src/components/Demo.tsx create mode 100644 src/types/auth.ts diff --git a/design/current-functionality.md b/design/current-functionality.md new file mode 100644 index 0000000..d4d7bf1 --- /dev/null +++ b/design/current-functionality.md @@ -0,0 +1,68 @@ +# What works today, and what is demo content + +Written for the November 2026 redesign. The redesign changes how screens look. It does not change what the app sends +to the daemon or the cloud server, or what it saves. In the app, everything in the "Demo" column carries a purple +dashed **Demo** label (or "Not wired yet"). + +## Screen by screen + +| Screen | Works today, unchanged | Demo or not wired | +| --- | --- | --- | +| **Sign in / Create account** | Calls the cloud server (`/auth/login`, `/auth/signup`, `/auth/social`, `/health`). Saves the device token. If the server is unreachable it signs you in on this laptop only | GitHub and Google do **not** do a real OAuth login: they send a placeholder name and email. "Forgot password" does nothing | +| **Sidebar and top bar** | Navigation, back and forward, hide sidebar (Ctrl+B), daemon status, notifications from real tasks, theme switch (not remembered after restart) | | +| **Command palette** (Ctrl+K) and Ctrl+N | Navigation, new task, theme switch | | +| **Home** (was Overview) | Waiting and running tasks, recent runs with cost, your projects with approved counts, run a task on a project (fills in the folder), search, filters, grid or list, stars (not saved) | Sample projects when you have none. The model routing box | +| **New task** | Sends the `start` command with folder, task text, agent, model, and a model per step when that section is open | The model names in the lists are fixed | +| **Tasks** | Task list, filters, project filter, **Approve, Reject, Stop, Resume, Delete**, failure reason, status, time, model, cost, live events in Logs and Timeline, Copy logs, **the real diff when the daemon stores one** | Progress bar (guessed from the status). Milestone view. "Message the agent" box. **Sample code when there is no diff**. Sample comments. Commit message and file ticks (not sent). Split view and log level filter (no effect). Artifacts. Sample log and timeline lines when a task has no events | +| **Review** (was Review Queue) | Lists waiting tasks, **Approve & commit, Reject**, open the task | | +| **Projects** | Projects from the daemon, filter, runs and Tasks tab, folder path, new task on a project. "Add project" only opens New task with that folder | Sample projects when you have none. Project health numbers. Branch and remote. Workflow, Memory and Settings tabs | +| **Insights** (was Usage & Analytics) | Task count, approval rate, spend, projects, models used, 14-day chart, recent tasks table | The 7/30/90 day buttons do not filter. The model split shown before any task exists | +| **Settings → Account** | Sign in, sign up, sign out, save display name (on this laptop) | Password change, device identifier, cloud sync | +| **Settings → Appearance** | Dark and light theme | Accent colour, density | +| **Settings → other pages** | The three shortcuts listed as working | General, AI & Model Routing, Notifications, planned shortcuts | +| **Terminal strip** | Connection status and the task and project counts it repeats | Every reply is canned text. It is not a shell | +| **Workflows, Models & Routing, Repository Memory, Scheduler & Queue, Environments, Runtime & Logs, Integrations, Security** | Nothing. Local clicks and edits only | All of it. They now sit under **More screens (Demo)** | + +## How this was checked + +- **Behaviour comparison, before and after.** A script ran the app in a headless browser with a stand-in daemon and a + stand-in cloud server, and recorded everything the app sent or saved. 41 scenarios, 49 recorded messages (daemon + commands, HTTP requests, saved settings, copied text): identical before and after. 57 on-screen checks: unchanged. +- **Real local daemon.** With `local-daemon-bridge.mjs`, the backend daemon watcher (fake runner), a throwaway + database and a throwaway git repo: start a task, approve it; start another, reject it. 6 of 6 steps passed, both + before and after. +- **Screens.** Every screen was captured at 1440×900 and at the 1024×700 minimum window and checked for content spilling + sideways, with no console errors. The captures were also read by eye, which found a few layout faults that were then + fixed. The sample-code warning was checked both ways: shown without a diff, hidden with a real one. +- Not covered: the packaged Tauri window, a real Claude Code run, and a real cloud server. +- The test script is not part of this repository. + +## Changed on purpose + +- Left menu: 14 items became Home, Projects, Tasks, Review, Insights, with the 8 demo screens under "More screens". +- Duplicate controls removed: the second "New Task" button in the top bar, the second search box in the sidebar, and + the second set of Approve, Reject and Stop buttons at the bottom of a task. Each action now has one place (the + Changes tab keeps its Commit button). +- A user menu in the sidebar that nothing could open was removed. +- Task screen: the middle feed and the right panel are one panel. "Maximize" now hides the task list. Sample comments + start closed. The tab "Execution" is called "Summary". +- Cards for real projects no longer show values the app made up for them ("5 phases", "GSD", "main", "Just now"). + A real project with no runs shows 0 tasks, not 8. +- Review no longer says "Tests passing, staged": nothing had checked that. +- New warnings, which change no behaviour: sample code is flagged wherever you can approve; New task says which agents + the daemon cannot run; sign-in says the password is not checked while the server is down. +- Command palette no longer lists shortcuts that did nothing. +- Build: 30 TypeScript errors on `main` are fixed with type-only changes (`src/types/auth.ts`). + +## Problems found, not fixed here + +These change behaviour, so each deserves its own pull request. + +1. **The daemon the app starts never stores a diff** (`daemon/src/watcher.ts` in codehands-backend; only the + `fake.ts` command-line script does). So in the running app the Changes tab shows sample code, next to a real + Approve button. +2. `parseDiffToFiles` splits a standard `git diff` into two entries for each changed file. The first has no code. +3. New task selects "CodeHands Native Orchestrator" by default, which the daemon cannot run. +4. With the cloud server down, sign-in accepts any password. +5. Insights shows every Claude model as "Claude 3.5 Sonnet". +6. The desktop saves the device token in a plain file under `~/.codehands`, not in the system keychain. diff --git a/src/App.css b/src/App.css index 5725462..a1b5936 100644 --- a/src/App.css +++ b/src/App.css @@ -1,7804 +1,465 @@ -/* ========================================================================== - CodeHands AI — Dark Grey Theme & Complete Workspace Stylesheet - Theme: Dark Grey (#121316 / #16171C / #1C1E24 / #242630) - Accents: Electric Cyan (#27B7F5) & Royal Violet (#7857FF) - Typography: Inter (UI) & JetBrains Mono (Code/Diff/Terminal) - ========================================================================== */ +/* CodeHands desktop. Tokens follow design/design-tokens.json. + Rules: one main action per screen, at most two panes beside the sidebar, details on demand. */ :root { - /* Dark Grey Background Palette */ - --bg-main: #121316; - --bg-secondary: #16171c; - --surface: #1c1e24; - --surface-elevated: #242630; - --surface-hover: #2a2d39; - --surface-active: #323544; - - /* Hairline Borders */ - --border: #2c303c; - --border-subtle: #22252e; - --border-focus: #27b7f5; - - /* Typography Colors */ - --text-primary: #f3f4f6; - --text-secondary: #9fa4b4; - --text-muted: #666c7e; - --text-code: #cbd5e1; - - /* Brand Accents - Electric Cyan & Logo Blue (No Purple) */ - --accent-primary: #27b7f5; - --accent-secondary: #00c2ff; - --accent-gradient: linear-gradient(135deg, #27b7f5 0%, #00c2ff 100%); - --accent-glow: rgba(39, 183, 245, 0.25); - - /* Semantic Status Colors */ - --success: #20c997; - --success-bg: rgba(32, 201, 151, 0.12); - --warning: #ffb547; - --warning-bg: rgba(255, 181, 71, 0.12); - --error: #ff647c; - --error-bg: rgba(255, 100, 124, 0.12); - --info: #27b7f5; - --info-bg: rgba(39, 183, 245, 0.12); - - /* Fonts */ - --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; - --font-mono: "JetBrains Mono", Consolas, "Courier New", monospace; - - /* Spacing & Radii */ - --radius-sm: 6px; - --radius-md: 10px; - --radius-lg: 14px; - --radius-pill: 9999px; - --sidebar-width: 240px; - --sidebar-collapsed-width: 64px; - --topbar-height: 52px; + --ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif; + --mono: "JetBrains Mono", Consolas, "Courier New", monospace; + --accent-primary: #7857ff; + --accent-secondary: #27b7f5; + --grad: linear-gradient(135deg, #7857ff 0%, #4f7dfa 55%, #27b7f5 100%); +} + +* { box-sizing: border-box; margin: 0; padding: 0; } +html, body, #root { height: 100%; } +body { overflow: hidden; font-family: var(--ui); -webkit-font-smoothing: antialiased; background: #0b0d16; } + +.theme-dark { + --bg: #0b0d16; --bg2: #0f1220; --surface: #141827; --raised: #1a2031; --hover: #1d2436; + --line: rgba(255, 255, 255, 0.07); --line2: rgba(255, 255, 255, 0.12); + --text: #f4f5fa; --text2: #a4abbe; --muted: #7a829b; + --ok: #20c997; --warn: #ffb547; --bad: #ff647c; --cyan: #27b7f5; --violet-text: #b3a1ff; + --violet-soft: rgba(120, 87, 255, 0.16); --cyan-soft: rgba(39, 183, 245, 0.13); + --ok-soft: rgba(32, 201, 151, 0.13); --warn-soft: rgba(255, 181, 71, 0.13); --bad-soft: rgba(255, 100, 124, 0.13); + --add: rgba(32, 201, 151, 0.11); --del: rgba(255, 100, 124, 0.12); --on-ok: #04251b; + --shadow: 0 24px 70px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35); --scrim: rgba(4, 5, 12, 0.68); } - -/* Light Mode Overrides (if toggled) */ .theme-light { - --bg-main: #f5f6fa; - --bg-secondary: #eceef4; - --surface: #ffffff; - --surface-elevated: #f0f2f8; - --surface-hover: #e5e8f2; - --border: #d2d6e4; - --border-subtle: #e2e5f0; - --text-primary: #121316; - --text-secondary: #4b5266; - --text-muted: #828a9e; -} - -/* Base Reset */ -*, *::before, *::after { - box-sizing: border-box; - margin: 0; - padding: 0; -} - -html, body, #root { - width: 100%; - height: 100%; - background-color: var(--bg-main); - color: var(--text-primary); - font-family: var(--font-ui); - font-size: 13px; - line-height: 1.5; - -webkit-font-smoothing: antialiased; - -moz-osx-font-smoothing: grayscale; - overflow: hidden; -} - -button { - font-family: inherit; - font-size: inherit; - color: inherit; - background: none; - border: none; - cursor: pointer; - outline: none; - display: inline-flex; - align-items: center; - justify-content: center; - transition: all 0.15s ease; -} - -input, textarea, select { - font-family: inherit; - font-size: inherit; - color: var(--text-primary); - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - outline: none; - transition: border-color 0.15s ease, box-shadow 0.15s ease; -} - -input:focus, textarea:focus, select:focus { - border-color: var(--border-focus); - box-shadow: 0 0 0 2px var(--accent-glow); -} - -kbd { - font-family: var(--font-mono); - font-size: 11px; - padding: 2px 6px; - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: 4px; - color: var(--text-muted); -} - -/* Custom Scrollbars */ -::-webkit-scrollbar { - width: 6px; - height: 6px; -} -::-webkit-scrollbar-track { - background: transparent; -} -::-webkit-scrollbar-thumb { - background: var(--border); - border-radius: 3px; -} -::-webkit-scrollbar-thumb:hover { - background: var(--text-muted); -} - -/* ========================================================================== - APP SHELL LAYOUT - ========================================================================== */ -.app-shell { - display: flex; - width: 100vw; - height: 100vh; - background: var(--bg-main); - position: relative; - overflow: hidden; -} - -/* ========================================================================== - LEFT SIDEBAR - ========================================================================== */ -.app-sidebar { - width: var(--sidebar-width); - height: 100%; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - flex-shrink: 0; - transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1); - z-index: 100; - user-select: none; -} - -.app-sidebar.collapsed { - width: var(--sidebar-collapsed-width); -} - -/* Brand Row */ -.sidebar-brand-row { - display: flex; - align-items: center; - gap: 10px; - padding: 14px 16px; - cursor: pointer; - border-bottom: 1px solid var(--border-subtle); -} - -.sidebar-brand-row .brand-text-block { - display: flex; - flex-direction: column; -} - -.sidebar-brand-row .brand-title { - font-size: 14px; - font-weight: 700; - letter-spacing: -0.01em; - color: var(--text-primary); -} - -.sidebar-brand-row .brand-badge { - font-size: 11px; - font-weight: 800; - color: var(--accent-secondary); - margin-left: 2px; -} - -.sidebar-brand-row .brand-sub { - font-size: 9px; - font-weight: 600; - letter-spacing: 0.08em; - color: var(--text-muted); -} - -/* Sidebar Search Box */ -.sidebar-search-box { - padding: 10px 12px 6px; -} - -.sidebar-search-btn { - width: 100%; - display: flex; - align-items: center; - gap: 8px; - padding: 7px 10px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-size: 12px; - cursor: pointer; -} - -.sidebar-search-btn:hover { - border-color: var(--border-focus); - color: var(--text-primary); -} - -.sidebar-search-btn .search-text { - flex: 1; - text-align: left; -} - -.sidebar-search-btn .shortcut-kbd { - font-size: 10px; -} - -/* Sidebar New Task Button */ -.sidebar-action-wrap { - padding: 4px 12px 10px; -} - -.btn-sidebar-new { - width: 100%; - display: flex; - align-items: center; - justify-content: center; - gap: 6px; - padding: 8px 12px; - background: var(--accent-primary); - color: #ffffff; - font-weight: 600; - font-size: 12px; - border-radius: var(--radius-sm); - box-shadow: 0 2px 8px rgba(120, 87, 255, 0.3); -} - -.btn-sidebar-new:hover { - background: #1ea0db; - box-shadow: 0 4px 12px rgba(120, 87, 255, 0.45); -} - -/* Sidebar Nav Scroll */ -.sidebar-nav-scroll { - flex: 1; - overflow-y: auto; - overflow-x: hidden; - padding: 4px 8px; - display: flex; - flex-direction: column; - gap: 16px; -} - -.sidebar-group { - display: flex; - flex-direction: column; - gap: 2px; -} - -.group-label { - font-size: 10px; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--text-muted); - padding: 4px 8px; -} - -.nav-items-list { - display: flex; - flex-direction: column; - gap: 2px; -} - -.nav-button { - width: 100%; - display: flex; - align-items: center; - gap: 10px; - padding: 7px 10px; - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-weight: 500; - text-align: left; - position: relative; -} - -.nav-button:hover { - background: var(--surface); - color: var(--text-primary); -} - -.nav-button.active { - background: var(--surface-elevated); - color: var(--text-primary); - font-weight: 600; -} - -.nav-button.active::before { - content: ""; - position: absolute; - left: 0; - top: 6px; - bottom: 6px; - width: 3px; - border-radius: 0 2px 2px 0; - background: var(--accent-secondary); -} - -.nav-btn-icon { - width: 16px; - height: 16px; - display: flex; - align-items: center; - justify-content: center; - font-size: 14px; -} - -.nav-btn-label { - flex: 1; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.nav-btn-counter { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-muted); -} - -.nav-btn-counter.running { - color: var(--accent-secondary); -} - -.nav-btn-badge { - font-family: var(--font-mono); - font-size: 10px; - padding: 1px 6px; - border-radius: var(--radius-pill); - font-weight: 600; -} - -.nav-btn-badge.alert { - background: var(--warning-bg); - color: var(--warning); - border: 1px solid rgba(255, 181, 71, 0.3); -} - -/* Recents */ -.recents-list { - display: flex; - flex-direction: column; - gap: 1px; -} - -.recent-item-btn { - width: 100%; - display: flex; - align-items: center; - gap: 8px; - padding: 5px 8px; - border-radius: var(--radius-sm); - color: var(--text-muted); - font-size: 12px; -} - -.recent-item-btn:hover { - color: var(--text-primary); - background: var(--surface); -} - -.recent-dot { - font-size: 10px; - color: var(--accent-secondary); -} - -.recent-name { - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -/* Sidebar Footer */ -.sidebar-footer { - padding: 12px; - border-top: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - gap: 10px; - background: var(--bg-secondary); -} - -.sidebar-collapse-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.btn-collapse { - display: flex; - align-items: center; - gap: 6px; - font-size: 11px; - color: var(--text-muted); - cursor: pointer; -} - -.btn-collapse:hover { - color: var(--text-primary); -} - -.app-version { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-muted); -} - -.daemon-status-bar { - display: flex; - align-items: center; - gap: 8px; - padding: 6px 8px; - background: var(--surface); - border: 1px solid var(--border-subtle); - border-radius: var(--radius-sm); -} - -.status-indicator-dot { - width: 7px; - height: 7px; - border-radius: 50%; - flex-shrink: 0; -} - -.daemon-status-bar.online .status-indicator-dot { - background: var(--success); - box-shadow: 0 0 6px var(--success); -} - -.daemon-status-bar.offline .status-indicator-dot { - background: var(--error); -} - -.daemon-status-copy { - display: flex; - flex-direction: column; -} - -.daemon-status-copy .status-title { - font-size: 11px; - font-weight: 600; - color: var(--text-primary); -} - -.daemon-status-copy .status-sub { - font-size: 10px; - color: var(--text-muted); -} - -.sidebar-user-row { - display: flex; - align-items: center; - gap: 8px; - padding-top: 4px; -} - -.user-avatar-pill { - width: 28px; - height: 28px; - border-radius: 50%; - background: var(--surface-elevated); - border: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: center; - font-weight: 700; - color: var(--accent-secondary); - font-size: 12px; - flex-shrink: 0; -} - -.user-details { - flex: 1; - display: flex; - flex-direction: column; - overflow: hidden; -} - -.user-details .user-name { - font-size: 11px; - font-weight: 600; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.user-details .user-tier { - font-size: 9px; - color: var(--text-muted); -} - -.btn-user-action { - color: var(--text-muted); - padding: 4px; -} - -.btn-user-action.signin { - font-size: 11px; - color: var(--accent-secondary); - font-weight: 600; -} - -/* ========================================================================== - TOP NAVIGATION BAR - ========================================================================== */ -.app-main-layout { - flex: 1; - display: flex; - flex-direction: column; - height: 100%; - overflow: hidden; - position: relative; -} - -.topbar { - height: var(--topbar-height); - background: var(--bg-secondary); - border-bottom: 1px solid var(--border-subtle); - display: flex; - align-items: center; - justify-content: space-between; - padding: 0 16px; - flex-shrink: 0; - z-index: 50; - user-select: none; -} - -.topbar-left { - display: flex; - align-items: center; - gap: 12px; -} - -.breadcrumbs { - display: flex; - align-items: center; - gap: 8px; - font-size: 12px; -} - -.crumb-root { - color: var(--text-muted); -} - -.crumb-sep { - color: var(--border); -} - -.crumb-current { - color: var(--text-primary); - font-weight: 600; -} - -.topbar-center { - flex: 1; - max-width: 480px; - margin: 0 24px; -} - -.topbar-search-trigger { - width: 100%; - display: flex; - align-items: center; - gap: 8px; - padding: 6px 12px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-muted); - font-size: 12px; -} - -.topbar-search-trigger:hover { - border-color: var(--border-focus); - color: var(--text-secondary); -} - -.topbar-search-trigger .search-placeholder { - flex: 1; - text-align: left; -} - -.topbar-right { - display: flex; - align-items: center; - gap: 10px; -} - -.btn-topbar-new { - display: flex; - align-items: center; - gap: 6px; - padding: 6px 12px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-size: 12px; - font-weight: 600; -} - -.btn-topbar-new:hover { - background: #1ea0db; -} - -.connection-pill { - display: flex; - align-items: center; - gap: 6px; - padding: 4px 10px; - border-radius: var(--radius-pill); - font-size: 11px; - background: var(--surface); - border: 1px solid var(--border-subtle); - color: var(--text-secondary); -} - -.connection-pill .status-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--error); -} - -.connection-pill.connected .status-dot { - background: var(--success); - box-shadow: 0 0 6px var(--success); -} - -.topbar-icon-btn { - width: 32px; - height: 32px; - border-radius: var(--radius-sm); - border: 1px solid var(--border-subtle); - background: var(--surface); - color: var(--text-secondary); - position: relative; -} - -.topbar-icon-btn:hover { - border-color: var(--border); - color: var(--text-primary); -} - -/* Sidebar Toggle Button in Topbar */ -.topbar-toggle-sidebar-btn { - width: 32px; - height: 32px; - display: flex; - align-items: center; - justify-content: center; - border-radius: var(--radius-sm); - border: 1px solid var(--border-subtle); - background: var(--surface); - color: var(--text-secondary); - cursor: pointer; - transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; - flex-shrink: 0; -} -.topbar-toggle-sidebar-btn:hover { - background: var(--surface-elevated); - border-color: var(--border); - color: var(--text-primary); -} -.topbar-toggle-sidebar-btn.collapsed { - color: var(--accent-primary); - border-color: rgba(39, 183, 245, 0.4); - background: rgba(39, 183, 245, 0.08); -} - -/* Back/Forward nav arrows */ -.topbar-history-arrows { - display: flex; - align-items: center; - gap: 2px; -} -.topbar-arrow-btn { - width: 28px; - height: 28px; - display: flex; - align-items: center; - justify-content: center; - border-radius: var(--radius-sm); - border: 1px solid transparent; - background: transparent; - color: var(--text-secondary); - font-size: 15px; - cursor: pointer; - transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease; -} -.topbar-arrow-btn:hover:not(:disabled) { - background: var(--surface); - border-color: var(--border-subtle); - color: var(--text-primary); -} -.topbar-arrow-btn:disabled { - opacity: 0.3; - cursor: not-allowed; -} - -.notification-badge { - position: absolute; - top: 4px; - right: 4px; - min-width: 14px; - height: 14px; - border-radius: 7px; - background: var(--error); - color: #fff; - font-size: 9px; - font-weight: 700; - display: flex; - align-items: center; - justify-content: center; - padding: 0 3px; -} - -/* Topbar Notification Popover */ -.topbar-notif-wrapper { - position: relative; -} - -.topbar-notif-popover { - position: absolute; - top: calc(100% + 8px); - right: 0; - width: 360px; - max-width: 90vw; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45); - z-index: 1000; - display: flex; - flex-direction: column; - overflow: hidden; - animation: notifDropIn 0.15s ease-out; -} - -@keyframes notifDropIn { - from { opacity: 0; transform: translateY(-6px); } - to { opacity: 1; transform: translateY(0); } -} - -.notif-popover-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 12px 16px; - border-bottom: 1px solid var(--border-subtle); - background: var(--surface-elevated); -} - -.notif-popover-title { - display: flex; - align-items: center; - gap: 8px; - font-size: 13px; - color: var(--text-primary); -} - -.notif-count-badge { - font-size: 10px; - padding: 1px 6px; - border-radius: 10px; - background: rgba(39, 183, 245, 0.15); - color: var(--accent-primary); - font-weight: 600; -} - -.notif-link-btn { - background: transparent; - border: none; - font-size: 11px; - color: var(--accent-primary); - font-weight: 600; - cursor: pointer; - padding: 2px 4px; -} - -.notif-link-btn:hover { - text-decoration: underline; -} - -.notif-items-list { - display: flex; - flex-direction: column; - max-height: 380px; - overflow-y: auto; -} - -.notif-item { - display: flex; - gap: 12px; - padding: 12px 16px; - border-bottom: 1px solid var(--border-subtle); - cursor: pointer; - transition: background 0.12s ease; -} - -.notif-item:last-child { - border-bottom: none; -} - -.notif-item:hover { - background: var(--surface-elevated); -} - -.notif-item-icon { - width: 28px; - height: 28px; - border-radius: 6px; - display: flex; - align-items: center; - justify-content: center; - flex-shrink: 0; -} - -.notif-item-icon.review { - background: rgba(255, 181, 71, 0.15); -} - -.notif-item-icon.fail { - background: rgba(255, 100, 124, 0.15); -} - -.notif-item-icon.fail .dot-red { - width: 8px; - height: 8px; - border-radius: 50%; - background: #FF647C; -} - -.notif-item-icon.success { - background: rgba(32, 201, 151, 0.15); -} - -.notif-item-text { - flex: 1; - display: flex; - flex-direction: column; - gap: 3px; - min-width: 0; -} - -.notif-item-top { - display: flex; - align-items: center; - justify-content: space-between; - gap: 8px; -} - -.notif-tag { - font-size: 10px; - font-weight: 700; - text-transform: uppercase; - letter-spacing: 0.3px; -} - -.notif-tag.review { color: #FFB547; } -.notif-tag.fail { color: #FF647C; } -.notif-tag.success { color: #20C997; } - -.notif-repo { - font-size: 10px; - color: var(--text-muted); - font-family: var(--font-mono); -} - -.notif-prompt { - font-size: 12px; - font-weight: 500; - color: var(--text-primary); - margin: 0; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.notif-action-hint { - font-size: 10px; - color: var(--accent-primary); -} - -.notif-empty-state { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - padding: 32px 20px; - gap: 8px; - color: var(--text-secondary); - font-size: 13px; - text-align: center; -} - -.notif-empty-state small { - color: var(--text-muted); - font-size: 11px; -} - -/* Viewport */ -.app-content-viewport { - flex: 1; - overflow-y: auto; - overflow-x: hidden; - background: var(--bg-main); - position: relative; -} - -/* ========================================================================== - DASHBOARD VIEW (Matching Screenshot 1) - ========================================================================== */ -.dashboard-view-container { - padding: 24px 32px; - display: flex; - flex-direction: column; - gap: 20px; - max-width: 1440px; - margin: 0 auto; -} - -.dashboard-header-bar { - display: flex; - align-items: flex-start; - justify-content: space-between; -} - -.dashboard-title-row { - display: flex; - align-items: center; - gap: 8px; -} - -.dashboard-title-icon { - font-size: 18px; - color: var(--accent-secondary); -} - -.dashboard-header-bar h1 { - font-size: 20px; - font-weight: 700; - letter-spacing: -0.01em; -} - -.dashboard-sub { - color: var(--text-secondary); - font-size: 12px; - margin-top: 2px; -} - -.add-project-btn { - padding: 8px 16px; - background: var(--accent-primary); - color: #fff; - font-weight: 600; - border-radius: var(--radius-sm); - font-size: 12px; - display: flex; - align-items: center; - gap: 6px; -} - -.add-project-btn:hover { - background: #1ea0db; -} - -/* Summary Pill Bar */ -.summary-pill-bar { - display: inline-flex; - align-items: center; - gap: 14px; - padding: 8px 16px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - width: fit-content; -} - -.summary-pill-item { - display: flex; - align-items: center; - gap: 6px; - font-size: 12px; -} - -.summary-pill-item .pill-icon { - color: var(--text-muted); + --bg: #ffffff; --bg2: #f6f7fa; --surface: #ffffff; --raised: #f2f3f8; --hover: #ebedf4; + --line: rgba(15, 20, 45, 0.09); --line2: rgba(15, 20, 45, 0.16); + --text: #121528; --text2: #4c536b; --muted: #6f7690; + --ok: #0b8a63; --warn: #9a6100; --bad: #c8304b; --cyan: #0a7fb5; --violet-text: #5b3be0; + --violet-soft: rgba(120, 87, 255, 0.11); --cyan-soft: rgba(39, 183, 245, 0.13); + --ok-soft: rgba(14, 159, 115, 0.12); --warn-soft: rgba(224, 148, 0, 0.13); --bad-soft: rgba(217, 58, 85, 0.1); + --add: rgba(14, 159, 115, 0.1); --del: rgba(217, 58, 85, 0.09); --on-ok: #ffffff; + --shadow: 0 24px 60px rgba(20, 24, 60, 0.18), 0 2px 8px rgba(20, 24, 60, 0.08); --scrim: rgba(30, 34, 60, 0.3); +} + +button, input, select, textarea { font: inherit; color: inherit; } +button { background: none; border: 0; cursor: pointer; } +button:disabled { cursor: default; opacity: 0.45; } +:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; } +::-webkit-scrollbar { width: 10px; height: 10px; } +::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; } +::-webkit-scrollbar-track { background: transparent; } +@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } } + +/* ---------- shell ---------- */ +.app-shell { height: 100vh; display: flex; background: var(--bg); color: var(--text); font-size: 13.5px; line-height: 1.5; overflow: hidden; } +.app-main-layout { flex: 1; min-width: 0; display: flex; flex-direction: column; } +.app-content-viewport { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; } + +.app-sidebar { width: 236px; flex: none; background: var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 12px 10px 10px; transition: width 0.15s ease; } +.app-sidebar.collapsed { width: 62px; } +.sidebar-brand-row { display: flex; align-items: center; gap: 10px; padding: 0 6px 12px; cursor: pointer; font-weight: 650; font-size: 14.5px; } +.btn-sidebar-new { display: flex; align-items: center; gap: 9px; width: 100%; height: 36px; border-radius: 9px; background: var(--grad); color: #fff; font-weight: 600; padding: 0 11px; margin-bottom: 10px; box-shadow: 0 6px 18px rgba(120, 87, 255, 0.28); } +.btn-sidebar-new kbd { margin-left: auto; background: rgba(255, 255, 255, 0.18); border: 0; color: #fff; } +.collapsed .btn-sidebar-new { justify-content: center; padding: 0; } +.sidebar-nav-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; } +.nav-button { display: flex; align-items: center; gap: 10px; width: 100%; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text2); font-weight: 500; text-align: left; white-space: nowrap; } +.nav-button:hover { background: var(--hover); } +.nav-button.active { background: var(--hover); color: var(--text); } +.nav-btn-icon { display: grid; place-items: center; width: 16px; flex: none; } +.nav-btn-label { overflow: hidden; text-overflow: ellipsis; } +.nav-btn-badge { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 99px; padding: 0 7px; line-height: 18px; } +.collapsed .nav-button { justify-content: center; padding: 0; } +.group-label { display: block; font-size: 11px; font-weight: 650; color: var(--muted); margin: 18px 10px 6px; } +.nav-more-toggle { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 16px; padding: 6px 10px; color: var(--muted); font-size: 12px; font-weight: 600; border-radius: 8px; } +.nav-more-toggle:hover { background: var(--hover); } +.nav-more-toggle .demo-tag { margin-left: auto; } +.collapsed .nav-more-toggle { justify-content: center; padding: 6px 0; } +.live-task { display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 10px; border-radius: 8px; color: var(--text2); text-align: left; } +.live-task:hover { background: var(--hover); } +.live-task span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.sidebar-footer { border-top: 1px solid var(--line); padding-top: 8px; } +.daemon-status-bar { display: flex; align-items: center; gap: 9px; padding: 4px 10px 8px; font-size: 11.5px; color: var(--muted); } +.daemon-status-bar .status-indicator-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; } +.daemon-status-bar.online .status-indicator-dot { background: var(--ok); } +.collapsed .daemon-status-bar { justify-content: center; padding: 4px 0 8px; } +.sidebar-user-row { display: flex; align-items: center; gap: 10px; padding: 0 6px; } +.collapsed .sidebar-user-row { flex-direction: column; padding: 0; } +.user-avatar-pill { width: 28px; height: 28px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-text); display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; cursor: pointer; } +.user-details { flex: 1; min-width: 0; cursor: pointer; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.btn-sidebar-settings-toggle { color: var(--muted); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; } +.btn-sidebar-settings-toggle:hover, .btn-sidebar-settings-toggle.active { background: var(--hover); color: var(--text); } + +.topbar { height: 48px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); } +.topbar-left, .topbar-right { display: flex; align-items: center; gap: 8px; } +.topbar-left { flex: 1; min-width: 0; } +.topbar-icon-btn, .topbar-toggle-sidebar-btn, .topbar-arrow-btn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text2); position: relative; } +.topbar-icon-btn:hover, .topbar-toggle-sidebar-btn:hover, .topbar-arrow-btn:hover:not(:disabled), .topbar-icon-btn.active { background: var(--hover); color: var(--text); } +.topbar-history-arrows { display: flex; } +.breadcrumbs { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; } +.crumb-sep { margin: 0 7px; opacity: 0.5; } +.crumb-current { color: var(--text2); font-weight: 550; } +.topbar-search-trigger { display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 8px 0 10px; border: 1px solid var(--line2); border-radius: 8px; color: var(--muted); font-size: 12.5px; } +.topbar-search-trigger .search-placeholder { margin-right: 18px; } +.connection-pill { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); padding: 0 6px; } +.connection-pill .status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); } +.connection-pill.connected .status-dot { background: var(--ok); } +.connection-pill.disconnected { color: var(--bad); } +.notification-badge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; border-radius: 99px; background: var(--warn); color: #231600; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; } +.topbar-notif-wrapper { position: relative; } +.topbar-notif-popover { position: absolute; top: 40px; right: -40px; width: 390px; max-height: 70vh; overflow: auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--shadow); z-index: 40; } +.notif-popover-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line); } +.notif-popover-title { display: flex; align-items: center; gap: 8px; } +.notif-link-btn { color: var(--violet-text); font-weight: 600; font-size: 12px; } +.notif-item { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; } +.notif-item:hover { background: var(--hover); } +.notif-item:last-child { border-bottom: 0; } +.notif-item-text { min-width: 0; flex: 1; } +.notif-item-top { display: flex; justify-content: space-between; gap: 8px; } +.notif-prompt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text2); } +.notif-empty-state { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px; color: var(--muted); } + +.notice-banner-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 16px 0; padding: 9px 14px; border-radius: 10px; background: var(--cyan-soft); border: 1px solid var(--line2); } + +/* ---------- shared pieces ---------- */ +kbd { font-family: var(--mono); font-size: 10.5px; line-height: 17px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--line2); color: var(--text2); background: var(--raised); white-space: nowrap; } +.page { padding: 28px 36px 40px; } +.col { max-width: 900px; margin: 0 auto; width: 100%; } +.col.wide { max-width: 1080px; } +.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; } +h1 { font-size: 23px; font-weight: 660; letter-spacing: -0.018em; line-height: 1.28; } +h2 { font-size: 16.5px; font-weight: 640; letter-spacing: -0.01em; } +h3, h4 { font-size: 13.5px; font-weight: 640; } +.sub { color: var(--text2); } +.mut { color: var(--muted); } +.sm { font-size: 12px; } +.mono, code { font-family: var(--mono); font-size: 12px; } +.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; } +.grow { flex: 1; min-width: 0; } +.row { display: flex; align-items: center; gap: 10px; } +.row.wrap { flex-wrap: wrap; } +.row.end { justify-content: flex-end; } +.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 26px 0 10px; font-size: 12px; font-weight: 650; color: var(--muted); } +.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; } +.card.pad { padding: 16px 18px; } +.card.attention { border-color: rgba(255, 181, 71, 0.4); } +.list > * { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; } +.list > *:last-child { border-bottom: 0; } +.list > .click { cursor: pointer; } +.list > .click:hover { background: var(--hover); } +.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } +.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } +.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } +.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; } + +.btn, .btn-primary, .btn-secondary, .btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--raised); font-weight: 580; font-size: 13px; white-space: nowrap; } +.btn:hover:not(:disabled), .btn-secondary:hover:not(:disabled) { background: var(--hover); } +.btn-primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; } +.btn-primary:hover:not(:disabled), .btn.primary:hover:not(:disabled) { filter: brightness(1.08); } +.btn.go { background: var(--ok); border-color: transparent; color: var(--on-ok); font-weight: 680; } +.btn-danger, .btn.danger { background: transparent; border-color: rgba(255, 100, 124, 0.45); color: var(--bad); } +.btn.ghost { background: transparent; border-color: transparent; color: var(--text2); } +.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; } +.btn.lg { height: 42px; padding: 0 22px; font-size: 14px; } +.btn-link, .btn-link-action { color: var(--violet-text); font-weight: 600; font-size: 12px; } + +.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 650; white-space: nowrap; background: var(--raised); color: var(--text2); text-transform: capitalize; } +.pill.awaiting_approval { background: var(--warn-soft); color: var(--warn); } +.pill.running, .pill.queued { background: var(--cyan-soft); color: var(--cyan); } +.pill.approved, .pill.ok { background: var(--ok-soft); color: var(--ok); } +.pill.failed, .pill.rejected { background: var(--bad-soft); color: var(--bad); } + +.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--muted); } +.dot.awaiting_approval { background: var(--warn); } +.dot.running { background: var(--cyan); box-shadow: 0 0 0 3px var(--cyan-soft); } +.dot.queued { background: var(--cyan); } +.dot.approved { background: var(--ok); } +.dot.failed, .dot.rejected { background: var(--bad); } +.dot.stopped { background: transparent; border: 1.5px solid var(--muted); } + +.field, input[type="text"], input[type="email"], input[type="password"], input[type="number"], select, textarea { width: 100%; min-height: 36px; padding: 7px 12px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--line2); } +select option { background: var(--surface); color: var(--text); } +textarea { resize: vertical; line-height: 1.55; } +input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--violet-soft); } +input[type="checkbox"], input[type="radio"] { accent-color: var(--accent-primary); width: 15px; height: 15px; flex: none; } +.form-group { margin-bottom: 14px; } +.form-group > label, .field-label { display: block; font-size: 12px; font-weight: 580; color: var(--text2); margin-bottom: 6px; } +.form-group small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; } +.form-group.checkbox-row { display: flex; align-items: center; gap: 10px; } +.form-group.checkbox-row label { margin: 0; font-size: 13.5px; font-weight: 450; color: var(--text); } +.password-input-row { display: flex; gap: 8px; } + +.seg { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; } +.seg > button { height: 26px; padding: 0 12px; border-radius: 7px; color: var(--text2); font-size: 12.5px; font-weight: 560; } +.seg > button.active { background: var(--raised); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.22); } +.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; flex: none; } +.tabs > button { height: 36px; display: flex; align-items: center; gap: 7px; color: var(--text2); font-weight: 560; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; } +.tabs > button.active { color: var(--text); border-color: var(--accent-primary); } +.tab-badge { font-size: 11px; color: var(--muted); background: var(--raised); border-radius: 99px; padding: 0 6px; } + +/* Anything made up wears this. */ +.demo-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--violet-text); border: 1px dashed rgba(120, 87, 255, 0.6); white-space: nowrap; } +.demo-note { display: flex; align-items: flex-start; gap: 10px; padding: 9px 14px; margin-bottom: 14px; border-radius: 10px; border: 1px dashed rgba(120, 87, 255, 0.55); background: var(--violet-soft); font-size: 12.5px; color: var(--text2); } +.demo-note.danger { border-color: rgba(255, 181, 71, 0.65); background: var(--warn-soft); color: var(--text); } +.demo-note .demo-tag { margin-top: 1px; } +.stat b { display: block; font-size: 23px; font-weight: 660; letter-spacing: -0.02em; } +.empty { text-align: center; padding: 44px 24px; color: var(--muted); } +.empty h3 { color: var(--text); margin-bottom: 4px; font-size: 15px; } +.empty .btn, .empty .btn-primary, .empty .btn-secondary { margin-top: 14px; } + +table.t { width: 100%; border-collapse: collapse; } +table.t th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line); } +table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--text2); } +table.t tr:last-child td { border-bottom: 0; } +table.t td.main { color: var(--text); max-width: 300px; } +.bar { height: 6px; border-radius: 99px; background: var(--raised); overflow: hidden; } +.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--grad); } + +/* ---------- home ---------- */ +.need-card { cursor: pointer; } +.need-card + .need-card { margin-top: 10px; } +.project-card { cursor: pointer; } +.project-card:hover { border-color: var(--line2); } +.icon-btn { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); } +.icon-btn:hover { background: var(--hover); color: var(--text); } +.mini-session-row, .run-row { cursor: pointer; } + +/* ---------- panes ---------- */ +.split-view { flex: 1; min-height: 0; display: flex; } +.pane-list { width: 260px; flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } +.pane-list-head { padding: 12px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--line); } +.pane-list-body { flex: 1; overflow-y: auto; padding: 8px; } +.pane-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow: hidden; } +.pane-scroll { flex: 1; min-height: 0; overflow: auto; padding: 22px 28px 32px; } +.pick-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; cursor: pointer; text-align: left; } +.pick-row:hover { background: var(--hover); } +.pick-row.selected, .pick-row.active { background: var(--hover); box-shadow: inset 2px 0 0 var(--accent-primary); } + +/* ---------- task workspace ---------- */ +.modern-workspace-container { flex: 1; min-height: 0; display: flex; } +.workspace-left-panel { flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; } +.task-row-content { flex: 1; min-width: 0; } +.task-row-title { display: block; font-weight: 560; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.task-row-sub { display: flex; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; } +.task-row-sub > span:last-child { overflow: hidden; text-overflow: ellipsis; } +.task-row-cost { font-family: var(--mono); font-size: 11.5px; color: var(--muted); } +.btn-task-delete-icon { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; opacity: 0.35; } +.task-clean-row:hover .btn-task-delete-icon, .btn-task-delete-icon:focus-visible { opacity: 1; } +.btn-task-delete-icon:hover { background: var(--bad-soft); } +.collapsed-tasks-strip { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; } +.mini-task-dot-btn { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; } +.mini-task-dot-btn.selected { background: var(--hover); } +.sidebar-resizer-handle { width: 5px; flex: none; margin-left: -3px; cursor: col-resize; z-index: 3; } +.sidebar-resizer-handle:hover, .sidebar-resizer-handle.dragging { background: var(--violet-soft); } +.task-head { flex: none; padding: 14px 24px 0; } +.task-head-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; } +.task-head-title { min-width: 220px; flex: 1; } +.task-head .tabs { margin-top: 10px; } +.tabs-spacer { flex: 1; } +.fact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } +.fact-grid .card { padding: 12px 14px; } +.fact-grid b { display: block; font-size: 15.5px; margin-top: 2px; overflow-wrap: anywhere; } +.progress-track { display: flex; gap: 6px; } +.progress-step { flex: 1; min-width: 0; } +.progress-step i { display: block; height: 4px; border-radius: 99px; background: var(--raised); } +.progress-step.done i { background: var(--ok); } +.progress-step.active i { background: linear-gradient(90deg, #7857ff, #27b7f5 55%, var(--raised) 55%); } +.progress-step.failed i { background: var(--bad); } +.progress-step span { display: block; margin-top: 7px; font-size: 12.5px; font-weight: 580; color: var(--text2); } +.progress-step.failed span { color: var(--bad); } +.error-banner-box { padding: 12px 16px; border-radius: 11px; border: 1px solid rgba(255, 100, 124, 0.45); background: var(--bad-soft); } +details.demo-details > summary { cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; list-style: none; } +details.demo-details > summary::-webkit-details-marker { display: none; } +details.demo-details > .body { padding: 0 16px 14px; } +.guidance-row { display: flex; gap: 10px; align-items: center; } + +.git-changes-layout { position: relative; flex: 1; min-height: 0; display: flex; border-top: 1px solid var(--line); margin-top: -1px; } +.git-files-column { flex: none; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; overflow: auto; } +.git-files-column.collapsed { align-items: center; padding-top: 10px; } +.section-head-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px 4px; font-size: 11.5px; color: var(--muted); } +.git-file-row { display: flex; align-items: center; gap: 9px; padding: 7px 12px; cursor: pointer; } +.git-file-row:hover, .git-file-row.active { background: var(--hover); } +.file-status-letter { font-family: var(--mono); font-size: 11px; font-weight: 700; color: var(--warn); } +.file-status-letter.A { color: var(--ok); } +.file-status-letter.D { color: var(--bad); } +.file-info-col { min-width: 0; display: flex; flex-direction: column; } +.file-info-col .filename { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.file-info-col .filepath { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.git-commit-box { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; } +.git-diff-column { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; } +.diff-header-bar .seg, .diff-header-bar .row, .diff-header-bar .btn { flex: none; flex-wrap: nowrap; } +.diff-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line); } +.diff-filename { font-family: var(--mono); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.diff-code-scroll { flex: 1; min-height: 0; overflow: auto; } +.diff-pre-block { font-family: var(--mono); font-size: 12px; line-height: 22px; padding: 6px 0; min-width: max-content; } +.diff-line-row { display: flex; white-space: pre; } +.diff-line-row .line-num { width: 46px; flex: none; text-align: right; padding-right: 12px; color: var(--muted); opacity: 0.7; user-select: none; } +.diff-line-row .line-code { padding-right: 24px; } +.diff-line-row.added { background: var(--add); } +.diff-line-row.removed { background: var(--del); } +.diff-line-row.chunk-header { color: var(--muted); background: var(--bg2); } +.git-comments-column { width: 280px; flex: none; border-left: 1px solid var(--line); overflow: auto; padding: 12px; } +.comment-card { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; background: var(--surface); } +.comment-snippet { margin: 6px 0; padding: 6px 8px; background: var(--bg2); border-radius: 7px; white-space: pre-wrap; overflow-wrap: anywhere; } + +.log-stream { font-family: var(--mono); font-size: 12px; padding: 10px 0; } +.log-entry-row { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 4px 16px; } +.log-ts { color: var(--muted); } +.log-lvl { width: 44px; color: var(--cyan); } +.log-lvl.warn { color: var(--warn); } +.log-lvl.error { color: var(--bad); } +.log-type { color: var(--violet-text); } +.log-summary { flex: 1; min-width: 200px; color: var(--text2); overflow-wrap: anywhere; } +.log-files-list { display: flex; gap: 6px; flex-wrap: wrap; flex-basis: 100%; padding-left: 74px; } +.log-file-pill { padding: 0 7px; border-radius: 6px; background: var(--raised); color: var(--text2); } +.timeline-event-item { display: flex; gap: 14px; position: relative; padding-bottom: 16px; } +.timeline-event-item::before { content: ""; position: absolute; left: 4px; top: 16px; bottom: 0; width: 1px; background: var(--line2); } +.timeline-event-item:last-child::before { display: none; } +.event-bullet { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--cyan); } +.event-bullet.done { background: var(--ok); } +.event-bullet.failed { background: var(--bad); } + +/* ---------- review queue ---------- */ +.review-queue-container { flex: 1; min-height: 0; display: flex; flex-direction: column; } +.action-feedback-banner { display: flex; align-items: center; gap: 10px; margin: 12px 24px 0; padding: 10px 14px; border-radius: 10px; background: var(--ok-soft); } +.review-card-item { display: block; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; cursor: pointer; } +.review-card-item:hover { background: var(--hover); } +.review-card-item.active { background: var(--hover); box-shadow: inset 2px 0 0 var(--warn); } + +/* ---------- new task ---------- */ +.new-task-page-wrapper { padding: 34px 36px 40px; } +.new-task-container { max-width: 780px; margin: 0 auto; } +.new-task-header { text-align: center; margin-bottom: 22px; } +.new-task-header h1 { font-size: 27px; } +.btn-back-link { color: var(--muted); font-size: 12.5px; margin-bottom: 10px; } +.new-task-alert { display: flex; gap: 10px; padding: 10px 14px; border-radius: 10px; margin-bottom: 12px; background: var(--bad-soft); } +.composer-card { border-radius: 16px; background: var(--surface); border: 1px solid var(--line2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2); padding: 6px 6px 12px; } +.composer-card:focus-within { border-color: rgba(120, 87, 255, 0.7); box-shadow: 0 0 0 4px var(--violet-soft); } +.composer-card .prompt-textarea { border: 0; background: transparent; box-shadow: none; font-size: 15px; padding: 14px 14px 8px; resize: none; } +.repo-path-row { display: flex; align-items: center; gap: 10px; padding: 0 8px; } +.repo-input-wrap { flex: 1; display: flex; align-items: center; gap: 8px; padding-left: 10px; border: 1px solid var(--line2); border-radius: 9px; } +.repo-input-wrap input[type="text"] { border: 0; background: transparent; box-shadow: none; font-family: var(--mono); font-size: 12px; min-height: 32px; padding-left: 0; } +.config-grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; } +.config-card label { display: block; font-size: 12px; font-weight: 580; color: var(--text2); margin-bottom: 6px; } +.config-note { display: block; font-size: 12px; color: var(--muted); margin-top: 5px; } +.config-note.warn { color: var(--warn); } +.accordion-toggle-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 11px 14px; margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 580; color: var(--text2); } +.phase-routing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; } +.phase-item-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 5px; } +.composer-actions-bar { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; } + +/* ---------- projects ---------- */ +.projects-view-layout { flex: 1; min-height: 0; display: flex; } +.repo-info-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 16px; border-bottom: 1px solid var(--line); } +.repo-info-row:last-child { border-bottom: 0; } +.repo-info-row > span:first-child { color: var(--text2); } + +/* ---------- settings ---------- */ +.settings-view-layout { flex: 1; min-height: 0; display: flex; } +.settings-subnav { width: 214px; flex: none; border-right: 1px solid var(--line); padding: 20px 12px; overflow: auto; } +.settings-subnav h3 { font-size: 16px; padding: 0 10px 12px; } +.settings-nav-list { display: flex; flex-direction: column; gap: 2px; } +.settings-nav-btn { display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text2); font-weight: 500; text-align: left; } +.settings-nav-btn:hover, .settings-nav-btn.active { background: var(--hover); color: var(--text); } +.settings-content-pane { flex: 1; min-width: 0; overflow: auto; padding: 26px 36px 40px; } +.settings-section-card { max-width: 680px; margin: 0 auto; } +.settings-section-card > .section-sub { color: var(--text2); margin: 4px 0 18px; } +.settings-section-card > h2 { font-size: 21px; display: flex; align-items: center; gap: 10px; } +.profile-identity-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 20px; } +.user-avatar-lg { width: 44px; height: 44px; border-radius: 50%; background: var(--violet-soft); color: var(--violet-text); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex: none; } +.identity-info { display: flex; flex-direction: column; gap: 2px; } +.identity-info > span { color: var(--muted); } +.settings-action-row { display: flex; gap: 10px; margin-top: 6px; } +.auth-form-panel { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px 18px; } +.auth-mode-tabs { display: flex; gap: 4px; margin-bottom: 14px; } +.auth-mode-tab { height: 30px; padding: 0 12px; border-radius: 8px; color: var(--text2); font-weight: 580; } +.auth-mode-tab.active { background: var(--raised); color: var(--text); } +.auth-form-notice { color: var(--bad); margin-bottom: 10px; } +.auth-form-hint { color: var(--muted); font-size: 12.5px; margin-top: 12px; text-align: center; } +.theme-cards-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } +.theme-card-option { border: 1px solid var(--line2); border-radius: 12px; padding: 12px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; } +.theme-card-option.active { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--violet-soft); } +.theme-card-preview { display: none; } +.theme-card-option span { display: block; font-size: 12px; color: var(--muted); } +.accent-color-picker-row { display: flex; gap: 10px; } +.accent-color-circle { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; } +.accent-color-circle.active { border-color: var(--text); } +.shortcut-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); } + +/* ---------- sign in ---------- */ +.auth-modal-backdrop { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 480px at 50% -60px, rgba(120, 87, 255, 0.22), rgba(39, 183, 245, 0.06) 55%, transparent), var(--bg); overflow: auto; } +.auth-dialog-card { width: 380px; max-width: 100%; margin: auto; } +.auth-dialog-header { text-align: center; margin-bottom: 20px; position: relative; } +.auth-brand-head { display: flex; flex-direction: column; align-items: center; gap: 14px; } +.auth-head-text h2 { font-size: 23px; } +.auth-head-text p { color: var(--text2); margin-top: 4px; } +.auth-close-btn { position: absolute; top: -6px; right: -6px; font-size: 20px; color: var(--muted); } +.auth-notice-alert { padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 12.5px; background: var(--cyan-soft); border: 1px solid var(--line2); } +.auth-error-banner { padding: 9px 12px; border-radius: 10px; margin-bottom: 14px; font-size: 12.5px; background: var(--bad-soft); } +.auth-field-group { margin-bottom: 14px; } +.auth-field-group label { font-size: 12px; font-weight: 580; color: var(--text2); display: block; margin-bottom: 6px; } +.label-with-link { display: flex; justify-content: space-between; align-items: baseline; } +.auth-link-subtle, .auth-switch-link { color: var(--violet-text); font-size: 12px; font-weight: 600; } +.auth-submit-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 40px; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 640; } +.auth-divider-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 16px 0; } +.auth-divider-line::before, .auth-divider-line::after { content: ""; flex: 1; height: 1px; background: var(--line); } +.auth-social-buttons-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } +.auth-social-btn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 38px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); font-weight: 580; } +.auth-dialog-footer { text-align: center; margin-top: 18px; color: var(--muted); } + +/* ---------- palette, modal, terminal, splash ---------- */ +.palette-backdrop, .modal-backdrop { position: fixed; inset: 0; z-index: 50; background: var(--scrim); backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: flex-start; padding: 90px 20px 20px; } +.modal-backdrop { align-items: center; padding-top: 20px; } +.palette-dialog, .modal-content { width: 620px; max-width: 100%; background: var(--surface); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; } +.modal-content { width: 500px; } +.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 4px; } +.btn-close { font-size: 20px; color: var(--muted); } +.modal-body { padding: 8px 20px 18px; } +.modal-body label { display: block; font-size: 12px; font-weight: 580; color: var(--text2); margin: 10px 0 6px; } +.modal-hint { color: var(--muted); font-size: 12px; margin-top: 10px; } +.modal-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--bg2); } +.palette-input-wrap { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); } +.palette-input-wrap input.palette-input { border: 0; background: transparent; box-shadow: none; font-size: 15px; padding: 0; } +.palette-results { max-height: 380px; overflow: auto; padding: 8px; } +.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 38px; padding: 0 12px; border-radius: 9px; color: var(--text2); text-align: left; } +.palette-item.active { background: var(--hover); color: var(--text); } +.palette-item-icon { width: 18px; text-align: center; color: var(--violet-text); font-weight: 700; } +.palette-item-title { flex: 1; } +.palette-item-cat { color: var(--muted); font-size: 12px; } +.palette-empty { padding: 22px; text-align: center; color: var(--muted); } +.palette-footer { display: flex; gap: 18px; padding: 9px 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; } + +.terminal-dock-container { flex: none; border-top: 1px solid var(--line); background: var(--bg2); } +.terminal-dock-bar { height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; cursor: pointer; color: var(--muted); font-size: 12px; } +.dock-left, .dock-right { display: flex; align-items: center; gap: 9px; } +.dock-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); } +.dock-status-dot.online { background: var(--ok); } +.dock-arrow { display: grid; transform: rotate(180deg); } +.dock-arrow.open { transform: none; } +.terminal-dock-content { height: 220px; display: flex; flex-direction: column; border-top: 1px solid var(--line); } +.terminal-scroll-view { flex: 1; overflow: auto; padding: 8px 16px; color: var(--text2); line-height: 1.7; } +.term-line code { white-space: pre-wrap; } +.terminal-input-bar { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; } +.terminal-input-bar input[type="text"] { border: 0; background: transparent; box-shadow: none; min-height: 28px; padding: 0; font-family: var(--mono); font-size: 12px; } +.term-prompt { color: var(--violet-text); } + +.splash-screen-overlay { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: radial-gradient(900px 480px at 50% -60px, rgba(120, 87, 255, 0.24), rgba(39, 183, 245, 0.07) 55%, transparent), var(--bg); transition: opacity 0.35s ease; } +.splash-screen-overlay.fade-out { opacity: 0; pointer-events: none; } +.splash-content-box { text-align: center; } +.splash-logo-image { width: 76px; height: 76px; border-radius: 20px; box-shadow: 0 16px 44px rgba(120, 87, 255, 0.35); } +.splash-brand-title { margin-top: 18px; font-size: 26px; } +.splash-accent { color: var(--cyan); } +.splash-tagline { color: var(--text2); margin-top: 4px; } +.splash-loader-bar { width: 220px; height: 3px; margin: 26px auto 12px; border-radius: 99px; background: var(--raised); overflow: hidden; } +.splash-loader-indicator { width: 40%; height: 100%; background: var(--grad); animation: splash-slide 1.1s ease-in-out infinite; } +@keyframes splash-slide { from { transform: translateX(-100%); } to { transform: translateX(260%); } } +.splash-status-text { color: var(--muted); font-size: 12px; } + +/* ---------- smaller windows (the Tauri minimum is 1024 x 700) ---------- */ +@media (max-width: 1240px) { + .app-sidebar:not(.collapsed) { width: 206px; } + .git-comments-column { position: absolute; top: 0; right: 0; bottom: 0; width: 290px; background: var(--surface); box-shadow: var(--shadow); z-index: 5; } + .diff-header-bar { flex-wrap: wrap; } + .tabs { flex-wrap: wrap; column-gap: 14px; } + .tabs > button { height: 32px; } + .btn-panel-size-toggle > span { display: none; } + .tabs-spacer { min-width: 0; } + .grid3 { grid-template-columns: 1fr 1fr; } + .grid4, .fact-grid { grid-template-columns: 1fr 1fr; } + .phase-routing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } + .pane-list { width: 220px; } + .topbar-search-trigger .search-placeholder, .connection-text { display: none; } + .page { padding: 22px 22px 32px; } } - -.summary-pill-item .pill-icon.violet { - color: var(--accent-primary); -} - -.summary-pill-item .pill-icon.blue { - color: var(--accent-secondary); -} - -.summary-pill-item .pill-strong { - font-weight: 700; - font-family: var(--font-mono); -} - -.summary-pill-item .pill-strong.violet { - color: var(--accent-primary); -} - -.summary-pill-item .pill-strong.blue { - color: var(--accent-secondary); -} - -.summary-pill-item .pill-label { - color: var(--text-secondary); -} - -.pill-divider { - color: var(--border); -} - -/* Filter Toolbar */ -.dashboard-filter-toolbar { - display: flex; - align-items: center; - gap: 12px; - padding: 4px 0; -} - -.filter-search-box { - display: flex; - align-items: center; - gap: 8px; - padding: 6px 12px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - width: 260px; -} - -.filter-search-box input { - background: transparent; - border: none; - box-shadow: none; - padding: 0; - width: 100%; - font-size: 12px; -} - -.filter-segmented-control { - display: flex; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 2px; -} - -.seg-btn { - padding: 4px 12px; - border-radius: 4px; - font-size: 11px; - font-weight: 500; - color: var(--text-secondary); -} - -.seg-btn.active { - background: var(--surface-elevated); - color: var(--text-primary); - font-weight: 600; -} - -.filter-count-badge { - font-size: 12px; - color: var(--text-muted); -} - -.toolbar-spacer { - flex: 1; -} - -.view-mode-toggle { - display: flex; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 2px; -} - -.mode-btn { - width: 28px; - height: 26px; - border-radius: 4px; - color: var(--text-muted); - font-size: 12px; -} - -.mode-btn.active { - background: var(--surface-elevated); - color: var(--text-primary); -} - -/* Projects Card Grid (Screenshot 1) */ -.projects-card-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); - gap: 16px; -} - -.gsd-project-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 18px 20px; - display: flex; - flex-direction: column; - gap: 12px; - cursor: pointer; - transition: all 0.2s ease; -} - -.gsd-project-card:hover { - border-color: var(--border-focus); - background: var(--surface-hover); - transform: translateY(-1px); - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25); -} - -.card-header-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.card-title-left { - display: flex; - align-items: center; - gap: 8px; -} - -.star-toggle-btn { - color: var(--text-muted); - font-size: 16px; - line-height: 1; -} - -.star-toggle-btn.starred { - color: var(--warning); -} - -.project-title { - font-size: 14px; - font-weight: 700; - color: var(--text-primary); -} - -.project-tag-pill { - font-family: var(--font-mono); - font-size: 10px; - font-weight: 700; - padding: 2px 8px; - border-radius: var(--radius-sm); - letter-spacing: 0.04em; -} - -.project-tag-pill.gsd { - background: rgba(120, 87, 255, 0.15); - color: var(--accent-primary); - border: 1px solid rgba(120, 87, 255, 0.3); -} - -.project-tag-pill.active { - background: rgba(39, 183, 245, 0.15); - color: var(--accent-secondary); - border: 1px solid rgba(39, 183, 245, 0.3); -} - -.project-tag-pill.bare { - background: var(--surface-elevated); - color: var(--text-muted); - border: 1px solid var(--border); -} - -.project-desc { - font-size: 12px; - color: var(--text-secondary); - line-height: 1.4; - height: 34px; - overflow: hidden; - display: -webkit-box; - -webkit-line-clamp: 2; - -webkit-box-orient: vertical; -} - -/* Card Badges Row */ -.card-badges-row { - display: flex; - align-items: center; - gap: 8px; - flex-wrap: wrap; -} - -.badge-pill { - font-size: 11px; - font-weight: 500; - padding: 2px 8px; - border-radius: 4px; - background: var(--surface-elevated); - border: 1px solid var(--border-subtle); - color: var(--text-secondary); -} - -.badge-pill.phases { - background: rgba(120, 87, 255, 0.12); - color: #b5a4ff; - border-color: rgba(120, 87, 255, 0.25); -} - -.badge-pill.blockers { - background: var(--error-bg); - color: var(--error); - border-color: rgba(255, 100, 124, 0.3); -} - -.badge-pill.todos { - background: var(--surface-elevated); - color: var(--text-secondary); -} - -/* Progress bar */ -.card-progress-section { - display: flex; - align-items: center; - gap: 12px; -} - -.progress-track { - flex: 1; - height: 5px; - background: var(--surface-elevated); - border-radius: 3px; - overflow: hidden; -} - -.progress-fill { - height: 100%; - background: linear-gradient(90deg, #27b7f5 0%, #00c2ff 100%); - border-radius: 3px; - transition: width 0.3s ease; -} - -.progress-fraction { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-muted); -} - -.card-progress-placeholder { - height: 16px; -} - -/* Card Footer */ -.card-footer-row { - display: flex; - align-items: center; - justify-content: space-between; - padding-top: 8px; - border-top: 1px solid var(--border-subtle); - font-size: 11px; - color: var(--text-muted); -} - -.branch-meta { - display: flex; - align-items: center; - gap: 4px; - font-family: var(--font-mono); -} - -.time-meta { - display: flex; - align-items: center; - gap: 4px; -} - -/* Dashboard Bottom Grid */ -.dashboard-bottom-section { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 16px; - margin-top: 8px; -} - -.bottom-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 18px 20px; -} - -.bottom-card-head { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 14px; -} - -.bottom-card-head h3 { - font-size: 13px; - font-weight: 700; -} - -.live-pill { - font-size: 11px; - color: var(--success); - display: flex; - align-items: center; - gap: 5px; -} - -.live-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--success); - box-shadow: 0 0 6px var(--success); -} - -.mini-sessions-list { - display: flex; - flex-direction: column; - gap: 6px; -} - -.mini-session-row { - display: flex; - align-items: center; - gap: 10px; - padding: 8px 10px; - background: var(--surface-elevated); - border-radius: var(--radius-sm); - cursor: pointer; -} - -.mini-session-row:hover { - background: var(--surface-hover); -} - -.status-dot-badge { - width: 8px; - height: 8px; - border-radius: 50%; - flex-shrink: 0; -} - -.status-dot-badge.status-running, .status-dot-badge.status-queued { - background: var(--info); - box-shadow: 0 0 6px var(--info); -} - -.status-dot-badge.status-awaiting_approval { - background: var(--warning); - box-shadow: 0 0 6px var(--warning); -} - -.status-dot-badge.status-approved, .status-dot-badge.status-completed { - background: var(--success); -} - -.mini-session-row .session-info { - flex: 1; - display: flex; - flex-direction: column; -} - -.mini-session-row .session-info strong { - font-size: 12px; - color: var(--text-primary); -} - -.mini-session-row .session-info small { - font-size: 10px; - color: var(--text-muted); -} - -.session-cost { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-muted); -} - -/* Routing Preview List */ -.routing-preview-list { - display: flex; - flex-direction: column; - gap: 8px; -} - -.routing-preview-row { - display: flex; - align-items: center; - gap: 10px; - font-size: 12px; - padding: 6px 10px; - background: var(--surface-elevated); - border-radius: var(--radius-sm); -} - -.phase-badge { - font-size: 10px; - font-weight: 700; - padding: 2px 6px; - border-radius: 4px; - min-width: 70px; - text-align: center; -} - -.phase-badge.analyze { background: rgba(39, 183, 245, 0.15); color: var(--accent-secondary); } -.phase-badge.plan { background: rgba(120, 87, 255, 0.15); color: var(--accent-primary); } -.phase-badge.implement { background: rgba(32, 201, 151, 0.15); color: var(--success); } -.phase-badge.test { background: rgba(255, 181, 71, 0.15); color: var(--warning); } -.phase-badge.review { background: rgba(255, 100, 124, 0.15); color: var(--error); } - -.model-chip { - flex: 1; - font-weight: 600; - color: var(--text-primary); -} - -.provider-tag { - font-size: 10px; - color: var(--text-muted); -} - -/* ========================================================================== - TASK WORKSPACE — 3-PANEL VIEW (Matching Screenshots 2 & 3) - ========================================================================== */ -.modern-workspace-container { - display: flex; - height: 100%; - width: 100%; - overflow: hidden; -} - -/* LEFT PANEL (Task List) */ -.workspace-left-panel { - width: 260px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - flex-shrink: 0; -} - -.left-panel-top { - padding: 12px; - border-bottom: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - gap: 10px; -} - -.btn-workspace-new { - width: 100%; - display: flex; - align-items: center; - justify-content: center; - gap: 6px; - padding: 8px 12px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-weight: 600; - font-size: 12px; -} - -.btn-workspace-new:hover { - background: #1ea0db; -} - -.tasks-count-label { - font-size: 11px; - font-weight: 600; - color: var(--text-muted); -} - -.workspace-tasks-list { - flex: 1; - overflow-y: auto; - padding: 8px; - display: flex; - flex-direction: column; - gap: 4px; -} - -.task-item-card { - padding: 10px 12px; - border-radius: var(--radius-sm); - background: var(--surface); - border: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - gap: 6px; - cursor: pointer; - transition: all 0.15s ease; -} - -.task-item-card:hover { - border-color: var(--border); - background: var(--surface-hover); -} - -.task-item-card.selected { - border-color: var(--accent-secondary); - background: var(--surface-elevated); -} - -.task-item-header { - display: flex; - align-items: center; - gap: 8px; -} - -.task-item-title { - font-size: 12px; - color: var(--text-primary); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.icon-running { color: var(--accent-secondary); } -.icon-waiting { color: var(--warning); } -.icon-done { color: var(--success); } - -.task-item-meta { - display: flex; - align-items: center; - justify-content: space-between; - font-size: 10px; -} - -.task-badge { - padding: 1px 6px; - border-radius: 4px; - font-family: var(--font-mono); -} - -.task-badge.in-progress, .task-badge.running { - background: rgba(39, 183, 245, 0.15); - color: var(--accent-secondary); -} - -.task-badge.waiting, .task-badge.awaiting_approval { - background: var(--warning-bg); - color: var(--warning); -} - -.task-badge.completed, .task-badge.approved { - background: var(--success-bg); - color: var(--success); -} - -.task-cost { - font-family: var(--font-mono); - color: var(--text-muted); -} - -/* CENTER PANEL (Agent Execution Feed) */ -.workspace-center-panel { - flex: 1; - display: flex; - flex-direction: column; - background: var(--bg-main); - border-right: 1px solid var(--border-subtle); - min-width: 380px; - height: 100%; -} - -.center-panel-header { - padding: 12px 18px; - border-bottom: 1px solid var(--border-subtle); - display: flex; - align-items: center; - justify-content: space-between; - background: var(--bg-secondary); -} - -.repo-branch-selector { - display: flex; - align-items: center; - gap: 8px; -} - -.project-badge { - font-size: 11px; - font-weight: 700; - padding: 3px 8px; - background: var(--surface-elevated); - border-radius: 4px; -} - -.branch-info { - font-family: var(--font-mono); - font-size: 11px; - color: var(--accent-secondary); -} - -.session-status-pill { - font-size: 11px; - font-weight: 600; - padding: 3px 8px; - border-radius: var(--radius-pill); -} - -.session-status-pill.in-progress { - background: rgba(39, 183, 245, 0.15); - color: var(--accent-secondary); - border: 1px solid rgba(39, 183, 245, 0.3); -} - -.center-feed-scroll { - flex: 1; - overflow-y: auto; - padding: 20px; - display: flex; - flex-direction: column; - gap: 16px; -} - -.user-prompt-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 14px 16px; -} - -.prompt-header { - display: flex; - align-items: center; - gap: 6px; - margin-bottom: 6px; - font-size: 11px; - font-weight: 600; - color: var(--text-muted); -} - -.prompt-text { - font-size: 13px; - color: var(--text-primary); - line-height: 1.5; -} - -.agent-activity-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - display: flex; - flex-direction: column; - gap: 14px; -} - -.agent-card-title-row { - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid var(--border-subtle); - padding-bottom: 10px; -} - -.agent-identity { - display: flex; - align-items: center; - gap: 8px; -} - -.agent-icon { - color: var(--accent-secondary); -} - -.thought-time { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-muted); -} - -.agent-steps-list { - display: flex; - flex-direction: column; - gap: 10px; -} - -.step-item { - display: flex; - align-items: flex-start; - gap: 10px; -} - -.step-check { - color: var(--success); - font-weight: bold; -} - -.step-spinner { - color: var(--accent-secondary); - animation: spin 1s linear infinite; -} - -@keyframes spin { - from { transform: rotate(0deg); } - to { transform: rotate(360deg); } -} - -.step-body strong { - font-size: 12px; - color: var(--text-primary); - display: block; -} - -.step-body p { - font-size: 11px; - color: var(--text-muted); -} - -.file-edit-badges { - display: flex; - flex-direction: column; - gap: 4px; - margin-top: 6px; -} - -.file-badge { - display: inline-flex; - align-items: center; - gap: 6px; - font-family: var(--font-mono); - font-size: 11px; - background: var(--surface-elevated); - padding: 3px 8px; - border-radius: 4px; - border: 1px solid var(--border-subtle); - width: fit-content; -} - -.diff-stat { - color: var(--success); -} - -.tasks-progress-box { - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 12px; -} - -.progress-box-header { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 8px; - font-size: 12px; -} - -.progress-checklist { - display: flex; - flex-direction: column; - gap: 4px; - font-size: 11px; -} - -.check-line.done { - color: var(--text-secondary); -} - -.check-line.pending { - color: var(--text-muted); -} - -.ai-thinking-indicator { - display: flex; - align-items: center; - gap: 8px; - font-size: 11px; - color: var(--accent-secondary); -} - -.pulse-dot { - width: 7px; - height: 7px; - border-radius: 50%; - background: var(--accent-secondary); - animation: pulse 1.5s infinite; -} - -@keyframes pulse { - 0% { transform: scale(0.9); opacity: 0.6; } - 50% { transform: scale(1.3); opacity: 1; } - 100% { transform: scale(0.9); opacity: 0.6; } -} - -/* Prompt input footer */ -.center-input-footer { - padding: 12px 16px; - border-top: 1px solid var(--border-subtle); - background: var(--bg-secondary); - display: flex; - flex-direction: column; - gap: 8px; -} - -.input-toolbar-top { - display: flex; - align-items: center; - justify-content: space-between; -} - -.agent-mode-badge { - font-size: 11px; - font-weight: 600; - color: var(--accent-secondary); -} - -.plan-toggle { - display: flex; - align-items: center; - gap: 6px; - font-size: 11px; - color: var(--text-muted); -} - -.input-field-wrap input { - width: 100%; - padding: 9px 12px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - font-size: 12px; -} - -.input-toolbar-bottom { - display: flex; - align-items: center; - justify-content: space-between; -} - -.toolbar-left-tools { - display: flex; - align-items: center; - gap: 6px; -} - -.tool-btn { - padding: 4px 8px; - border-radius: 4px; - font-size: 12px; - color: var(--text-muted); -} - -.tool-btn:hover { - background: var(--surface); - color: var(--text-primary); -} - -.tool-btn.auto-badge { - background: var(--surface-elevated); - color: var(--accent-secondary); - font-weight: 600; -} - -.toolbar-right-actions { - display: flex; - align-items: center; - gap: 8px; -} - -.btn-danger-stop { - padding: 5px 12px; - background: var(--error-bg); - border: 1px solid rgba(255, 100, 124, 0.4); - color: var(--error); - font-weight: 600; - border-radius: var(--radius-sm); - font-size: 11px; -} - -.btn-success-approve { - padding: 5px 14px; - background: var(--success); - color: #fff; - font-weight: 600; - border-radius: var(--radius-sm); - font-size: 11px; -} - -/* RIGHT PANEL (5 Tabs: Execution, Changes, Logs, Artifacts, Timeline) */ -.workspace-right-panel { - flex: 1.2; - display: flex; - flex-direction: column; - background: var(--bg-main); - height: 100%; - overflow: hidden; -} - -.right-panel-tabs-bar { - display: flex; - align-items: center; - gap: 2px; - padding: 0 12px; - background: var(--bg-secondary); - border-bottom: 1px solid var(--border-subtle); - height: 40px; -} - -.tab-nav-btn { - padding: 0 14px; - height: 100%; - font-size: 12px; - font-weight: 500; - color: var(--text-muted); - position: relative; - display: flex; - align-items: center; - gap: 6px; -} - -.tab-nav-btn:hover { - color: var(--text-primary); -} - -.tab-nav-btn.active { - color: var(--text-primary); - font-weight: 600; -} - -.tab-nav-btn.active::after { - content: ""; - position: absolute; - bottom: 0; - left: 10px; - right: 10px; - height: 2px; - background: var(--accent-secondary); -} - -.tab-badge { - font-family: var(--font-mono); - font-size: 10px; - background: var(--surface-elevated); - padding: 1px 5px; - border-radius: 4px; -} - -/* ========================================================================== - TAB 2: CHANGES — GIT CHANGES & DIFF VIEWER (Matching Screenshot 2) - ========================================================================== */ -.changes-tab-panel { - flex: 1; - display: flex; - overflow: hidden; -} - -.git-changes-layout { - display: flex; - width: 100%; - height: 100%; -} - -/* Left Subcolumn: Files list */ -.git-files-column { - width: 220px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - flex-shrink: 0; -} - -.files-section-block { - flex: 1; - overflow-y: auto; - display: flex; - flex-direction: column; -} - -.section-head-row { - display: flex; - align-items: center; - justify-content: space-between; - padding: 8px 10px; - background: var(--surface); - font-size: 11px; - border-bottom: 1px solid var(--border-subtle); -} - -.btn-link-action { - font-size: 10px; - color: var(--accent-secondary); -} - -.file-items-list { - display: flex; - flex-direction: column; -} - -.git-file-row { - display: flex; - align-items: center; - gap: 8px; - padding: 6px 10px; - cursor: pointer; - border-bottom: 1px solid var(--border-subtle); -} - -.git-file-row:hover { - background: var(--surface); -} - -.git-file-row.active { - background: var(--surface-elevated); - border-left: 2px solid var(--accent-secondary); -} - -.file-status-letter { - font-family: var(--font-mono); - font-weight: 700; - font-size: 11px; -} - -.file-status-letter.M { color: var(--warning); } -.file-status-letter.A { color: var(--success); } -.file-status-letter.D { color: var(--error); } - -.file-info-col { - flex: 1; - display: flex; - flex-direction: column; - overflow: hidden; -} - -.file-info-col .filename { - font-size: 12px; - font-weight: 500; - color: var(--text-primary); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.file-info-col .filepath { - font-size: 9px; - color: var(--text-muted); -} - -.comment-bubble-count { - font-family: var(--font-mono); - font-size: 9px; - background: var(--warning-bg); - color: var(--warning); - padding: 1px 5px; - border-radius: 3px; -} - -/* Commit box */ -.git-commit-box { - padding: 10px; - border-top: 1px solid var(--border); - background: var(--surface); - display: flex; - flex-direction: column; - gap: 6px; -} - -.git-commit-box textarea { - width: 100%; - padding: 6px 8px; - font-size: 11px; - resize: none; -} - -.commit-box-footer { - display: flex; - align-items: center; - justify-content: space-between; - font-size: 10px; - color: var(--text-muted); -} - -.btn-commit-action { - padding: 5px 10px; - background: var(--accent-primary); - color: #fff; - border-radius: 4px; - font-weight: 600; - font-size: 11px; -} - -.btn-commit-action:hover:not(:disabled) { - background: #1ea0db; -} - -/* Center Subcolumn: Diff Viewer */ -.git-diff-column { - flex: 1; - display: flex; - flex-direction: column; - background: var(--bg-main); - border-right: 1px solid var(--border-subtle); - overflow: hidden; -} - -.diff-header-bar { - display: flex; - align-items: center; - justify-content: space-between; - padding: 8px 14px; - background: var(--surface); - border-bottom: 1px solid var(--border); -} - -.diff-filename { - font-family: var(--font-mono); - font-size: 12px; - font-weight: 600; -} - -.diff-mode-toggles { - display: flex; - background: var(--surface-elevated); - border-radius: 4px; - padding: 2px; -} - -.diff-mode-toggles .mode-btn { - padding: 2px 8px; - font-size: 11px; -} - -.diff-code-scroll { - flex: 1; - overflow: auto; - padding: 10px 0; - background: #0f1013; -} - -.diff-pre-block { - font-family: var(--font-mono); - font-size: 11px; - line-height: 1.6; -} - -.diff-line-row { - display: flex; - padding: 0 10px; -} - -.diff-line-row .line-num { - width: 40px; - color: #4b5266; - text-align: right; - padding-right: 12px; - user-select: none; -} - -.diff-line-row .line-code { - flex: 1; - white-space: pre; -} - -.diff-line-row.chunk-header { - background: #192033; - color: #5686f5; - font-weight: 600; -} - -.diff-line-row.added { - background: rgba(32, 201, 151, 0.14); - color: #42e0ac; -} - -.diff-line-row.removed { - background: rgba(255, 100, 124, 0.14); - color: #ff7d91; -} - -.diff-line-row.context { - color: #abb2bf; -} - -/* Empty Diff Viewer and Empty Files States */ -.diff-empty-viewer { - flex: 1; - display: flex; - align-items: center; - justify-content: center; - padding: 40px 24px; - text-align: center; - background: var(--bg-main); -} - -.empty-viewer-card { - max-width: 440px; - display: flex; - flex-direction: column; - align-items: center; - gap: 12px; - padding: 32px 24px; - background: var(--surface); - border: 1px solid var(--border-subtle); - border-radius: var(--radius-md); - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); -} - -.empty-viewer-card h3 { - font-size: 16px; - font-weight: 600; - color: var(--text-primary); - margin: 0; -} - -.empty-viewer-card p { - font-size: 13px; - color: var(--text-secondary); - line-height: 1.5; - margin: 0; -} - -.files-empty-notice { - padding: 32px 16px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - gap: 8px; - color: var(--text-secondary); -} - -.files-empty-notice .empty-title { - font-size: 13px; - font-weight: 600; - color: var(--text-primary); -} - -.files-empty-notice small { - font-size: 11px; - color: var(--text-secondary); - line-height: 1.4; -} - -/* Right Subcolumn: Inline Comments Panel */ -.git-comments-column { - width: 250px; - background: var(--bg-secondary); - display: flex; - flex-direction: column; - padding: 12px; - gap: 10px; - flex-shrink: 0; - overflow-y: auto; -} - -.comments-head-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.btn-text-sm { - font-size: 11px; - color: var(--text-muted); -} - -.btn-text-sm:hover { - color: var(--text-primary); -} - -.btn-export-agent { - width: 100%; - padding: 7px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-weight: 600; - font-size: 11px; -} - -.comments-cards-list { - display: flex; - flex-direction: column; - gap: 8px; -} - -.comment-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 10px; - display: flex; - flex-direction: column; - gap: 6px; -} - -.comment-card.security { - border-left: 3px solid var(--accent-secondary); -} - -.comment-card.warning { - border-left: 3px solid var(--warning); -} - -.comment-card-top { - display: flex; - align-items: center; - justify-content: space-between; -} - -.comment-file-link { - font-family: var(--font-mono); - font-size: 10px; - color: var(--accent-secondary); -} - -.comment-type-badge { - font-size: 9px; - color: var(--text-muted); -} - -.comment-snippet code { - font-family: var(--font-mono); - font-size: 10px; - background: var(--surface-elevated); - padding: 2px 4px; - border-radius: 3px; - color: var(--text-code); - display: block; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.comment-body { - font-size: 11px; - color: var(--text-secondary); - line-height: 1.4; -} - -/* ========================================================================== - TAB 1: EXECUTION PANEL - ========================================================================== */ -.execution-tab-panel { - padding: 20px; - display: flex; - flex-direction: column; - gap: 20px; - overflow-y: auto; -} - -.phase-timeline-bar { - display: flex; - align-items: center; - justify-content: space-between; - padding: 16px 20px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); -} - -.phase-node { - display: flex; - flex-direction: column; - align-items: center; - gap: 4px; -} - -.phase-circle { - width: 26px; - height: 26px; - border-radius: 50%; - display: flex; - align-items: center; - justify-content: center; - font-size: 11px; - font-weight: 700; - background: var(--surface-elevated); - border: 1px solid var(--border); -} - -.phase-node.done .phase-circle { - background: var(--success-bg); - border-color: var(--success); - color: var(--success); -} - -.phase-node.active .phase-circle { - background: var(--info-bg); - border-color: var(--accent-secondary); - color: var(--accent-secondary); -} - -.phase-line { - flex: 1; - height: 2px; - background: var(--border); - margin: 0 8px; -} - -.phase-line.done { - background: var(--success); -} - -.phase-line.active { - background: linear-gradient(90deg, var(--success), var(--accent-secondary)); -} - -.phase-name { - font-size: 11px; - font-weight: 600; -} - -.phase-node small { - font-size: 9px; - color: var(--text-muted); -} - -.execution-details-grid { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 12px; -} - -.exec-meta-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 12px; - display: flex; - flex-direction: column; -} - -.exec-meta-label { - font-size: 10px; - color: var(--text-muted); - font-weight: 600; -} - -.exec-meta-val { - font-size: 14px; - color: var(--text-primary); - margin: 2px 0; -} - -.exec-meta-sub { - font-size: 10px; - color: var(--text-secondary); -} - -.execution-action-controls { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; -} - -.execution-action-controls h3 { - font-size: 13px; - margin-bottom: 12px; -} - -.controls-row { - display: flex; - gap: 10px; -} - -.btn-control { - padding: 8px 16px; - border-radius: var(--radius-sm); - font-size: 12px; - font-weight: 600; -} - -.btn-control.resume { - background: var(--surface-elevated); - border: 1px solid var(--border); -} - -.btn-control.stop { - background: var(--error-bg); - color: var(--error); - border: 1px solid rgba(255, 100, 124, 0.3); -} - -.btn-control.approve { - background: var(--success); - color: #fff; -} - -/* ========================================================================== - TAB 3: LOGS PANEL - ========================================================================== */ -.logs-tab-panel { - flex: 1; - display: flex; - flex-direction: column; - background: #0f1013; - overflow: hidden; -} - -.logs-toolbar { - padding: 8px 12px; - background: var(--surface); - border-bottom: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: space-between; -} - -.log-filters { - display: flex; - gap: 4px; -} - -.lvl-btn { - padding: 3px 8px; - border-radius: 4px; - font-size: 10px; - font-weight: 600; - background: var(--surface-elevated); - color: var(--text-muted); -} - -.lvl-btn.active { - background: var(--accent-secondary); - color: #000; -} - -.btn-copy-logs { - font-size: 11px; - color: var(--text-secondary); -} - -.logs-terminal-viewport { - flex: 1; - overflow: auto; - padding: 12px; - font-family: var(--font-mono); - font-size: 11px; - line-height: 1.7; -} - -.log-entry-row { - display: flex; - flex-wrap: wrap; - gap: 6px 10px; - align-items: baseline; -} - -.log-ts { color: var(--text-muted); } -.log-lvl.info { color: var(--accent-secondary); font-weight: 600; } -.log-lvl.warn { color: var(--warning); font-weight: 600; } -.log-lvl.error { color: var(--error); font-weight: 600; } -.log-type { color: #818cf8; } -.log-summary { color: var(--text-primary); } - -/* ========================================================================== - MODEL HUB & ROUTING (Matching Screenshot 4) - ========================================================================== */ -.model-hub-container { - display: flex; - height: 100%; - width: 100%; - overflow: hidden; -} - -.model-hub-subnav { - width: 220px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - padding: 16px 12px; - gap: 16px; - flex-shrink: 0; - overflow-y: auto; -} - -.subnav-section { - display: flex; - flex-direction: column; - gap: 2px; -} - -.subnav-label { - font-size: 10px; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--text-muted); - padding: 4px 6px; -} - -.subnav-btn { - width: 100%; - display: flex; - align-items: center; - gap: 8px; - padding: 6px 8px; - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-size: 12px; - text-align: left; -} - -.subnav-btn:hover { - background: var(--surface); - color: var(--text-primary); -} - -.subnav-btn.active { - background: var(--surface-elevated); - color: var(--text-primary); - font-weight: 600; -} - -.plan-usage-card { - margin-top: auto; - padding: 12px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); -} - -.plan-title-row { - display: flex; - justify-content: space-between; - font-size: 11px; -} - -.plan-name { font-weight: 700; } -.plan-tier { color: var(--accent-secondary); } -.plan-cost { font-size: 13px; font-weight: 700; margin: 4px 0; } -.plan-progress-bar { height: 4px; background: var(--surface-elevated); border-radius: 2px; overflow: hidden; } -.plan-progress-bar .bar-fill { height: 100%; background: var(--accent-secondary); } -.plan-reset { font-size: 10px; color: var(--text-muted); } - -/* Model Hub Content Area */ -.model-hub-content-area { - flex: 1; - overflow-y: auto; - padding: 20px 24px; - display: flex; - flex-direction: column; - gap: 20px; -} - -/* 4 Model Telemetry Cards */ -.models-cards-row { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 14px; -} - -.model-telemetry-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 14px; - display: flex; - flex-direction: column; - gap: 10px; -} - -.card-top-identity { - display: flex; - align-items: center; - gap: 8px; -} - -.model-avatar-badge { - width: 24px; - height: 24px; - border-radius: 4px; - display: flex; - align-items: center; - justify-content: center; - font-weight: 700; - color: #fff; - font-size: 12px; -} - -.model-names strong { font-size: 13px; display: block; } -.model-names small { font-size: 10px; color: var(--text-muted); } - -.telemetry-metrics-grid { - display: grid; - grid-template-columns: repeat(3, 1fr); - gap: 6px; - text-align: center; -} - -.metric-box { - background: var(--surface-elevated); - padding: 6px 4px; - border-radius: 4px; - display: flex; - flex-direction: column; -} - -.metric-box .m-val { font-family: var(--font-mono); font-size: 11px; font-weight: 600; } -.metric-box .m-tag { font-size: 9px; } -.metric-box .m-tag.good, .metric-box .m-tag.excellent { color: var(--success); } -.metric-box .m-tag.delta { color: var(--text-muted); } - -.model-score-row { - display: flex; - align-items: center; - gap: 8px; -} - -.score-bar { - flex: 1; - height: 4px; - background: var(--surface-elevated); - border-radius: 2px; - overflow: hidden; -} - -.score-fill { - height: 100%; - background: var(--accent-secondary); -} - -.score-num { - font-family: var(--font-mono); - font-size: 11px; - font-weight: 700; -} - -/* Unified Endpoint Banner */ -.endpoint-banner-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px 20px; - display: flex; - gap: 24px; -} - -.banner-left { - flex: 1; - display: flex; - gap: 12px; -} - -.endpoint-icon { - font-size: 24px; - color: var(--accent-secondary); -} - -.endpoint-info h3 { - font-family: var(--font-mono); - font-size: 16px; - margin-bottom: 6px; -} - -.tags-row { - display: flex; - gap: 6px; - margin-bottom: 8px; -} - -.tag-pill { - font-size: 10px; - padding: 2px 6px; - border-radius: 4px; - background: var(--surface-elevated); - border: 1px solid var(--border-subtle); - color: var(--accent-secondary); -} - -.sdk-code-box { - flex: 1.2; - background: #0f1013; - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 10px; -} - -.sdk-tabs-row { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 8px; - font-size: 11px; - color: var(--text-muted); -} - -.sdk-pills { - display: flex; - gap: 4px; -} - -.lang-btn { - padding: 2px 8px; - border-radius: 4px; - font-size: 10px; - color: var(--text-muted); -} - -.lang-btn.active { - background: var(--surface-elevated); - color: var(--text-primary); - font-weight: 600; -} - -.sdk-snippet { - font-family: var(--font-mono); - font-size: 11px; - line-height: 1.5; - color: #abb2bf; -} - -/* Hub Bottom Split */ -.hub-bottom-split { - display: grid; - grid-template-columns: 1.4fr 1fr; - gap: 16px; -} - -.live-router-card, .fallback-chain-card, .cost-comparison-card, .routing-health-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; -} - -.traffic-diagram { - display: flex; - align-items: center; - gap: 16px; - margin: 16px 0; -} - -.incoming-node { - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 12px; - text-align: center; - min-width: 130px; -} - -.incoming-title { font-size: 10px; color: var(--text-muted); } -.incoming-rate { font-size: 14px; color: var(--text-primary); display: block; } -.router-hub-icon { font-size: 20px; color: var(--accent-secondary); } - -.routed-destinations { - flex: 1; - display: flex; - flex-direction: column; - gap: 8px; -} - -.dest-row { - display: flex; - align-items: center; - gap: 8px; - font-size: 11px; -} - -.model-badge-mini { - width: 18px; - height: 18px; - border-radius: 3px; - display: flex; - align-items: center; - justify-content: center; - color: #fff; - font-size: 10px; - font-weight: 700; -} - -.dest-bar { - flex: 1; - height: 6px; - background: var(--surface-elevated); - border-radius: 3px; - overflow: hidden; -} - -.dest-fill { height: 100%; border-radius: 3px; } -.dest-pct { font-family: var(--font-mono); font-weight: 600; width: 32px; } -.dest-speed { font-size: 10px; color: var(--text-muted); } - -.router-stats-foot { - display: flex; - justify-content: space-between; - font-size: 11px; - border-top: 1px solid var(--border-subtle); - padding-top: 10px; - color: var(--text-secondary); -} - -.chain-steps-tree { - display: flex; - flex-direction: column; - gap: 6px; - margin: 12px 0; -} - -.chain-step-box { - display: flex; - align-items: center; - gap: 8px; - padding: 8px 12px; - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - font-size: 11px; -} - -.chain-step-box .step-num { - width: 18px; - height: 18px; - border-radius: 50%; - background: var(--surface); - display: flex; - align-items: center; - justify-content: center; - font-weight: 700; -} - -.chain-connector { - text-align: center; - font-size: 10px; - color: var(--text-muted); -} - -.cost-bar-chart { - display: flex; - align-items: flex-end; - justify-content: space-around; - height: 120px; - margin-top: 14px; -} - -.chart-bar-col { - display: flex; - flex-direction: column; - align-items: center; - gap: 6px; - height: 100%; - justify-content: flex-end; -} - -.bar-fill-vertical { - width: 36px; - border-radius: 4px 4px 0 0; - display: flex; - align-items: flex-start; - justify-content: center; - padding-top: 4px; -} - -.bar-fill-vertical.gpt { background: #20c997; } -.bar-fill-vertical.claude { background: #ffb547; } -.bar-fill-vertical.llama { background: #27b7f5; } -.bar-fill-vertical.mistral { background: #7857ff; } - -.bar-val { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #000; } -.bar-label { font-size: 10px; color: var(--text-muted); } - -.health-metrics-row { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 8px; - margin-top: 12px; - text-align: center; -} - -.health-stat .stat-label { font-size: 10px; color: var(--text-muted); display: block; } -.health-stat .stat-value { font-family: var(--font-mono); font-size: 14px; font-weight: 700; } - -/* ========================================================================== - WORKFLOW BUILDER VIEW - ========================================================================== */ -.workflow-builder-container { - display: flex; - flex-direction: column; - height: 100%; -} - -.workflow-top-toolbar { - padding: 10px 16px; - background: var(--surface); - border-bottom: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: space-between; -} - -.wf-title-block { - display: flex; - align-items: center; - gap: 10px; -} - -.wf-title-text h2 { font-size: 14px; font-weight: 700; } -.wf-version-tag { font-size: 10px; color: var(--text-muted); } - -.wf-presets-row { - display: flex; - background: var(--surface-elevated); - border-radius: var(--radius-sm); - padding: 2px; -} - -.preset-btn { - padding: 4px 12px; - border-radius: 4px; - font-size: 11px; - color: var(--text-muted); -} - -.preset-btn.active { - background: var(--surface); - color: var(--text-primary); - font-weight: 600; -} - -.workflow-editor-body { - flex: 1; - display: flex; - overflow: hidden; -} - -.workflow-canvas-scroll { - flex: 1; - overflow: auto; - padding: 24px; - background: #0f1013; -} - -.workflow-canvas-grid { - display: flex; - flex-direction: column; - align-items: center; - gap: 14px; - min-width: 600px; -} - -.wf-node-wrapper { - display: flex; - flex-direction: column; - align-items: center; -} - -.wf-node-card { - width: 320px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 14px; - cursor: pointer; - transition: all 0.2s ease; -} - -.wf-node-card:hover { - border-color: var(--border-focus); -} - -.wf-node-card.selected { - border-color: var(--accent-secondary); - box-shadow: 0 0 0 2px var(--accent-glow); -} - -.wf-node-card.active { - border-left: 3px solid var(--accent-secondary); -} - -.node-card-header { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 8px; -} - -.phase-indicator-pill { - font-size: 10px; - font-weight: 700; - padding: 2px 6px; - border-radius: 4px; - background: var(--surface-elevated); - color: var(--accent-secondary); -} - -.node-card-body strong { font-size: 13px; display: block; margin-bottom: 2px; } -.node-model-label { font-size: 11px; color: var(--accent-primary); font-weight: 600; display: block; } -.node-provider-label { font-size: 10px; color: var(--text-muted); } - -.node-card-footer { - display: flex; - justify-content: space-between; - font-size: 10px; - color: var(--text-muted); - border-top: 1px solid var(--border-subtle); - padding-top: 6px; - margin-top: 8px; -} - -.wf-node-connector { - display: flex; - flex-direction: column; - align-items: center; - color: var(--text-muted); - font-size: 12px; -} - -.connector-line { - width: 2px; - height: 16px; - background: var(--border); -} - -.workflow-inspector-panel { - width: 300px; - background: var(--bg-secondary); - border-left: 1px solid var(--border-subtle); - padding: 16px; - overflow-y: auto; -} - -.inspector-header { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 16px; -} - -.inspector-form { - display: flex; - flex-direction: column; - gap: 12px; -} - -.form-group { - display: flex; - flex-direction: column; - gap: 4px; -} - -.form-group label { - font-size: 11px; - color: var(--text-muted); - font-weight: 600; -} - -.form-group input, .form-group select { - padding: 7px 10px; - font-size: 12px; -} - -.form-row-2 { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 8px; -} - -.inspector-notes-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 10px; - font-size: 11px; - color: var(--text-secondary); - margin-top: 10px; -} - -/* ========================================================================== - REVIEW QUEUE VIEW — Redesigned - ========================================================================== */ -.review-queue-container { - display: flex; - flex-direction: column; - height: 100%; - overflow: hidden; -} - -/* Slim header bar */ -.review-queue-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 14px 20px 12px; - border-bottom: 1px solid var(--border-subtle); - flex-shrink: 0; -} - -.header-title-row { - display: flex; - align-items: center; - gap: 10px; -} - -.header-text h2 { - font-size: 15px; - font-weight: 700; - letter-spacing: -0.01em; -} -.header-text p { - font-size: 11px; - color: var(--text-muted); - margin-top: 1px; -} - -.header-meta-pill { - display: flex; - align-items: center; - gap: 6px; - padding: 4px 10px; - background: rgba(255, 181, 71, 0.12); - border: 1px solid rgba(255, 181, 71, 0.3); - border-radius: var(--radius-pill); - font-size: 11px; - font-weight: 600; - color: var(--warning); -} - -.header-meta-pill .count-num { - font-size: 14px; - font-weight: 800; -} - -/* Action feedback */ -.action-feedback-banner { - display: flex; - align-items: center; - gap: 8px; - padding: 8px 20px; - background: rgba(32, 201, 151, 0.08); - border-bottom: 1px solid rgba(32, 201, 151, 0.2); - font-size: 12px; - color: var(--success); - flex-shrink: 0; -} - -/* Two-column layout */ -.review-queue-body { - flex: 1; - display: flex; - overflow: hidden; -} - -/* LEFT: slim list panel */ -.review-items-list { - width: 300px; - flex-shrink: 0; - display: flex; - flex-direction: column; - gap: 0; - overflow-y: auto; - border-right: 1px solid var(--border-subtle); - padding: 10px 10px 10px 10px; -} - -.review-list-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 4px 6px 10px; - border-bottom: 1px solid var(--border-subtle); - margin-bottom: 8px; -} - -.review-list-title { - font-size: 11px; - font-weight: 700; - letter-spacing: 0.05em; - color: var(--text-muted); -} - -.review-list-badge { - font-size: 10px; - font-weight: 700; - background: rgba(255, 181, 71, 0.15); - color: var(--warning); - padding: 1px 6px; - border-radius: 10px; -} - -.sidebar-version-row { - display: flex; - align-items: center; - justify-content: flex-end; - padding: 4px 8px; -} - -.collapsed-notif-dot { - position: absolute; - top: -2px; - right: -3px; - width: 7px; - height: 7px; - border-radius: 50%; - background: var(--warning); - border: 1.5px solid var(--bg-secondary); -} - -.review-card-item { - background: transparent; - border: 1px solid transparent; - border-radius: var(--radius-sm); - padding: 10px 12px; - display: flex; - flex-direction: column; - gap: 5px; - cursor: pointer; - transition: background 0.12s ease, border-color 0.12s ease; -} - -.review-card-item:hover { - background: var(--surface); - border-color: var(--border-subtle); -} - -.review-card-item.active { - background: var(--surface-elevated); - border-color: rgba(255, 181, 71, 0.5); -} - -.review-card-item.active .review-title { - color: var(--warning); -} - -.card-top { - display: flex; - justify-content: space-between; - align-items: center; -} - -.status-indicator-pill.awaiting { - font-size: 9px; - font-weight: 700; - color: var(--warning); - background: rgba(255, 181, 71, 0.12); - padding: 2px 6px; - border-radius: 10px; - letter-spacing: 0.03em; - text-transform: uppercase; -} - -.time-ago { - font-size: 10px; - color: var(--text-muted); - font-variant-numeric: tabular-nums; -} - -.review-title { - font-size: 12px; - font-weight: 600; - color: var(--text-primary); - line-height: 1.4; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.review-meta-row { - display: flex; - align-items: center; - gap: 6px; - font-size: 10px; - color: var(--text-muted); -} - -.repo-tag { - background: var(--surface-elevated); - padding: 1px 6px; - border-radius: 4px; -} - -.branch-tag { - display: flex; - align-items: center; - gap: 3px; - font-family: var(--font-mono); -} - -.stats-badges-row { - display: flex; - gap: 4px; - flex-wrap: wrap; -} - -.stat-pill { - font-family: var(--font-mono); - font-size: 9px; - padding: 1px 5px; - border-radius: 3px; - background: var(--surface-elevated); - color: var(--text-muted); - border: 1px solid var(--border-subtle); -} - -.stat-pill.files { color: var(--accent-primary); } -.stat-pill.tests { color: var(--success); } -.stat-pill.cost { color: var(--text-secondary); } - -/* RIGHT: detail panel */ -.review-detail-pane { - flex: 1; - overflow-y: auto; - padding: 20px 24px; - display: flex; - flex-direction: column; - gap: 16px; -} - -.review-detail-card { - display: flex; - flex-direction: column; - gap: 16px; - height: 100%; -} - -/* Top action bar: title + buttons in a row */ -.detail-top-bar { - display: flex; - align-items: flex-start; - justify-content: space-between; - gap: 16px; - padding-bottom: 16px; - border-bottom: 1px solid var(--border-subtle); -} - -.detail-title-col { - flex: 1; - min-width: 0; -} - -.eyebrow-tag { - font-size: 9px; - font-weight: 800; - color: var(--warning); - letter-spacing: 0.1em; - text-transform: uppercase; - margin-bottom: 4px; -} - -.detail-title-col h3 { - font-size: 16px; - font-weight: 700; - color: var(--text-primary); - line-height: 1.3; - margin-bottom: 6px; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.meta-chain { - display: flex; - align-items: center; - gap: 6px; - font-size: 11px; - color: var(--text-muted); - flex-wrap: wrap; -} - -.meta-chain .meta-badge { - display: inline-flex; - align-items: center; - gap: 3px; - background: var(--surface-elevated); - border: 1px solid var(--border-subtle); - padding: 2px 7px; - border-radius: 4px; - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-secondary); -} - -/* Decision buttons */ -.decision-actions { - display: flex; - gap: 8px; - flex-shrink: 0; - align-items: center; -} - -.btn-reject { - padding: 8px 14px; - background: transparent; - border: 1px solid rgba(255, 100, 124, 0.45); - color: var(--error); - font-weight: 600; - border-radius: var(--radius-sm); - font-size: 12px; - cursor: pointer; - transition: background 0.15s ease; -} -.btn-reject:hover { - background: rgba(255, 100, 124, 0.08); -} - -.btn-approve { - padding: 8px 18px; - background: var(--success); - color: #fff; - font-weight: 700; - border-radius: var(--radius-sm); - font-size: 12px; - cursor: pointer; - border: none; - display: flex; - align-items: center; - gap: 6px; - transition: opacity 0.15s ease, transform 0.1s ease; -} -.btn-approve:hover { - opacity: 0.9; - transform: translateY(-1px); -} - -/* Summary section */ -.review-summary-section h4 { - font-size: 11px; - font-weight: 700; - color: var(--text-muted); - letter-spacing: 0.08em; - text-transform: uppercase; - margin-bottom: 10px; -} - -.summary-metrics-grid { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 10px; -} - -.metric-box { - background: var(--surface); - border: 1px solid var(--border-subtle); - border-radius: var(--radius-sm); - padding: 12px 14px; - display: flex; - flex-direction: column; - gap: 3px; -} - -.metric-label { - font-size: 9px; - font-weight: 800; - color: var(--text-muted); - letter-spacing: 0.08em; - text-transform: uppercase; -} - -.metric-val { - font-size: 13px; - font-weight: 700; - color: var(--text-primary); -} - -.metric-sub { - font-size: 10px; - color: var(--text-muted); - font-family: var(--font-mono); -} - -.spec-text { - font-size: 12px; - color: var(--text-secondary); - line-height: 1.5; - margin: 0; -} - -/* Footer inspect link */ -.review-footer-action { - display: flex; - align-items: center; - gap: 8px; - padding: 12px 16px; - background: var(--surface); - border: 1px solid var(--border-subtle); - border-radius: var(--radius-sm); - font-size: 12px; - color: var(--text-muted); -} - -.btn-link-inspect { - background: none; - border: none; - color: var(--accent-primary); - font-size: 12px; - font-weight: 600; - cursor: pointer; - padding: 0; - text-decoration: underline; - text-underline-offset: 2px; -} - -.btn-link-inspect:hover { - opacity: 0.8; -} - -/* Empty state */ -.review-empty-state-card { - margin: 40px auto; - max-width: 400px; - text-align: center; - display: flex; - flex-direction: column; - align-items: center; - gap: 12px; - padding: 40px 24px; -} - -.empty-state-icon { - width: 56px; - height: 56px; - border-radius: 50%; - background: rgba(32, 201, 151, 0.1); - display: flex; - align-items: center; - justify-content: center; - margin-bottom: 4px; -} - -.review-empty-state-card h3 { - font-size: 15px; - font-weight: 700; - color: var(--text-primary); -} - -.review-empty-state-card p { - font-size: 12px; - color: var(--text-muted); - line-height: 1.6; -} - -.empty-state-hint { - font-size: 11px; - color: var(--text-muted); - padding: 6px 12px; - background: var(--surface); - border-radius: var(--radius-sm); -} - -.summary-boxes-grid { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 10px; - margin-top: 12px; -} - -.summary-box { - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 10px; -} - -.summary-box .label { font-size: 9px; color: var(--text-muted); font-weight: 700; } -.summary-box .value { font-size: 13px; margin: 2px 0; display: block; } -.summary-box .value.green { color: var(--success); } -.summary-box .sub { font-size: 10px; color: var(--text-secondary); } - -.diff-inspect-cta { - margin-top: 24px; - padding: 16px; - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - display: flex; - align-items: center; - justify-content: space-between; -} - -/* ========================================================================== - TERMINAL DOCK (Bottom Dock Bar from Screenshot 1) - ========================================================================== */ -.terminal-dock-container { - position: absolute; - bottom: 0; - left: 0; - right: 0; - background: var(--bg-secondary); - border-top: 1px solid var(--border); - z-index: 90; - display: flex; - flex-direction: column; - transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1); -} - -.terminal-dock-container.collapsed { - height: 36px; -} - -.terminal-dock-container.open { - height: 240px; -} - -.terminal-dock-bar { - height: 36px; - padding: 0 16px; - display: flex; - align-items: center; - justify-content: space-between; - cursor: pointer; - user-select: none; -} - -.dock-left { - display: flex; - align-items: center; - gap: 8px; -} - -.dock-title { - font-size: 11px; - font-weight: 600; - color: var(--text-secondary); -} - -.dock-status-dot { - width: 6px; - height: 6px; - border-radius: 50%; - background: var(--success); -} - -.dock-right { - display: flex; - align-items: center; - gap: 10px; -} - -.dock-shortcut { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-muted); -} - -.dock-arrow { - transition: transform 0.2s ease; -} - -.dock-arrow.open { - transform: rotate(180deg); -} - -.terminal-dock-content { - flex: 1; - background: #0d0e12; - display: flex; - flex-direction: column; - overflow: hidden; -} - -.terminal-scroll-view { - flex: 1; - overflow-y: auto; - padding: 8px 16px; - font-family: var(--font-mono); - font-size: 11px; - line-height: 1.6; -} - -.term-line code { color: #abb2bf; } - -.terminal-input-bar { - display: flex; - align-items: center; - padding: 6px 16px; - border-top: 1px solid var(--border-subtle); - background: var(--surface); -} - -.term-prompt { - font-family: var(--font-mono); - font-size: 11px; - color: var(--accent-secondary); - margin-right: 8px; -} - -.terminal-input-bar input { - flex: 1; - background: transparent; - border: none; - box-shadow: none; - font-family: var(--font-mono); - font-size: 11px; - padding: 0; -} - -/* ========================================================================== - COMMAND PALETTE (CTRL+K) - ========================================================================== */ -.palette-backdrop { - position: fixed; - inset: 0; - background: rgba(0, 0, 0, 0.65); - backdrop-filter: blur(4px); - z-index: 999; - display: flex; - align-items: flex-start; - justify-content: center; - padding-top: 12vh; -} - -.palette-dialog { - width: 580px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); - display: flex; - flex-direction: column; - overflow: hidden; -} - -.palette-input-wrap { - display: flex; - align-items: center; - gap: 10px; - padding: 12px 16px; - border-bottom: 1px solid var(--border); -} - -.palette-input { - flex: 1; - background: transparent; - border: none; - box-shadow: none; - font-size: 14px; -} - -.palette-results { - max-height: 320px; - overflow-y: auto; - padding: 6px; - display: flex; - flex-direction: column; - gap: 2px; -} - -.palette-item { - display: flex; - align-items: center; - gap: 10px; - padding: 8px 12px; - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-size: 12px; - text-align: left; -} - -.palette-item.active { - background: var(--surface-elevated); - color: var(--text-primary); -} - -.palette-item-icon { font-size: 14px; color: var(--accent-secondary); } -.palette-item-title { flex: 1; font-weight: 500; } -.palette-item-cat { font-size: 10px; color: var(--text-muted); } - -.palette-footer { - display: flex; - align-items: center; - justify-content: space-between; - padding: 8px 16px; - border-top: 1px solid var(--border-subtle); - background: var(--bg-secondary); - font-size: 11px; - color: var(--text-muted); -} - -/* ========================================================================== - SPLASH SCREEN - ========================================================================== */ -.splash-screen-overlay { - position: fixed; - inset: 0; - background: var(--bg-main); - z-index: 10000; - display: flex; - align-items: center; - justify-content: center; - transition: opacity 0.4s ease, visibility 0.4s ease; -} - -.splash-screen-overlay.fade-out { - opacity: 0; - visibility: hidden; -} - -.splash-content-box { - display: flex; - flex-direction: column; - align-items: center; - text-align: center; - max-width: 360px; -} - -.splash-logo-wrapper { - width: 80px; - height: 80px; - border-radius: 20px; - background: var(--surface); - border: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: center; - overflow: hidden; - margin-bottom: 16px; - box-shadow: 0 8px 24px rgba(39, 183, 245, 0.2); -} - -.splash-logo-image { - width: 100%; - height: 100%; - object-fit: cover; -} - -.splash-brand-title { - font-size: 22px; - font-weight: 700; - letter-spacing: -0.01em; -} - -.splash-accent { color: var(--accent-secondary); } - -.splash-tagline { - font-size: 13px; - color: var(--text-secondary); - margin: 4px 0 20px; -} - -.splash-loader-bar { - width: 180px; - height: 3px; - background: var(--surface-elevated); - border-radius: 2px; - overflow: hidden; - margin-bottom: 12px; -} - -.splash-loader-indicator { - height: 100%; - width: 40%; - background: var(--accent-gradient); - border-radius: 2px; - animation: splashLoad 1.2s infinite ease-in-out; -} - -@keyframes splashLoad { - 0% { transform: translateX(-100%); } - 100% { transform: translateX(350%); } -} - -.splash-status-text { - font-size: 10px; - color: var(--text-muted); -} - -/* ========================================================================== - MISC WORKSPACE SUBPAGES & CARDS - ========================================================================== */ -.workspace-subpage-container { - padding: 24px 32px; - max-width: 1200px; - margin: 0 auto; - display: flex; - flex-direction: column; - gap: 20px; -} - -.subpage-header { - display: flex; - flex-direction: column; - gap: 4px; -} - -.subpage-title-row { - display: flex; - align-items: center; - gap: 8px; -} - -.subpage-title-row h2 { font-size: 18px; font-weight: 700; } -.subpage-header p { font-size: 12px; color: var(--text-secondary); } - -.memory-cards-grid, .environments-grid, .integrations-grid, .security-cards-grid { - display: grid; - grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); - gap: 16px; -} - -.memory-card, .env-card, .integration-card, .security-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - display: flex; - flex-direction: column; - gap: 8px; -} - -.memory-card h3, .env-card h3, .security-card h3 { font-size: 13px; font-weight: 700; } - -.memory-card ul { - padding-left: 18px; - font-size: 12px; - color: var(--text-secondary); - display: flex; - flex-direction: column; - gap: 6px; -} - -.symbols-table { - display: flex; - flex-direction: column; - gap: 4px; - font-family: var(--font-mono); - font-size: 11px; -} - -.sym-row { - display: flex; - justify-content: space-between; - padding: 4px 6px; - background: var(--surface-elevated); - border-radius: 4px; -} - -.runtime-terminal-card { - background: #0f1013; - border: 1px solid var(--border); - border-radius: var(--radius-md); - overflow: hidden; -} - -.runtime-head { - padding: 8px 14px; - background: var(--surface); - border-bottom: 1px solid var(--border); - display: flex; - justify-content: space-between; - font-size: 11px; - font-family: var(--font-mono); -} - -.live-status { color: var(--success); } - -.runtime-logs-scroll { - padding: 16px; - font-family: var(--font-mono); - font-size: 11px; - color: #abb2bf; - line-height: 1.6; -} - -/* Settings View Layout */ -.settings-view-layout { - display: flex; - height: 100%; -} - -.settings-subnav { - width: 220px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - padding: 20px 12px; - display: flex; - flex-direction: column; - gap: 12px; -} - -.settings-subnav h3 { font-size: 14px; padding-left: 8px; } - -.settings-nav-list { - display: flex; - flex-direction: column; - gap: 2px; -} - -.settings-nav-btn { - width: 100%; - display: flex; - align-items: center; - gap: 8px; - padding: 8px 10px; - border-radius: var(--radius-sm); - color: var(--text-secondary); - font-size: 12px; -} - -.settings-nav-btn:hover { background: var(--surface); color: var(--text-primary); } -.settings-nav-btn.active { background: var(--surface-elevated); color: var(--text-primary); font-weight: 600; } - -.settings-content-pane { - flex: 1; - padding: 28px 36px; - overflow-y: auto; -} - -.settings-section-card { - max-width: 640px; - display: flex; - flex-direction: column; - gap: 16px; -} - -.section-sub { font-size: 12px; color: var(--text-secondary); } - -.profile-identity-card { - display: flex; - align-items: center; - gap: 14px; - padding: 14px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); -} - -.user-avatar-lg { - width: 44px; - height: 44px; - border-radius: 50%; - background: var(--surface-elevated); - border: 1px solid var(--accent-secondary); - color: var(--accent-secondary); - font-size: 18px; - font-weight: 700; - display: flex; - align-items: center; - justify-content: center; -} - -.shortcuts-table { - display: flex; - flex-direction: column; - border: 1px solid var(--border); - border-radius: var(--radius-sm); - overflow: hidden; -} - -.shortcut-row { - display: flex; - align-items: center; - justify-content: space-between; - padding: 10px 14px; - border-bottom: 1px solid var(--border-subtle); - font-size: 12px; -} - -.shortcut-row:last-child { border-bottom: none; } - -/* Notice Banner */ -.notice-banner-row { - padding: 8px 16px; - background: rgba(39, 183, 245, 0.12); - border-bottom: 1px solid rgba(39, 183, 245, 0.3); - color: var(--accent-secondary); - font-size: 12px; - display: flex; - align-items: center; - justify-content: space-between; -} - - -/* ========================================================================== - PROJECTS VIEW LAYOUT & CARDS (Fixing Unstyled Projects Screen) - ========================================================================== */ -.projects-view-layout { - display: flex; - height: 100%; - width: 100%; - overflow: hidden; - background: var(--bg-main); -} - -.projects-list-sidebar { - width: 280px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - flex-shrink: 0; -} - -.list-sidebar-header { - padding: 16px 14px 12px; - border-bottom: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - gap: 10px; -} - -.list-sidebar-header .title-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.list-sidebar-header h2 { - font-size: 15px; - font-weight: 700; - color: var(--text-primary); -} - -.btn-icon-add { - width: 26px; - height: 26px; - border-radius: var(--radius-sm); - background: var(--accent-primary); - color: #fff; - display: flex; - align-items: center; - justify-content: center; -} - -.btn-icon-add:hover { - background: #1ea0db; -} - -.search-input-wrap { - display: flex; - align-items: center; - gap: 8px; - padding: 6px 10px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); -} - -.search-input-wrap input { - background: transparent; - border: none; - box-shadow: none; - font-size: 12px; - padding: 0; - width: 100%; -} - -.projects-list-items { - flex: 1; - overflow-y: auto; - padding: 8px; - display: flex; - flex-direction: column; - gap: 4px; -} - -.project-sidebar-item { - display: flex; - align-items: center; - gap: 10px; - padding: 9px 12px; - border-radius: var(--radius-sm); - background: var(--surface); - border: 1px solid var(--border-subtle); - text-align: left; - cursor: pointer; - transition: all 0.15s ease; -} - -.project-sidebar-item:hover { - background: var(--surface-hover); - border-color: var(--border); -} - -.project-sidebar-item.active { - background: var(--surface-elevated); - border-color: var(--accent-secondary); - border-left: 3px solid var(--accent-secondary); -} - -.project-avatar-box { - width: 30px; - height: 30px; - border-radius: var(--radius-sm); - background: var(--surface-elevated); - border: 1px solid var(--border); - color: var(--accent-secondary); - font-weight: 700; - font-size: 13px; - display: flex; - align-items: center; - justify-content: center; - flex-shrink: 0; -} - -.project-sidebar-info { - flex: 1; - display: flex; - flex-direction: column; - overflow: hidden; -} - -.project-sidebar-info strong { - font-size: 12px; - color: var(--text-primary); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.project-sidebar-info small { - font-size: 10px; - color: var(--text-muted); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.runs-counter { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-muted); - background: var(--surface-elevated); - padding: 2px 6px; - border-radius: 4px; -} - -/* Project Detail Main Panel */ -.project-detail-panel { - flex: 1; - display: flex; - flex-direction: column; - background: var(--bg-main); - overflow-y: auto; -} - -.project-main-header { - padding: 24px 32px 18px; - border-bottom: 1px solid var(--border-subtle); - display: flex; - align-items: flex-start; - justify-content: space-between; - background: var(--bg-secondary); -} - -.header-meta { - display: flex; - flex-direction: column; - gap: 6px; -} - -.header-meta .badge-row { - display: flex; - align-items: center; - gap: 8px; -} - -.repo-type-tag { - font-family: var(--font-mono); - font-size: 9px; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--accent-secondary); - background: rgba(39, 183, 245, 0.12); - padding: 2px 6px; - border-radius: 4px; -} - -.branch-tag { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-secondary); - background: var(--surface); - padding: 2px 8px; - border-radius: 4px; - border: 1px solid var(--border-subtle); - display: flex; - align-items: center; - gap: 4px; -} - -.project-main-header h1 { - font-size: 22px; - font-weight: 700; - color: var(--text-primary); - letter-spacing: -0.01em; -} - -.repo-path-label { - font-family: var(--font-mono); - font-size: 12px; - color: var(--text-muted); - display: flex; - align-items: center; - gap: 6px; -} - -.header-actions .btn-primary { - padding: 8px 16px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-size: 12px; - font-weight: 600; - display: flex; - align-items: center; - gap: 6px; -} - -.header-actions .btn-primary:hover { - background: #1ea0db; -} - -/* Project Tabs Navigation */ -.project-tabs-nav { - display: flex; - align-items: center; - padding: 0 32px; - background: var(--bg-secondary); - border-bottom: 1px solid var(--border); - gap: 4px; -} - -.project-tabs-nav .tab-btn { - padding: 12px 16px; - font-size: 12px; - font-weight: 500; - color: var(--text-muted); - position: relative; -} - -.project-tabs-nav .tab-btn:hover { - color: var(--text-primary); -} - -.project-tabs-nav .tab-btn.active { - color: var(--text-primary); - font-weight: 600; -} - -.project-tabs-nav .tab-btn.active::after { - content: ""; - position: absolute; - bottom: 0; - left: 12px; - right: 12px; - height: 2px; - background: var(--accent-secondary); -} - -/* Tab Content Areas */ -.project-tab-content { - padding: 24px 32px; - flex: 1; -} - -.overview-tab-pane { - display: flex; - flex-direction: column; - gap: 24px; -} - -.overview-stats-grid { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 14px; -} - -.stat-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - display: flex; - flex-direction: column; - gap: 4px; -} - -.stat-label { - font-size: 10px; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--text-muted); -} - -.stat-val { - font-size: 18px; - font-weight: 700; - color: var(--text-primary); - font-family: var(--font-mono); -} - -.stat-sub { - font-size: 11px; - color: var(--text-secondary); -} - -.recent-runs-block { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 20px; -} - -.recent-runs-block h3 { - font-size: 14px; - font-weight: 700; - margin-bottom: 14px; -} - -.runs-table { - display: flex; - flex-direction: column; - gap: 6px; -} - -.run-row { - display: flex; - align-items: center; - gap: 12px; - padding: 10px 14px; - background: var(--surface-elevated); - border-radius: var(--radius-sm); - cursor: pointer; - transition: all 0.15s ease; -} - -.run-row:hover { - background: var(--surface-hover); -} - -.run-main { - flex: 1; - display: flex; - flex-direction: column; -} - -.run-main strong { - font-size: 12px; - color: var(--text-primary); -} - -.run-main small { - font-size: 11px; - color: var(--text-muted); -} - -.run-cost { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-secondary); -} - -.run-time { - font-size: 11px; - color: var(--text-muted); -} - -.empty-runs-card { - padding: 32px; - text-align: center; - color: var(--text-muted); - display: flex; - flex-direction: column; - align-items: center; - gap: 12px; -} - -/* Tasks Tab inside Project */ -.tasks-pane-toolbar { - display: flex; - align-items: center; - justify-content: space-between; - margin-bottom: 16px; -} - -.tasks-list-cards { - display: flex; - flex-direction: column; - gap: 8px; -} - -.project-task-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 14px 16px; - cursor: pointer; - display: flex; - flex-direction: column; - gap: 6px; -} - -.project-task-card:hover { - background: var(--surface-hover); - border-color: var(--border-focus); -} - -.task-card-top { - display: flex; - justify-content: space-between; -} - -.status-pill { - font-size: 10px; - font-family: var(--font-mono); - padding: 2px 8px; - border-radius: 4px; -} - -.status-pill.running { background: rgba(39, 183, 245, 0.12); color: var(--accent-secondary); } -.status-pill.awaiting_approval { background: var(--warning-bg); color: var(--warning); } -.status-pill.completed { background: var(--success-bg); color: var(--success); } -.status-pill.failed { background: var(--error-bg); color: var(--error); } - -.cost-tag { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-muted); -} - -.task-card-bottom { - display: flex; - gap: 12px; - font-size: 11px; - color: var(--text-muted); - border-top: 1px solid var(--border-subtle); - padding-top: 6px; - margin-top: 4px; -} - -.repo-info-card, .workflow-card-item, .memory-box { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 20px; -} - -.repo-info-row { - display: flex; - align-items: center; - gap: 12px; - padding: 10px 0; - border-bottom: 1px solid var(--border-subtle); - font-size: 12px; -} - -.repo-info-row span { - width: 160px; - color: var(--text-muted); -} - -.repo-info-row code { - font-family: var(--font-mono); - color: var(--text-code); -} - -.sync-status.online { - color: var(--success); - font-weight: 600; -} - -/* ========================================================================== - NEW TASK COMPOSER PAGE (Fixing Unstyled New Task Screen) - ========================================================================== */ -.new-task-page-wrapper { - padding: 28px 36px; - max-width: 960px; - margin: 0 auto; - overflow-y: auto; - height: 100%; -} - -.new-task-container { - display: flex; - flex-direction: column; - gap: 20px; -} - -.new-task-header { - display: flex; - flex-direction: column; - gap: 8px; -} - -.btn-back-link { - font-size: 12px; - color: var(--accent-secondary); - width: fit-content; - cursor: pointer; - padding: 0; -} - -.btn-back-link:hover { - text-decoration: underline; -} - -.header-title-block h1 { - font-size: 24px; - font-weight: 700; - letter-spacing: -0.01em; - color: var(--text-primary); -} - -.header-title-block p { - font-size: 13px; - color: var(--text-secondary); - margin-top: 4px; -} - -.new-task-alert { - display: flex; - align-items: center; - gap: 10px; - padding: 12px 16px; - border-radius: var(--radius-sm); - font-size: 12px; -} - -.new-task-alert.offline { - background: rgba(255, 100, 124, 0.12); - border: 1px solid rgba(255, 100, 124, 0.3); - color: var(--error); -} - -.new-task-alert.error { - background: var(--error-bg); - border: 1px solid rgba(255, 100, 124, 0.3); - color: var(--error); -} - -.new-task-form { - display: flex; - flex-direction: column; - gap: 16px; -} - -.composer-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 20px; - display: flex; - flex-direction: column; - gap: 12px; - box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2); -} - -.composer-card-header { - display: flex; - align-items: center; - justify-content: space-between; -} - -.composer-card-header label { - font-size: 13px; - font-weight: 600; - color: var(--text-primary); -} - -.helper-tag { - font-size: 11px; - color: var(--text-muted); -} - -.prompt-textarea { - width: 100%; - padding: 14px 16px; - background: var(--bg-main); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-primary); - font-size: 13px; - line-height: 1.6; - resize: vertical; - min-height: 130px; -} - -.prompt-textarea:focus { - border-color: var(--border-focus); - box-shadow: 0 0 0 2px var(--accent-glow); -} - -.repo-path-row { - display: flex; - align-items: center; - gap: 12px; - padding-top: 6px; -} - -.repo-input-wrap { - flex: 1; - display: flex; - align-items: center; - gap: 10px; - padding: 8px 12px; - background: var(--bg-main); - border: 1px solid var(--border); - border-radius: var(--radius-sm); -} - -.repo-input-wrap input { - flex: 1; - background: transparent; - border: none; - box-shadow: none; - font-family: var(--font-mono); - font-size: 12px; - padding: 0; -} - -.repo-badge { - font-size: 11px; - color: var(--text-muted); - background: var(--surface-elevated); - padding: 6px 12px; - border-radius: var(--radius-sm); - border: 1px solid var(--border-subtle); - white-space: nowrap; -} - -.config-grid-cards { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 16px; -} - -.config-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - display: flex; - flex-direction: column; - gap: 8px; -} - -.config-card-header { - display: flex; - align-items: center; - gap: 8px; -} - -.config-card-header label { - font-size: 12px; - font-weight: 600; - color: var(--text-primary); -} - -.config-card select { - padding: 8px 10px; - font-size: 12px; -} - -.config-note { - font-size: 11px; - color: var(--text-muted); -} - -.advanced-routing-accordion { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 14px 16px; -} - -.accordion-toggle-btn { - width: 100%; - display: flex; - align-items: center; - justify-content: space-between; - font-size: 12px; - font-weight: 600; - color: var(--text-secondary); -} - -.accordion-toggle-btn:hover { - color: var(--text-primary); -} - -.badge-optional { - font-size: 10px; - background: var(--surface-elevated); - padding: 2px 8px; - border-radius: 4px; - color: var(--accent-secondary); -} - -.phase-routing-grid { - display: grid; - grid-template-columns: repeat(5, 1fr); - gap: 10px; - margin-top: 14px; - padding-top: 14px; - border-top: 1px solid var(--border-subtle); -} - -.phase-config-item { - display: flex; - flex-direction: column; - gap: 4px; -} - -.phase-item-label { - font-size: 9px; - font-weight: 700; - letter-spacing: 0.08em; - color: var(--text-muted); -} - -.phase-config-item select { - font-size: 11px; - padding: 6px; -} - -.composer-actions-bar { - display: flex; - align-items: center; - justify-content: flex-end; - gap: 12px; - margin-top: 8px; -} - -.btn-cancel { - padding: 10px 18px; - font-size: 12px; - font-weight: 600; - color: var(--text-muted); - border-radius: var(--radius-sm); -} - -.btn-cancel:hover { - color: var(--text-primary); -} - -.btn-submit-task { - display: flex; - align-items: center; - gap: 8px; - padding: 10px 22px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-size: 13px; - font-weight: 600; - box-shadow: 0 4px 16px rgba(120, 87, 255, 0.35); -} - -.btn-submit-task:hover:not(:disabled) { - background: #1ea0db; - box-shadow: 0 6px 20px rgba(120, 87, 255, 0.5); - transform: translateY(-1px); -} - -.btn-submit-task:disabled { - opacity: 0.5; - cursor: not-allowed; -} - -/* ========================================================================== - AUTHENTICATION MODAL DIALOG (Centered, Beautiful, Fields First) - ========================================================================== */ -.auth-modal-backdrop { - position: fixed; - inset: 0; - background: rgba(0, 0, 0, 0.75); - backdrop-filter: blur(8px); - z-index: 10000; - display: flex; - align-items: center; - justify-content: center; - padding: 20px; -} - -.auth-dialog-card { - width: 440px; - max-width: 95vw; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-lg); - box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); - padding: 28px; - display: flex; - flex-direction: column; - gap: 16px; - position: relative; - overflow: hidden; -} - -.auth-dialog-header { - display: flex; - align-items: flex-start; - justify-content: space-between; -} - -.auth-brand-head { - display: flex; - align-items: center; - gap: 14px; -} - -.auth-head-text h2 { - font-size: 17px; - font-weight: 700; - color: var(--text-primary); - letter-spacing: -0.01em; -} - -.auth-head-text p { - font-size: 12px; - color: var(--text-muted); - margin-top: 2px; -} - -.auth-close-btn { - font-size: 20px; - color: var(--text-muted); - width: 28px; - height: 28px; - border-radius: var(--radius-sm); - display: flex; - align-items: center; - justify-content: center; -} - -.auth-close-btn:hover { - background: var(--surface-elevated); - color: var(--text-primary); -} - -.auth-notice-alert { - padding: 10px 12px; - background: var(--warning-bg); - border: 1px solid rgba(255, 181, 71, 0.3); - color: var(--warning); - font-size: 11px; - border-radius: var(--radius-sm); -} - -.auth-notice-alert.offline { - background: rgba(39, 183, 245, 0.12); - border-color: rgba(39, 183, 245, 0.3); - color: var(--accent-secondary); -} - -.auth-error-banner { - padding: 10px 12px; - background: var(--error-bg); - border: 1px solid rgba(255, 100, 124, 0.3); - color: var(--error); - font-size: 11px; - border-radius: var(--radius-sm); -} - -/* Fields Form (Rendered First) */ -.auth-form-fields { - display: flex; - flex-direction: column; - gap: 12px; -} - -.auth-field-group { - display: flex; - flex-direction: column; - gap: 5px; -} - -.auth-field-group label { - font-size: 11px; - font-weight: 600; - color: var(--text-secondary); -} - -.label-with-link { - display: flex; - justify-content: space-between; - align-items: center; -} - -.auth-link-subtle { - font-size: 11px; - color: var(--accent-secondary); - cursor: pointer; - padding: 0; -} - -.auth-link-subtle:hover { - text-decoration: underline; -} - -.auth-field-group input { - padding: 9px 12px; - background: var(--bg-main); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - font-size: 13px; -} - -.auth-field-group input:focus { - border-color: var(--accent-secondary); -} - -.auth-submit-btn { - margin-top: 4px; - padding: 10px; - background: var(--accent-primary); - color: #fff; - border-radius: var(--radius-sm); - font-size: 13px; - font-weight: 600; - box-shadow: 0 4px 14px rgba(120, 87, 255, 0.35); -} - -.auth-submit-btn:hover:not(:disabled) { - background: #1ea0db; -} - -/* Social Auth Row (Rendered Second, after input fields) */ -.auth-divider-line { - display: flex; - align-items: center; - text-align: center; - color: var(--text-muted); - font-size: 11px; - margin: 4px 0; -} - -.auth-divider-line::before, .auth-divider-line::after { - content: ""; - flex: 1; - border-bottom: 1px solid var(--border-subtle); -} - -.auth-divider-line span { - padding: 0 10px; -} - -.auth-social-buttons-row { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 10px; -} - -.auth-social-btn { - display: flex; - align-items: center; - justify-content: center; - gap: 8px; - padding: 9px; - background: var(--surface-elevated); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-primary); - font-size: 12px; - font-weight: 500; -} - -.auth-social-btn:hover { - background: var(--surface-hover); - border-color: var(--border-focus); -} - -.auth-dialog-footer { - text-align: center; - font-size: 12px; - color: var(--text-muted); - border-top: 1px solid var(--border-subtle); - padding-top: 12px; -} - -.auth-switch-link { - color: var(--accent-secondary); - font-weight: 600; - cursor: pointer; - padding: 0; -} - -.auth-switch-link:hover { - text-decoration: underline; -} - -/* ========================================================================== - CLEAN & SLEEK MODERN WORKSPACE OVERHAUL - ========================================================================== */ -.clean-task-filters-row { - display: flex; - gap: 4px; - background: var(--surface); - border: 1px solid var(--border-subtle); - border-radius: var(--radius-sm); - padding: 2px; -} - -.filter-pill { - flex: 1; - padding: 4px 6px; - border-radius: 4px; - font-size: 10px; - font-weight: 500; - color: var(--text-muted); - text-align: center; -} - -.filter-pill.active { - background: var(--surface-elevated); - color: var(--text-primary); - font-weight: 600; -} - -.task-clean-row { - display: flex; - align-items: center; - gap: 10px; - padding: 8px 10px; - border-radius: var(--radius-sm); - background: var(--surface); - border: 1px solid var(--border-subtle); - cursor: pointer; - transition: all 0.15s ease; -} - -.task-clean-row:hover { - background: var(--surface-hover); - border-color: var(--border); -} - -.task-clean-row.selected { - background: var(--surface-elevated); - border-color: var(--accent-secondary); -} - -.status-indicator-dot-sm { - width: 7px; - height: 7px; - border-radius: 50%; - display: block; -} - -.status-indicator-dot-sm.running { background: var(--accent-secondary); box-shadow: 0 0 6px var(--accent-secondary); } -.status-indicator-dot-sm.waiting { background: var(--warning); box-shadow: 0 0 6px var(--warning); } -.status-indicator-dot-sm.done { background: var(--success); } -.status-indicator-dot-sm.failed { background: var(--error); } -.status-indicator-dot-sm.idle { background: var(--text-muted); } - -.task-row-content { - flex: 1; - display: flex; - flex-direction: column; - overflow: hidden; -} - -.task-row-title { - font-size: 12px; - font-weight: 500; - color: var(--text-primary); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.task-row-sub { - font-size: 10px; - color: var(--text-muted); - display: flex; - gap: 4px; - align-items: center; -} - -.task-row-cost { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-muted); -} - -.tasks-empty-hint { - padding: 24px 12px; - text-align: center; - font-size: 11px; - color: var(--text-muted); -} - -/* Center Feed Clean Elements */ -.center-panel-header-clean { - padding: 12px 18px; - border-bottom: 1px solid var(--border-subtle); - background: var(--bg-secondary); - display: flex; - align-items: center; - justify-content: space-between; -} - -.header-breadcrumbs { - display: flex; - align-items: center; - gap: 6px; - font-size: 12px; -} - -.repo-pill { - font-weight: 700; - color: var(--text-primary); -} - -.crumb-slash { - color: var(--border); -} - -.branch-label { - font-family: var(--font-mono); - font-size: 11px; - color: var(--accent-secondary); - display: flex; - align-items: center; - gap: 4px; -} - -.status-badge-clean { - font-size: 10px; - font-weight: 700; - padding: 3px 8px; - border-radius: var(--radius-pill); - letter-spacing: 0.04em; - text-transform: uppercase; -} - -.status-badge-clean.running { background: rgba(39, 183, 245, 0.15); color: var(--accent-secondary); border: 1px solid rgba(39, 183, 245, 0.3); } -.status-badge-clean.awaiting_approval { background: var(--warning-bg); color: var(--warning); border: 1px solid rgba(255, 181, 71, 0.3); } -.status-badge-clean.approved, .status-badge-clean.completed { background: var(--success-bg); color: var(--success); } -.status-badge-clean.failed { background: var(--error-bg); color: var(--error); } - -.center-feed-scroll-clean { - flex: 1; - overflow-y: auto; - padding: 18px 24px; - display: flex; - flex-direction: column; - gap: 14px; -} - -.clean-user-prompt-banner { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 12px 16px; -} - -.prompt-label-row { - display: flex; - align-items: center; - gap: 6px; - font-size: 10px; - font-weight: 700; - letter-spacing: 0.06em; - color: var(--text-muted); - text-transform: uppercase; - margin-bottom: 4px; -} - -.prompt-content-text { - font-size: 13px; - color: var(--text-primary); - line-height: 1.5; -} - -.clean-agent-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - display: flex; - flex-direction: column; - gap: 14px; -} - -.clean-agent-card-header { - display: flex; - align-items: center; - justify-content: space-between; - border-bottom: 1px solid var(--border-subtle); - padding-bottom: 10px; -} - -.agent-title-group { - display: flex; - align-items: center; - gap: 10px; -} - -.agent-status-ring { - width: 10px; - height: 10px; - border-radius: 50%; - border: 2px solid var(--accent-secondary); - border-top-color: transparent; - animation: spin 1s linear infinite; -} - -.agent-title-group strong { - font-size: 13px; - color: var(--text-primary); - display: block; -} - -.agent-timing { - font-size: 10px; - color: var(--text-muted); -} - -.agent-progress-chip { - font-family: var(--font-mono); - font-size: 10px; - font-weight: 600; - padding: 3px 8px; - border-radius: 4px; - background: var(--surface-elevated); - color: var(--accent-secondary); -} - -.clean-steps-timeline { - display: flex; - flex-direction: column; - gap: 12px; - position: relative; - padding-left: 10px; -} - -.clean-steps-timeline::before { - content: ""; - position: absolute; - top: 10px; - bottom: 10px; - left: 18px; - width: 1px; - background: var(--border); -} - -.clean-step-item { - display: flex; - align-items: flex-start; - gap: 12px; - position: relative; - z-index: 1; -} - -.timeline-node { - width: 18px; - height: 18px; - border-radius: 50%; - background: var(--surface-elevated); - border: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: center; - font-size: 10px; - font-weight: 700; - flex-shrink: 0; -} - -.clean-step-item.done .timeline-node { - background: var(--success-bg); - border-color: var(--success); - color: var(--success); -} - -.clean-step-item.active .timeline-node { - background: rgba(39, 183, 245, 0.15); - border-color: var(--accent-secondary); - color: var(--accent-secondary); -} - -.step-content { - flex: 1; - display: flex; - flex-direction: column; - gap: 2px; -} - -.step-content strong { - font-size: 12px; - color: var(--text-primary); -} - -.step-content p { - font-size: 11px; - color: var(--text-muted); -} - -.clean-files-badges-row { - display: flex; - flex-wrap: wrap; - gap: 6px; - margin-top: 6px; -} - -.file-pill { - font-family: var(--font-mono); - font-size: 10px; - background: var(--surface-elevated); - border: 1px solid var(--border-subtle); - padding: 2px 6px; - border-radius: 4px; - display: inline-flex; - align-items: center; - gap: 4px; -} - -.diff-green { color: var(--success); font-weight: 600; } -.diff-red { color: var(--error); font-weight: 600; } - -.clean-prompt-dock { - padding: 10px 16px; - background: var(--bg-secondary); - border-top: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - gap: 8px; -} - -.dock-input-row { - display: flex; - align-items: center; - gap: 8px; -} - -.dock-input-row input { - flex: 1; - padding: 8px 12px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - font-size: 12px; -} - -.btn-send-guidance { - width: 32px; - height: 32px; - border-radius: var(--radius-sm); - background: var(--accent-primary); - display: flex; - align-items: center; - justify-content: center; -} - -.btn-send-guidance:disabled { - opacity: 0.4; - cursor: not-allowed; -} - -.dock-toolbar-row { - display: flex; - align-items: center; - justify-content: space-between; -} - -.dock-left-badges { - display: flex; - gap: 6px; -} - -.dock-badge { - font-size: 10px; - font-weight: 600; - padding: 2px 6px; - border-radius: 4px; - background: var(--surface); - color: var(--accent-secondary); - border: 1px solid var(--border-subtle); -} - -.dock-badge.subtle { - color: var(--text-muted); -} - -.dock-right-buttons { - display: flex; - gap: 6px; -} - -.btn-dock-stop { - padding: 4px 10px; - border-radius: var(--radius-sm); - background: var(--error-bg); - border: 1px solid rgba(255, 100, 124, 0.3); - color: var(--error); - font-size: 11px; - font-weight: 600; -} - -.btn-dock-approve { - padding: 4px 12px; - border-radius: var(--radius-sm); - background: var(--success); - color: #fff; - font-size: 11px; - font-weight: 600; -} - -/* Clean Phase Stepper (No Awkward Wrap on Right Panel) */ -.clean-phase-stepper { - display: flex; - align-items: center; - justify-content: space-between; - padding: 12px 14px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - overflow-x: auto; - white-space: nowrap; -} - -.stepper-item { - display: flex; - flex-direction: column; - align-items: center; - gap: 3px; - flex-shrink: 0; -} - -.stepper-dot { - width: 22px; - height: 22px; - border-radius: 50%; - background: var(--surface-elevated); - border: 1px solid var(--border); - display: flex; - align-items: center; - justify-content: center; - font-size: 10px; - font-weight: 700; -} - -.stepper-item.done .stepper-dot { - background: var(--success-bg); - border-color: var(--success); - color: var(--success); -} - -.stepper-item.active .stepper-dot { - background: rgba(39, 183, 245, 0.15); - border-color: var(--accent-secondary); - color: var(--accent-secondary); -} - -.stepper-name { - font-size: 10px; - font-weight: 600; -} - -.stepper-item small { - font-size: 8px; - color: var(--text-muted); -} - -.stepper-line { - flex: 1; - height: 2px; - background: var(--border); - margin: 0 6px; - min-width: 12px; -} - -.stepper-line.done { background: var(--success); } -.stepper-line.active { background: linear-gradient(90deg, var(--success), var(--accent-secondary)); } - -.clean-telemetry-grid { - display: grid; - grid-template-columns: 1fr 1fr; - gap: 10px; -} - -.telemetry-box { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 10px 12px; - display: flex; - flex-direction: column; - gap: 2px; -} - -.t-label { - font-size: 9px; - font-weight: 700; - letter-spacing: 0.06em; - color: var(--text-muted); -} - -.t-val { - font-size: 13px; - font-weight: 700; - color: var(--text-primary); -} - -.t-sub { - font-size: 10px; - color: var(--text-secondary); -} - -.clean-actions-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 14px; -} - -.clean-actions-card h4 { - font-size: 12px; - margin-bottom: 10px; -} - -.action-buttons-flex { - display: flex; - gap: 8px; -} - -.btn-clean-action { - flex: 1; - padding: 7px; - border-radius: var(--radius-sm); - font-size: 11px; - font-weight: 600; - text-align: center; -} - -.btn-clean-action.resume { - background: var(--surface-elevated); - border: 1px solid var(--border); -} - -.btn-clean-action.stop { - background: var(--error-bg); - border: 1px solid rgba(255, 100, 124, 0.3); - color: var(--error); -} - -.btn-clean-action.approve { - background: var(--success); - color: #fff; -} - - -/* Collapsed Sidebar Polish */ -.app-sidebar.collapsed .sidebar-brand-row { - justify-content: center; - padding: 12px 0; -} - -.app-sidebar.collapsed .sidebar-search-btn { - justify-content: center; - padding: 8px 0; -} - -.app-sidebar.collapsed .btn-sidebar-new { - padding: 8px 0; - justify-content: center; -} - -.app-sidebar.collapsed .nav-button { - justify-content: center; - padding: 8px 0; -} - -.app-sidebar.collapsed .nav-button .nav-btn-icon { - margin: 0; -} - -.app-sidebar.collapsed .sidebar-footer { - padding: 8px 4px; - align-items: center; -} - -.app-sidebar.collapsed .sidebar-collapse-row { - justify-content: center; - width: 100%; -} - -.app-sidebar.collapsed .daemon-status-bar { - justify-content: center; - padding: 6px 0; -} - -.app-sidebar.collapsed .sidebar-user-row { - justify-content: center; -} - - -/* ========================================================================== - WORKSPACE PANEL SIZING & SIDEBAR TOGGLE ARROWS - ========================================================================== */ -.modern-workspace-container { - display: flex; - width: 100%; - height: 100%; - overflow: hidden; - background: var(--bg-main); - position: relative; -} - -.workspace-left-panel { - width: 240px; - min-width: 240px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - transition: width 0.2s cubic-bezier(0.16, 1, 0.3, 1), min-width 0.2s cubic-bezier(0.16, 1, 0.3, 1); - overflow: hidden; -} - -.workspace-left-panel.collapsed { - width: 44px; - min-width: 44px; - background: var(--bg-secondary); -} - -.collapsed-tasks-strip { - display: flex; - flex-direction: column; - align-items: center; - padding: 10px 4px; - gap: 12px; - height: 100%; -} - -.collapsed-tasks-dots { - display: flex; - flex-direction: column; - gap: 8px; - overflow-y: auto; - align-items: center; -} - -.mini-task-dot-btn { - width: 28px; - height: 28px; - display: flex; - align-items: center; - justify-content: center; - border-radius: var(--radius-sm); - background: transparent; - transition: background 0.15s ease; -} - -.mini-task-dot-btn:hover { - background: var(--surface-hover); -} - -.mini-task-dot-btn.selected { - background: var(--surface-elevated); - box-shadow: 0 0 0 1px var(--accent-secondary); -} - -.left-panel-header-row { - display: flex; - align-items: center; - gap: 6px; - width: 100%; -} - -.left-panel-header-row .btn-workspace-new { - flex: 1; -} - -.btn-panel-arrow-toggle { - width: 28px; - height: 28px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 6px; - background: var(--surface-elevated); - border: 1px solid var(--border); - color: var(--text-secondary); - cursor: pointer; - flex-shrink: 0; - transition: all 0.15s ease; -} - -.btn-panel-arrow-toggle:hover { - background: var(--surface-hover); - color: var(--accent-secondary); - border-color: var(--accent-secondary); -} - -/* Right Panel Maximization */ -.workspace-right-panel { - flex: 1.3; - display: flex; - flex-direction: column; - background: var(--bg-main); - height: 100%; - overflow: hidden; - min-width: 0; - transition: flex 0.2s cubic-bezier(0.16, 1, 0.3, 1); -} - -.workspace-right-panel.maximized { - flex: 1; - width: 100%; -} - -.tabs-left-group { - display: flex; - align-items: center; - gap: 2px; - flex: 1; - overflow-x: auto; -} - -.tabs-right-actions { - display: flex; - align-items: center; - gap: 8px; -} - -.btn-panel-size-toggle { - display: inline-flex; - align-items: center; - gap: 6px; - padding: 4px 10px; - border-radius: 6px; - background: var(--surface-elevated); - border: 1px solid var(--border); - font-size: 11px; - font-weight: 500; - color: var(--text-secondary); - cursor: pointer; - transition: all 0.15s ease; -} - -.btn-panel-size-toggle:hover, -.btn-panel-size-toggle.active { - background: var(--surface-hover); - color: var(--accent-secondary); - border-color: var(--accent-secondary); -} - -.btn-restore-feed-hint { - display: inline-flex; - align-items: center; - gap: 4px; - padding: 4px 8px; - border-radius: 4px; - background: var(--surface-elevated); - border: 1px solid var(--border); - font-size: 11px; - color: var(--accent-secondary); - margin-right: 6px; - cursor: pointer; -} - -/* Changes Tab Adjustable Subcolumns */ -.changes-tab-panel { - display: flex; - flex-direction: column; - height: calc(100% - 41px); - overflow: hidden; -} - -.git-changes-layout { - display: flex; - width: 100%; - height: 100%; - overflow: hidden; - min-width: 0; -} - -.git-files-column { - width: 220px; - min-width: 220px; - background: var(--bg-secondary); - border-right: 1px solid var(--border-subtle); - display: flex; - flex-direction: column; - flex-shrink: 0; - transition: width 0.18s ease, min-width 0.18s ease; -} - -.git-files-column.collapsed { - width: 34px; - min-width: 34px; - overflow: hidden; -} - -.collapsed-files-strip { - display: flex; - flex-direction: column; - align-items: center; - padding: 8px 4px; - gap: 16px; - height: 100%; -} - -.collapsed-vertical-label { - writing-mode: vertical-rl; - text-orientation: mixed; - transform: rotate(180deg); - font-size: 10px; - color: var(--text-muted); - letter-spacing: 0.5px; - white-space: nowrap; -} - -.head-sub-actions { - display: flex; - align-items: center; - gap: 6px; -} - -.git-diff-column { - flex: 1; - min-width: 280px; - display: flex; - flex-direction: column; - background: var(--bg-main); - border-right: 1px solid var(--border-subtle); - overflow: hidden; -} - -.diff-header-right { - display: flex; - align-items: center; - gap: 8px; -} - -.btn-toggle-comments-open { - display: inline-flex; - align-items: center; - gap: 4px; - padding: 2px 8px; - border-radius: 4px; - background: var(--surface-elevated); - border: 1px solid var(--border); - font-size: 10px; - color: var(--accent-secondary); - cursor: pointer; -} - -.git-comments-column { - width: 260px; - min-width: 260px; - background: var(--bg-secondary); - display: flex; - flex-direction: column; - flex-shrink: 0; - overflow-y: auto; - border-left: 1px solid var(--border-subtle); -} - -.comments-head-row { - display: flex; - align-items: center; - justify-content: space-between; - padding: 8px 10px; - border-bottom: 1px solid var(--border-subtle); -} - -.head-actions { - display: flex; - align-items: center; - gap: 4px; -} - -.timeline-top-row { - display: flex; - align-items: center; - gap: 8px; - margin-bottom: 4px; -} - -.event-type-tag { - font-family: var(--font-mono); - font-size: 10px; - padding: 1px 6px; - border-radius: 3px; - background: var(--surface-elevated); - color: var(--accent-secondary); - border: 1px solid var(--border); -} - - -/* ========================================================================== - GLOBAL HIGH-CONTRAST LIGHT THEME REFINEMENT - Fixes invisible / pale text across Security, Projects, Dashboard, Workflows - ========================================================================== */ -.theme-light, -.app-shell.theme-light { - color: #121316 !important; - --bg-main: #f4f5f8; - --bg-secondary: #eaecf2; - --surface: #ffffff; - --surface-elevated: #f8f9fc; - --surface-hover: #edf0f7; - --border: #d0d5e2; - --border-subtle: #dfe3ec; - --text-primary: #121316; - --text-secondary: #3b4256; - --text-muted: #6b7280; -} - -.theme-light h1, -.theme-light h2, -.theme-light h3, -.theme-light h4, -.theme-light h5, -.theme-light h6, -.app-shell.theme-light h1, -.app-shell.theme-light h2, -.app-shell.theme-light h3, -.app-shell.theme-light h4, -.app-shell.theme-light h5, -.app-shell.theme-light h6 { - color: #121316 !important; -} - -.theme-light p, -.app-shell.theme-light p { - color: #3b4256 !important; -} - -.theme-light strong, -.app-shell.theme-light strong { - color: #121316 !important; -} - -.theme-light span, -.app-shell.theme-light span { - color: inherit; -} - -/* Subpage Containers (Security, Memory, Environments, Integrations) */ -.theme-light .workspace-subpage-container { - color: #121316 !important; -} - -.theme-light .subpage-header h2, -.theme-light .subpage-title-row h2 { - color: #121316 !important; -} - -.theme-light .subpage-header p { - color: #4b5266 !important; -} - -.theme-light .security-card, -.theme-light .memory-card, -.theme-light .env-card, -.theme-light .integration-card, -.theme-light .queue-table-card, -.theme-light .models-matrix-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; - box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); - color: #121316 !important; -} - -.theme-light .security-card h3, -.theme-light .memory-card h3, -.theme-light .env-card h3, -.theme-light .int-head strong { - color: #121316 !important; -} - -.theme-light .security-card p, -.theme-light .memory-card p, -.theme-light .env-card p, -.theme-light .integration-card p { - color: #3b4256 !important; -} - -.theme-light .sec-item { - color: #121316 !important; - border-color: #e2e5f0 !important; -} - -.theme-light .sec-item span { - color: #4b5266 !important; -} - -.theme-light .sec-item strong { - color: #121316 !important; -} - -/* Dashboard View in Light Theme */ -.theme-light .dashboard-title-row h1 { - color: #121316 !important; -} - -.theme-light .dashboard-sub { - color: #4b5266 !important; -} - -.theme-light .summary-pill-bar { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .summary-pill-item { - color: #3b4256 !important; -} - -.theme-light .summary-pill-item .pill-strong { - color: #121316 !important; -} - -.theme-light .project-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .card-top-row .card-title { - color: #121316 !important; -} - -.theme-light .card-desc { - color: #4b5266 !important; -} - -.theme-light .metric-item { - color: #4b5266 !important; -} - -.theme-light .metric-item strong { - color: #121316 !important; -} - -.theme-light .progress-track { - background: #e2e5f0 !important; -} - -/* Projects View in Light Theme */ -.theme-light .projects-list-sidebar { - background: #eaecf2 !important; - border-color: #d0d5e2 !important; -} - -.theme-light .list-sidebar-header h2 { - color: #121316 !important; -} - -.theme-light .project-sidebar-item { - color: #3b4256 !important; -} - -.theme-light .project-sidebar-item.active { - background: #ffffff !important; - color: #121316 !important; - border-color: #27B7F5 !important; -} - -.theme-light .project-sidebar-info strong { - color: #121316 !important; -} - -.theme-light .project-sidebar-info small { - color: #6b7280 !important; -} - -.theme-light .project-main-header h1 { - color: #121316 !important; -} - -.theme-light .repo-path-label { - color: #4b5266 !important; -} - -.theme-light .stat-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .stat-card .stat-label { - color: #6b7280 !important; -} - -.theme-light .stat-card .stat-val { - color: #121316 !important; -} - -.theme-light .stat-card .stat-sub { - color: #4b5266 !important; -} - -.theme-light .recent-runs-block h3 { - color: #121316 !important; -} - -.theme-light .run-row { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .run-main strong { - color: #121316 !important; -} - -.theme-light .run-main small { - color: #6b7280 !important; -} - -/* ModernWorkspace in Light Theme */ -.theme-light .task-clean-row { - border-color: #dfe3ec !important; -} - -.theme-light .task-clean-row:hover { - background: #f0f2f8 !important; -} - -.theme-light .task-clean-row.selected { - background: #ffffff !important; - border-color: #27B7F5 !important; -} - -.theme-light .task-row-title { - color: #121316 !important; -} - -.theme-light .task-row-sub { - color: #6b7280 !important; -} - -.theme-light .prompt-content-text { - color: #121316 !important; -} - -.theme-light .clean-user-prompt-banner { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .clean-agent-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .clean-agent-card-header strong { - color: #121316 !important; -} - -.theme-light .agent-timing { - color: #6b7280 !important; -} - -.theme-light .step-content strong { - color: #121316 !important; -} - -.theme-light .step-content p { - color: #3b4256 !important; -} - -.theme-light .telemetry-box { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .telemetry-box .t-label { - color: #6b7280 !important; -} - -.theme-light .telemetry-box .t-val { - color: #121316 !important; -} - -.theme-light .telemetry-box .t-sub { - color: #4b5266 !important; -} - -.theme-light .clean-actions-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .clean-actions-card h4 { - color: #121316 !important; -} - -/* Diff Viewer in Light Theme */ -.theme-light .diff-code-scroll { - background: #f8f9fb !important; -} - -.theme-light .diff-line-row.context { - color: #24292f !important; -} - -.theme-light .diff-line-row .line-num { - color: #94a3b8 !important; -} - -.theme-light .diff-line-row.added { - background: rgba(32, 201, 151, 0.16) !important; - color: #0b7a54 !important; -} - -.theme-light .diff-line-row.removed { - background: rgba(255, 100, 124, 0.16) !important; - color: #c91834 !important; -} - -.theme-light .diff-line-row.chunk-header { - background: #edf2ff !important; - color: #3730a3 !important; -} - -.theme-light .diff-header-bar { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .diff-filename { - color: #121316 !important; -} - -.theme-light .comment-card { - background: #ffffff !important; - border-color: #d0d5e2 !important; -} - -.theme-light .comment-file-link { - color: #121316 !important; -} - -.theme-light .comment-snippet { - background: #f1f3f8 !important; - border-color: #d0d5e2 !important; - color: #1c2030 !important; -} - -.theme-light .comment-body { - color: #24292f !important; -} - -/* Inputs, Textareas, Selects in Light Theme */ -.theme-light input, -.theme-light textarea, -.theme-light select { - background: #ffffff !important; - color: #121316 !important; - border-color: #d0d5e2 !important; -} - -.theme-light input::placeholder, -.theme-light textarea::placeholder { - color: #94a3b8 !important; -} - -/* Settings View in Light Theme */ -.theme-light .settings-subnav { - background: #eaecf2 !important; - border-color: #d0d5e2 !important; -} - -.theme-light .settings-nav-item { - color: #4b5266 !important; -} - -.theme-light .settings-nav-item.active { - background: #ffffff !important; - color: #121316 !important; -} - -.theme-light .settings-section h2, -.theme-light .settings-section h3 { - color: #121316 !important; -} - -.theme-light .field-label { - color: #121316 !important; -} - -.theme-light .field-help { - color: #6b7280 !important; -} - - -/* ========================================================================== - SCHEDULER & EXECUTION QUEUE TABLE STYLING - ========================================================================== */ -.queue-table-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - overflow: hidden; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); - margin-top: 10px; -} - -.queue-table-head { - display: grid; - grid-template-columns: 100px 2fr 1.5fr 130px 110px 120px; - gap: 12px; - padding: 12px 18px; - background: var(--surface-elevated); - border-bottom: 1px solid var(--border); - font-size: 11px; - font-weight: 700; - color: var(--text-muted); - text-transform: uppercase; - letter-spacing: 0.6px; -} - -.queue-row { - display: grid; - grid-template-columns: 100px 2fr 1.5fr 130px 110px 120px; - gap: 12px; - align-items: center; - padding: 12px 18px; - border-bottom: 1px solid var(--border-subtle); - font-size: 12px; - color: var(--text-primary); - transition: background 0.15s ease; -} - -.queue-row:last-child { - border-bottom: none; -} - -.queue-row:hover { - background: var(--surface-hover); -} - -.queue-row strong { - color: var(--text-primary); - font-weight: 600; -} - -.queue-row code { - font-family: var(--font-mono); - font-size: 11px; - color: var(--text-secondary); -} - -.priority-tag { - font-size: 10px; - font-weight: 700; - padding: 2px 8px; - border-radius: 4px; - display: inline-block; - width: fit-content; -} - -.priority-tag.high { - background: rgba(255, 100, 124, 0.15); - color: var(--error); - border: 1px solid rgba(255, 100, 124, 0.3); -} - -.priority-tag.normal { - background: rgba(39, 183, 245, 0.15); - color: var(--accent-secondary); - border: 1px solid rgba(39, 183, 245, 0.3); -} - -.priority-tag.low { - background: rgba(120, 87, 255, 0.15); - color: var(--accent-primary); - border: 1px solid rgba(120, 87, 255, 0.3); -} - -.status-cell { - font-size: 11px; - font-weight: 600; - padding: 2px 8px; - border-radius: 4px; - display: inline-block; - width: fit-content; -} - -.status-cell.running { - background: rgba(32, 201, 151, 0.15); - color: var(--success); - border: 1px solid rgba(32, 201, 151, 0.3); -} - -.status-cell.queued { - background: var(--surface-elevated); - color: var(--text-muted); - border: 1px solid var(--border); -} - -/* ========================================================================== - ARTIFACTS TAB STYLING - ========================================================================== */ -.artifacts-tab-panel { - padding: 20px; - height: calc(100% - 41px); - overflow-y: auto; -} - -.artifacts-list { - display: flex; - flex-direction: column; - gap: 12px; -} - -.artifact-item-card { - display: flex; - align-items: center; - gap: 14px; - padding: 14px 18px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - transition: all 0.15s ease; -} - -.artifact-item-card:hover { - background: var(--surface-elevated); - border-color: var(--accent-secondary); - box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12); -} - -.art-icon { - width: 38px; - height: 38px; - border-radius: 8px; - background: var(--surface-elevated); - display: flex; - align-items: center; - justify-content: center; - flex-shrink: 0; - border: 1px solid var(--border-subtle); -} - -.art-info { - flex: 1; - display: flex; - flex-direction: column; - gap: 3px; - overflow: hidden; -} - -.art-info strong { - font-size: 13px; - font-family: var(--font-mono); - color: var(--text-primary); - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; -} - -.art-info small { - font-size: 11px; - color: var(--text-secondary); -} - -.btn-art-action { - padding: 6px 14px; - border-radius: 6px; - background: var(--surface-elevated); - border: 1px solid var(--border); - font-size: 11px; - font-weight: 600; - color: var(--text-primary); - cursor: pointer; - transition: all 0.15s ease; - white-space: nowrap; -} - -.btn-art-action:hover { - background: var(--accent-primary); - color: #ffffff; - border-color: var(--accent-primary); -} - -/* ========================================================================== - SIDEBAR RESIZE HANDLE (Pointer with <|> col-resize) - ========================================================================== */ -.sidebar-resizer-handle { - width: 5px; - cursor: col-resize; - position: relative; - background: transparent; - transition: background 0.15s ease; - z-index: 20; - user-select: none; - flex-shrink: 0; -} - -.sidebar-resizer-handle:hover, -.sidebar-resizer-handle.dragging { - background: var(--accent-secondary); - box-shadow: 0 0 6px var(--accent-secondary); -} - -/* ========================================================================== - AGENT SPINNER / STATUS RING FIXED (Stop spinning when done/failed) - ========================================================================== */ -.agent-status-ring { - width: 12px; - height: 12px; - border-radius: 50%; - border: 2px solid var(--border); - display: inline-block; - flex-shrink: 0; - box-sizing: border-box; -} - -.agent-status-ring.active { - border: 2px solid var(--accent-secondary); - border-top-color: transparent !important; - animation: spin 1s linear infinite !important; -} - -.agent-status-ring.done { - border: none !important; - background: var(--success) !important; - animation: none !important; -} - -.agent-status-ring.failed { - border: none !important; - background: var(--error) !important; - animation: none !important; -} - -/* Failed step item styling */ -.clean-step-item.failed .timeline-node { - background: var(--error-bg); - border-color: var(--error); - color: var(--error); -} - -.clean-step-item.failed strong { - color: var(--error); -} - -.error-banner-box { - background: rgba(255, 100, 124, 0.1); - border: 1px solid rgba(255, 100, 124, 0.3); - border-radius: var(--radius-sm); - padding: 8px 12px; - margin-top: 6px; - font-size: 11px; - color: var(--error); - font-family: var(--font-mono); -} - -/* Timeline tab list styling */ -.timeline-tab-panel { - padding: 16px 20px; - height: calc(100% - 41px); - overflow-y: auto; -} - -.timeline-events-stream { - display: flex; - flex-direction: column; - position: relative; - padding-left: 20px; -} - -.timeline-events-stream::before { - content: ""; - position: absolute; - top: 8px; - bottom: 8px; - left: 6px; - width: 2px; - background: var(--border); -} - -.timeline-event-item { - position: relative; - padding-bottom: 18px; - display: flex; - align-items: flex-start; - gap: 12px; -} - -.timeline-event-item:last-child { - padding-bottom: 0; -} - -.event-bullet { - position: absolute; - left: -20px; - top: 4px; - width: 14px; - height: 14px; - border-radius: 50%; - background: var(--surface-elevated); - border: 2px solid var(--text-muted); - z-index: 1; -} - -.event-bullet.done { - border-color: var(--success); - background: var(--success); -} - -.event-bullet.active { - border-color: var(--accent-secondary); - background: var(--bg-main); - box-shadow: 0 0 0 3px rgba(39, 183, 245, 0.25); -} - -.event-bullet.failed { - border-color: var(--error); - background: var(--error); -} - -.event-content { - flex: 1; - display: flex; - flex-direction: column; - gap: 2px; -} - -.event-top-row { - display: flex; - align-items: center; - gap: 8px; - margin-bottom: 2px; -} - -.event-time { - font-family: var(--font-mono); - font-size: 10px; - color: var(--text-muted); -} - -.event-type-tag { - font-family: var(--font-mono); - font-size: 10px; - padding: 1px 6px; - border-radius: 3px; - background: var(--surface-elevated); - border: 1px solid var(--border); - color: var(--accent-secondary); -} - -.event-content strong { - font-size: 12px; - font-weight: 600; - color: var(--text-primary); -} - -.event-content p { - font-size: 11px; - color: var(--text-secondary); - margin-top: 2px; -} - - -/* ========================================================================== - LOGS VIEWPORT LIGHT MODE FIX (Always dark viewport with crisp white text) - ========================================================================== */ -.logs-terminal-viewport, -.theme-light .logs-terminal-viewport, -.app-shell.theme-light .logs-terminal-viewport { - background: #0d0f14 !important; - color: #f4f5fa !important; -} - -.log-entry-row, -.theme-light .log-entry-row, -.app-shell.theme-light .log-entry-row { - color: #f4f5fa !important; - border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important; -} - -.log-summary, -.theme-light .log-summary, -.app-shell.theme-light .log-summary { - color: #ffffff !important; -} - -.log-type, -.theme-light .log-type, -.app-shell.theme-light .log-type { - color: #60a5fa !important; -} - -.log-ts, -.theme-light .log-ts, -.app-shell.theme-light .log-ts { - color: #94a3b8 !important; -} - -/* ========================================================================== - PROJECT CONNECT MODAL STYLES - ========================================================================== */ -.modal-backdrop { - position: fixed; - inset: 0; - background: rgba(0, 0, 0, 0.72); - backdrop-filter: blur(8px); - z-index: 10000; - display: flex; - align-items: center; - justify-content: center; - padding: 20px; -} - -.modal-content { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6); - width: 480px; - max-width: 95vw; - display: flex; - flex-direction: column; - overflow: hidden; - animation: modalFadeIn 0.15s ease-out; -} - -@keyframes modalFadeIn { - from { opacity: 0; transform: scale(0.97); } - to { opacity: 1; transform: scale(1); } -} - -.modal-header { - display: flex; - align-items: center; - justify-content: space-between; - padding: 18px 24px; - border-bottom: 1px solid var(--border-subtle); - background: var(--surface-elevated); -} - -.modal-header h3 { - font-size: 15px; - font-weight: 600; - color: var(--text-primary); - margin: 0; -} - -.modal-header .btn-close { - background: transparent; - border: none; - font-size: 20px; - color: var(--text-muted); - cursor: pointer; - padding: 2px 6px; - line-height: 1; - border-radius: 4px; - transition: color 0.15s ease; -} - -.modal-header .btn-close:hover { - color: var(--text-primary); -} - -.modal-body { - padding: 24px; - display: flex; - flex-direction: column; - gap: 14px; -} - -.modal-body label { - font-size: 12px; - font-weight: 600; - color: var(--text-secondary); - margin-bottom: -6px; -} - -.modal-body input { - width: 100%; - padding: 10px 14px; - background: var(--bg-main); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-primary); - font-size: 13px; - outline: none; - transition: border-color 0.15s ease, box-shadow 0.15s ease; -} - -.modal-body input:focus { - border-color: var(--accent-primary); - box-shadow: 0 0 0 2px rgba(39, 183, 245, 0.2); -} - -.modal-hint { - font-size: 11px; - color: var(--text-muted); - line-height: 1.4; - margin: 4px 0 0; -} - -.modal-footer { - padding: 14px 24px; - border-top: 1px solid var(--border-subtle); - display: flex; - justify-content: flex-end; - gap: 10px; - background: var(--bg-secondary); -} - -/* ========================================================================== - SETTINGS: AUTH & ACCOUNT PROFILE PANEL - ========================================================================== */ -.auth-form-panel { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 24px; - max-width: 520px; - box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); - display: flex; - flex-direction: column; - gap: 20px; -} - -.auth-mode-tabs { - display: flex; - background: var(--surface-elevated); - border-radius: var(--radius-sm); - padding: 4px; - gap: 4px; - border: 1px solid var(--border-subtle); -} - -.auth-mode-tab { - flex: 1; - padding: 9px 16px; - border: none; - background: transparent; - border-radius: var(--radius-xs); - font-size: 13px; - font-weight: 500; - color: var(--text-secondary); - cursor: pointer; - transition: all 0.15s ease; - text-align: center; -} - -.auth-mode-tab:hover { - color: var(--text-primary); -} - -.auth-mode-tab.active { - background: var(--accent-gradient); - color: #ffffff; - font-weight: 600; - box-shadow: 0 2px 8px rgba(39, 183, 245, 0.35); -} - -.auth-form-body { - display: flex; - flex-direction: column; - gap: 16px; -} - -.auth-form-body .form-group { - display: flex; - flex-direction: column; - gap: 6px; -} - -.auth-form-body .form-group label { - font-size: 12px; - font-weight: 600; - color: var(--text-secondary); -} - -.auth-form-body .form-group input { - padding: 10px 14px; - background: var(--bg-main); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-primary); - font-size: 13px; - outline: none; - transition: border-color 0.15s ease, box-shadow 0.15s ease; -} - -.auth-form-body .form-group input:focus { - border-color: var(--accent-primary); - box-shadow: 0 0 0 2px rgba(39, 183, 245, 0.2); -} - -.password-input-row { - position: relative; - display: flex; - align-items: center; - width: 100%; -} - -.password-input-row input { - width: 100%; - padding-right: 38px !important; -} - -.btn-eye { - position: absolute; - right: 8px; - top: 50%; - transform: translateY(-50%); - background: transparent; - border: none; - color: var(--text-muted); - cursor: pointer; - padding: 4px; - display: flex; - align-items: center; - justify-content: center; - border-radius: 4px; - transition: color 0.15s ease; -} - -.btn-eye:hover { - color: var(--accent-primary); -} - -.auth-submit-btn { - display: flex; - align-items: center; - justify-content: center; - gap: 8px; - width: 100%; - padding: 11px 18px; - font-size: 13px; - font-weight: 600; - background: var(--accent-gradient); - color: #fff; - border: none; - border-radius: var(--radius-sm); - cursor: pointer; - margin-top: 4px; - transition: transform 0.15s ease, box-shadow 0.15s ease; -} - -.auth-submit-btn:hover { - transform: translateY(-1px); - box-shadow: 0 4px 14px rgba(39, 183, 245, 0.4); -} - -.auth-form-notice { - padding: 9px 12px; - border-radius: var(--radius-sm); - background: rgba(39, 183, 245, 0.1); - border: 1px solid rgba(39, 183, 245, 0.3); - color: var(--accent-primary); - font-size: 12px; - margin: 0; -} - -.auth-form-hint { - font-size: 12px; - color: var(--text-secondary); - text-align: center; - margin: 2px 0 0; -} - -.btn-link { - background: none; - border: none; - color: var(--accent-primary); - font-weight: 600; - cursor: pointer; - padding: 0 2px; - text-decoration: underline; - font-size: 12px; -} - -.identity-badge { - font-size: 10px; - padding: 2px 8px; - border-radius: 10px; - background: rgba(32, 201, 151, 0.15); - color: #20C997; - border: 1px solid rgba(32, 201, 151, 0.3); - font-weight: 600; - width: fit-content; - margin-top: 4px; -} - -.settings-action-row { - display: flex; - align-items: center; - gap: 12px; - margin-top: 20px; -} - -/* ========================================================================== - USAGE & ENGINEERING ANALYTICS STYLES - ========================================================================== */ -.analytics-view-container { - flex: 1; - display: flex; - flex-direction: column; - padding: 28px 36px; - overflow-y: auto; - gap: 24px; - height: 100%; -} - -.analytics-header { - display: flex; - align-items: flex-start; - justify-content: space-between; - border-bottom: 1px solid var(--border-subtle); - padding-bottom: 20px; -} - -.analytics-title-col { - display: flex; - flex-direction: column; - gap: 6px; -} - -.analytics-title-col .title-row { - display: flex; - align-items: center; - gap: 10px; -} - -.analytics-title-col .title-row h2 { - font-size: 20px; - font-weight: 700; - color: var(--text-primary); - margin: 0; -} - -.analytics-title-col p { - font-size: 12px; - color: var(--text-secondary); - margin: 0; -} - -.date-filter-segmented { - display: flex; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - padding: 3px; - gap: 3px; -} - -.date-seg-btn { - background: transparent; - border: none; - color: var(--text-secondary); - padding: 6px 14px; - border-radius: var(--radius-xs); - font-size: 12px; - font-weight: 500; - cursor: pointer; - transition: all 0.15s ease; -} - -.date-seg-btn:hover { - color: var(--text-primary); -} - -.date-seg-btn.active { - background: var(--surface-elevated); - color: var(--accent-primary); - font-weight: 600; - box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15); -} - -.analytics-metrics-grid { - display: grid; - grid-template-columns: repeat(4, 1fr); - gap: 16px; -} - -.analytics-metrics-grid .metric-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 18px 20px; - display: flex; - flex-direction: column; - gap: 6px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); - transition: border-color 0.15s ease; -} - -.analytics-metrics-grid .metric-card:hover { - border-color: var(--border-hover); -} - -.analytics-metrics-grid .m-label { - font-size: 11px; - text-transform: uppercase; - letter-spacing: 0.5px; - color: var(--text-muted); - font-weight: 600; -} - -.analytics-metrics-grid .m-val { - font-size: 26px; - font-weight: 700; - color: var(--text-primary); - font-family: var(--font-mono); - line-height: 1.1; -} - -.analytics-metrics-grid .m-val.green { - color: var(--success); -} - -.analytics-metrics-grid .m-sub { - font-size: 11px; - color: var(--text-secondary); -} - -.analytics-metrics-grid .m-sub.green { - color: var(--success); -} - -.analytics-charts-grid { - display: grid; - grid-template-columns: 1.5fr 1fr; - gap: 20px; -} - -.analytics-charts-grid .chart-card { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 20px; - display: flex; - flex-direction: column; - gap: 16px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); -} - -.analytics-charts-grid .chart-head { - display: flex; - justify-content: space-between; - align-items: center; - border-bottom: 1px solid var(--border-subtle); - padding-bottom: 12px; -} - -.analytics-charts-grid .chart-head h3 { - font-size: 14px; - font-weight: 600; - color: var(--text-primary); - margin: 0; -} - -.analytics-charts-grid .chart-legend { - font-size: 11px; - color: var(--text-muted); -} - -.css-bar-chart { - display: flex; - align-items: flex-end; - justify-content: space-between; - height: 180px; - padding: 10px 0; - border-bottom: 1px solid var(--border-subtle); - gap: 8px; -} - -.chart-col { - flex: 1; - display: flex; - flex-direction: column; - align-items: center; - height: 100%; - justify-content: flex-end; - gap: 8px; -} - -.bar-fill { - width: 100%; - max-width: 28px; - background: linear-gradient(180deg, var(--accent-secondary) 0%, var(--accent-primary) 100%); - border-radius: 4px 4px 0 0; - min-height: 4px; - transition: height 0.3s ease, filter 0.2s ease; - cursor: pointer; -} - -.bar-fill:hover { - filter: brightness(1.2); -} - -.bar-x-label { - font-size: 10px; - color: var(--text-muted); - font-family: var(--font-mono); -} - -.models-distribution-list { - display: flex; - flex-direction: column; - gap: 14px; -} - -.model-dist-row { - display: flex; - flex-direction: column; - gap: 6px; -} - -.dist-row-top { - display: flex; - justify-content: space-between; - font-size: 12px; - font-weight: 500; - color: var(--text-primary); -} - -.dist-progress-track { - width: 100%; - height: 8px; - background: var(--surface-elevated); - border-radius: 4px; - overflow: hidden; -} - -.dist-progress-fill { - height: 100%; - border-radius: 4px; - transition: width 0.3s ease; -} - -.dist-row-bottom { - display: flex; - justify-content: space-between; - font-size: 11px; - color: var(--text-muted); -} - -/* History Telemetry Table */ -.analytics-history-section { - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-md); - padding: 20px; - display: flex; - flex-direction: column; - gap: 14px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); -} - -.analytics-history-section .table-head-row { - display: flex; - justify-content: space-between; - align-items: center; -} - -.analytics-history-section .table-head-row h3 { - font-size: 14px; - font-weight: 600; - color: var(--text-primary); - margin: 0; -} - -.analytics-history-table { - width: 100%; - border-collapse: collapse; - font-size: 12px; -} - -.analytics-history-table th { - text-align: left; - padding: 8px 12px; - color: var(--text-muted); - font-size: 11px; - font-weight: 600; - text-transform: uppercase; - letter-spacing: 0.5px; - border-bottom: 1px solid var(--border-subtle); -} - -.analytics-history-table td { - padding: 10px 12px; - border-bottom: 1px solid var(--border-subtle); - color: var(--text-secondary); -} - -.analytics-history-table tr:last-child td { - border-bottom: none; -} - -.analytics-history-table tr:hover td { - background: var(--surface-elevated); -} - -.analytics-status-pill { - padding: 2px 8px; - border-radius: 10px; - font-size: 10px; - font-weight: 600; - text-transform: uppercase; -} - -.analytics-status-pill.approved { - background: rgba(32, 201, 151, 0.15); - color: #20C997; -} - -.analytics-status-pill.failed { - background: rgba(255, 100, 124, 0.15); - color: #FF647C; -} - -.analytics-status-pill.running { - background: rgba(39, 183, 245, 0.15); - color: #27B7F5; -} - -.analytics-status-pill.queued { - background: rgba(255, 181, 71, 0.15); - color: #FFB547; -} - -/* ========================================================================== - PROJECT FILTER DROPDOWN & DELETE TASK BUTTONS - ========================================================================== */ -.project-filter-selector { - padding: 8px 12px 4px; -} - -.project-filter-dropdown { - width: 100%; - padding: 6px 10px; - background: var(--surface); - border: 1px solid var(--border); - border-radius: var(--radius-sm); - color: var(--text-primary); - font-size: 12px; - font-weight: 500; - outline: none; - cursor: pointer; - transition: border-color 0.15s ease; -} - -.project-filter-dropdown:focus { - border-color: var(--accent-primary); -} - -.btn-task-delete-icon { - background: transparent; - border: none; - padding: 4px; - cursor: pointer; - border-radius: 4px; - display: flex; - align-items: center; - justify-content: center; - opacity: 0.6; - transition: opacity 0.15s ease, background 0.15s ease; -} - -.btn-task-delete-icon:hover { - opacity: 1; - background: rgba(255, 100, 124, 0.15); -} - -/* Failed tasks: always show delete button at full opacity */ -.btn-task-delete-icon.failed { - opacity: 1; -} - -/* Log file pills */ -.log-files-list { - display: flex; - flex-wrap: wrap; - gap: 4px; - margin-top: 4px; - padding-left: 2px; -} - -.log-file-pill { - background: rgba(39, 183, 245, 0.1); - border: 1px solid rgba(39, 183, 245, 0.25); - color: var(--accent-primary, #27B7F5); - font-size: 10px; - padding: 1px 6px; - border-radius: 3px; - font-family: monospace; - max-width: 220px; - overflow: hidden; - text-overflow: ellipsis; - white-space: nowrap; -} - -.btn-clean-action.reject { - background: rgba(255, 100, 124, 0.15); - border: 1px solid rgba(255, 100, 124, 0.3); - color: #FF647C; -} - -.btn-clean-action.reject:hover { - background: #FF647C; - color: #ffffff; -} - -.btn-clean-action.delete { - background: rgba(255, 100, 124, 0.12); - border: 1px solid rgba(255, 100, 124, 0.25); - color: #FF647C; - display: flex; - align-items: center; - gap: 6px; -} - -.btn-clean-action.delete:hover { - background: #FF647C; - color: #ffffff; -} - -/* ========================================================================== - SETTINGS: APPEARANCE & THEME CARDS - ========================================================================== */ -.theme-cards-grid { - display: grid; - grid-template-columns: repeat(2, 1fr); - gap: 16px; - margin: 12px 0 20px; -} - -.theme-card-option { - border: 2px solid var(--border); - border-radius: var(--radius-md); - padding: 16px; - cursor: pointer; - background: var(--surface); - transition: all 0.15s ease; - display: flex; - flex-direction: column; - gap: 12px; -} - -.theme-card-option:hover { - border-color: var(--border-hover); - transform: translateY(-1px); -} - -.theme-card-option.active { - border-color: var(--accent-primary); - box-shadow: 0 0 0 2px rgba(39, 183, 245, 0.25); - background: var(--surface-elevated); -} - -.theme-card-preview { - height: 90px; - border-radius: var(--radius-sm); - border: 1px solid var(--border-subtle); - display: flex; - overflow: hidden; -} - -.theme-card-preview.dark-preview { - background: #0f1218; -} - -.theme-card-preview.light-preview { - background: #ffffff; -} - -.preview-sidebar { - width: 25%; - height: 100%; - border-right: 1px solid rgba(128, 128, 128, 0.2); - padding: 8px 6px; - display: flex; - flex-direction: column; - gap: 4px; -} - -.preview-sidebar.dark { background: #161a23; } -.preview-sidebar.light { background: #f1f5f9; } - -.preview-bar { - height: 4px; - border-radius: 2px; - background: rgba(128, 128, 128, 0.3); - width: 80%; -} - -.preview-bar.cyan { - background: #27B7F5; - width: 60%; -} - -.preview-main { - flex: 1; - padding: 8px; - display: flex; - flex-direction: column; - gap: 6px; -} - -.preview-header-bar { - height: 12px; - border-radius: 3px; - background: rgba(128, 128, 128, 0.15); - display: flex; - align-items: center; - padding: 0 4px; - gap: 3px; -} - -.preview-dot { - width: 4px; - height: 4px; - border-radius: 50%; - background: #27B7F5; -} - -.preview-editor-box { - flex: 1; - border-radius: 3px; - background: rgba(128, 128, 128, 0.1); - padding: 6px; - display: flex; - flex-direction: column; - gap: 3px; -} - -.preview-code-line { - height: 3px; - border-radius: 1.5px; - background: rgba(128, 128, 128, 0.25); - width: 90%; -} - -.preview-code-line.w60 { width: 60%; } -.preview-code-line.w40 { width: 40%; } -.preview-code-line.accent { background: #27B7F5; width: 70%; } - -.theme-card-footer { - display: flex; - align-items: center; - justify-content: space-between; -} - -.theme-card-footer strong { - font-size: 13px; - color: var(--text-primary); -} - -.theme-card-footer span { - font-size: 11px; - color: var(--text-secondary); -} - -.accent-color-picker-row { - display: flex; - gap: 12px; - align-items: center; - margin-top: 8px; -} - -.accent-color-circle { - width: 26px; - height: 26px; - border-radius: 50%; - border: 2px solid transparent; - cursor: pointer; - transition: transform 0.15s ease, border-color 0.15s ease; -} - -.accent-color-circle:hover { - transform: scale(1.15); -} - -.accent-color-circle.active { - border-color: #ffffff; - box-shadow: 0 0 0 2px var(--accent-primary); -} - - diff --git a/src/App.tsx b/src/App.tsx index 7727478..1f1308c 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,5 +1,6 @@ import { useState, useEffect, useRef, useCallback } from "react"; -import type { AgentKind, CommandKind, AuthResult } from "@codehands/contracts"; +import type { AgentKind, CommandKind } from "@codehands/contracts"; +import type { AuthResult } from "./types/auth"; import { cloudApi } from "./api/cloud"; import { getDeviceToken, deleteDeviceToken } from "./services/keychain"; diff --git a/src/api/cloud.ts b/src/api/cloud.ts index 9b82291..98e964e 100644 --- a/src/api/cloud.ts +++ b/src/api/cloud.ts @@ -1,6 +1,7 @@ // Client for the C3 Cloud API (codehands-backend, Memoona's real server) // Real server runs on port 3000. Override with VITE_CLOUD_URL env var. -import type { CloudAuth, AuthResult, CloudDevice } from "@codehands/contracts"; +import type { CloudDevice } from "@codehands/contracts"; +import type { AuthResult } from "../types/auth"; // Vite exposes env vars prefixed with VITE_ at build time. // In dev: set VITE_CLOUD_URL=http://localhost:3000 in desktop/.env @@ -9,7 +10,7 @@ const DEFAULT_CLOUD_URL = (typeof import.meta !== "undefined" && (import.meta as any).env?.VITE_CLOUD_URL) || "http://localhost:3000"; -export class CloudApiClient implements CloudAuth { +export class CloudApiClient { private baseUrl: string; private token: string | null = null; private onTokenExpired?: () => void; diff --git a/src/components/AnalyticsView.tsx b/src/components/AnalyticsView.tsx index a04a692..ed524dc 100644 --- a/src/components/AnalyticsView.tsx +++ b/src/components/AnalyticsView.tsx @@ -1,5 +1,5 @@ import { useState, useMemo } from "react"; -import { BarChartIcon } from "./Icons"; +import { DemoNote, DemoTag } from "./Demo"; import type { DesktopSession } from "./TaskDetail"; import type { DesktopProject } from "./WorkspacePages"; @@ -110,165 +110,80 @@ export function AnalyticsView({ sessions = [], projects = [] }: AnalyticsViewPro } return ( -
- {/* Header */} -
-
-
- -

Usage & Engineering Analytics

+
+
+
+
+

Insights

+

+ {sessions.length === 0 + ? "Numbers appear after your first task." + : `${metrics.approved} of ${metrics.total} tasks approved, for $${metrics.totalSpend} in total.`} +

+
+
+ +
+ {(["7d", "30d", "90d"] as const).map((r) => ( + + ))} +
-

Telemetry, token consumption, and cost tracking across all local and cloud runs

-
- -
- {(["7d", "30d", "90d"] as const).map((r) => ( - - ))} -
-
- - {/* Top 4 Metrics Cards */} -
-
- TOTAL TASKS EXECUTED - {metrics.total} - Across {metrics.projectsCount || 1} repository -
- -
- APPROVAL / MERGE RATE - {metrics.approvalRate}% - {metrics.approved} approved · {metrics.failed} failed -
- -
- TOTAL AI SPEND - ${metrics.totalSpend} - Avg ${metrics.avgCost} per task
-
- ACTIVE PROJECTS - {metrics.projectsCount || 1} - Local Git repositories +
+
Tasks run{metrics.total}Across {metrics.projectsCount || 1} {(metrics.projectsCount || 1) > 1 ? "repositories" : "repository"}
+
Approval rate{metrics.approvalRate}%{metrics.approved} approved · {metrics.failed} failed
+
AI spend${metrics.totalSpend}Average ${metrics.avgCost} per task
+
Projects{metrics.projectsCount || 1}Local git repositories
-
- - {/* Charts Section */} -
- {/* Cost & Task Frequency Chart */} -
-
-

Daily Task Execution Volume

- Tasks / Day (Past 14 Days) -
-
- {chartData.buckets.map((b, i) => { - const heightPct = chartData.max > 0 ? Math.max((b.count / chartData.max) * 85, 8) : 8; - return ( -
-
- {b.day.split("/")[1]} +
+
+

Tasks per day

Past 14 days
+
+ {chartData.buckets.map((b, i) => ( +
+
+ {b.day.split("/")[1]}
- ); - })} -
-
- - {/* Model Breakdown */} -
-
-

AI Model Distribution

- By Execution Share + ))} +
- -
+
+

Models used

{sessions.length === 0 && }
{modelStats.map((item) => ( -
-
- {item.model} - {item.cost} · {item.count} tasks -
-
-
-
-
- {item.count} runs - {item.pct}% share -
+
+
{item.model}{item.cost} · {item.count} tasks · {item.pct}%
+
))}
-
- - {/* History Telemetry Table */} -
-
-

Recent Session Executions Telemetry

- {sessions.length} total recorded -
+
Recent tasks{sessions.length} recorded
{sessions.length === 0 ? ( -

- No sessions executed yet. Start a new task to view live execution telemetry. -

+ No tasks have run yet. ) : ( - - - - - - - - - - - - - {sessions.slice(0, 8).map((s) => ( - - - - - - - - - ))} - -
Task / PromptRepositoryAgent / ModelStatusCostExecuted
-
- {s.prompt || s.title || "Autonomous Task"} -
-
{s.projectName || s.repo || "sample-repo"} - - {s.agent} · {s.model || "claude-3-5"} - - - - {s.status.replace("_", " ")} - - - ${Number(s.costUsd || 0).toFixed(2)} - - {formatTime(s.createdAt)} -
+
+ + + + {sessions.slice(0, 8).map((s) => ( + + + + + + + + + ))} + +
TaskRepositoryAgent and modelStatusCostWhen
{s.prompt || s.title || "Task"}
{s.projectName || s.repo || "sample-repo"}{s.agent} · {s.model || "claude-3-5"}{s.status.replace("_", " ")}${Number(s.costUsd || 0).toFixed(2)}{formatTime(s.createdAt)}
+
)}
diff --git a/src/components/AppSidebar.tsx b/src/components/AppSidebar.tsx index f899b15..b610431 100644 --- a/src/components/AppSidebar.tsx +++ b/src/components/AppSidebar.tsx @@ -1,9 +1,8 @@ -import { useState, useRef, useEffect } from "react"; +import { useState } from "react"; import { CodeHandsLogo } from "./CodeHandsLogo"; import type { DesktopSession } from "./TaskDetail"; import type { DesktopProject } from "./WorkspacePages"; import { - SearchIcon, PlusIcon, HomeIcon, FolderIcon, @@ -19,12 +18,10 @@ import { ZapIcon, ShieldIcon, SettingsIcon, - UserIcon, - LogOutIcon, - LogInIcon, - SunIcon, - MoonIcon, + ChevronDownIcon, + ChevronRightIcon, } from "./Icons"; +import { DemoTag } from "./Demo"; export type NavView = | "overview" @@ -63,6 +60,18 @@ interface AppSidebarProps { onToggleTheme?: () => void; } +// Screens that show sample content only. They stay reachable, out of the way, and are labelled as demo. +const DEMO_SCREENS: { view: NavView; label: string; Icon: typeof HomeIcon }[] = [ + { view: "workflows", label: "Workflows", Icon: WorkflowIcon }, + { view: "models", label: "Models & Routing", Icon: CpuIcon }, + { view: "memory", label: "Repository Memory", Icon: DatabaseIcon }, + { view: "scheduler", label: "Scheduler & Queue", Icon: ClockIcon }, + { view: "environments", label: "Environments", Icon: BoxIcon }, + { view: "runtime", label: "Runtime & Logs", Icon: TerminalIcon }, + { view: "integrations", label: "Integrations", Icon: ZapIcon }, + { view: "security", label: "Security", Icon: ShieldIcon }, +]; + export function AppSidebar({ currentView, onNavigate, @@ -71,416 +80,128 @@ export function AppSidebar({ connected, daemonState, userName = "Developer (Local)", - userEmail, - isLoggedIn = false, - onOpenAuth, - onLogout, - onOpenCommandPalette, isCollapsed, - onToggleCollapse: _onToggleCollapse, - theme = "dark", - onToggleTheme, }: AppSidebarProps) { - const [isUserMenuOpen, setIsUserMenuOpen] = useState(false); - const userMenuRef = useRef(null); - - useEffect(() => { - function handleClickOutside(event: MouseEvent) { - if (userMenuRef.current && !userMenuRef.current.contains(event.target as Node)) { - setIsUserMenuOpen(false); - } - } - if (isUserMenuOpen) { - document.addEventListener("mousedown", handleClickOutside); - } - return () => { - document.removeEventListener("mousedown", handleClickOutside); - }; - }, [isUserMenuOpen]); + const [showMore, setShowMore] = useState(false); + const onDemoScreen = DEMO_SCREENS.some((s) => s.view === currentView); + const moreOpen = showMore || onDemoScreen; const pendingReviewCount = sessions.filter((s) => s.status === "awaiting_approval").length; - const runningTasksCount = sessions.filter((s) => s.status === "running" || s.status === "queued").length; - // Build recent items from real sessions + projects (most recent 5 by createdAt) - const recentItems = (() => { - if (sessions.length === 0 && projects.length === 0) return []; - // Prefer sessions sorted by createdAt desc, pick unique project names - const seen = new Set(); - const items: { id: string; name: string; sessionId?: string }[] = []; - const sorted = [...sessions].sort( - (a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime() + // Live lists, built only from real sessions. + const newestFirst = [...sessions].sort((a, b) => new Date(b.createdAt).getTime() - new Date(a.createdAt).getTime()); + const needsYou = newestFirst.filter((s) => s.status === "awaiting_approval" || s.status === "failed"); + const running = newestFirst.filter((s) => s.status === "running" || s.status === "queued"); + const recent = newestFirst.filter((s) => !needsYou.includes(s) && !running.includes(s)); + + const navButton = (view: NavView, name: string, label: string, Icon: typeof HomeIcon, badge?: number) => ( + + ); + + const liveList = (title: string, items: DesktopSession[]) => + items.length > 0 && ( +
+ {title} + {items.slice(0, 4).map((s) => ( + + ))} +
); - for (const s of sorted) { - const key = (s.projectName || s.repo || s.id).toLowerCase(); - if (!seen.has(key)) { - seen.add(key); - items.push({ id: s.projectId || s.id, name: s.projectName || s.repo || "Unknown", sessionId: s.id }); - } - if (items.length >= 5) break; - } - // Fill remaining slots from projects if needed - for (const p of projects) { - const key = p.name.toLowerCase(); - if (!seen.has(key)) { - seen.add(key); - items.push({ id: p.id, name: p.name }); - } - if (items.length >= 5) break; - } - return items; - })(); return (
- {/* Sidebar Footer */}
- {!isCollapsed && ( -
- v0.2.0 -
- )} - -
+
- {!isCollapsed && ( -
- {connected ? "Daemon Connected" : "Local Daemon Offline"} - {connected ? "Ready on 127.0.0.1:8788" : "Click to reconnect"} -
- )} + {!isCollapsed && {connected ? "Daemon connected" : "Local daemon offline"}}
- -
-
onNavigate("settings")} - style={{ cursor: "pointer" }} - > +
+
onNavigate("settings")}> {(userName || "Developer").slice(0, 1).toUpperCase()}
{!isCollapsed && ( -
onNavigate("settings")} - title="Open Workspace Settings" - style={{ cursor: "pointer" }} - > - {userName} - Workspace Admin +
onNavigate("settings")} title={userName}> + {userName}
)} - - {/* Floating Settings & Profile Popup Menu */} - {isUserMenuOpen && ( -
-
-
- {(userName || "Developer").slice(0, 1).toUpperCase()} -
-
- {userName} - {userEmail || "Local Workspace"} -
-
- -
- -
- - - - - {onToggleTheme && ( - - )} -
- -
- -
- {isLoggedIn ? ( - - ) : ( - - )} -
-
- )}
diff --git a/src/components/AuthModal.tsx b/src/components/AuthModal.tsx index dbe8e48..35359b3 100644 --- a/src/components/AuthModal.tsx +++ b/src/components/AuthModal.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from "react"; -import type { AuthResult } from "@codehands/contracts"; +import type { AuthResult } from "../types/auth"; import { cloudApi } from "../api/cloud"; import { saveDeviceToken } from "../services/keychain"; import { CodeHandsLogo } from "./CodeHandsLogo"; @@ -151,8 +151,8 @@ export function AuthModal({ isOpen, isExpiredPrompt, isRequired = false, onSucce
-

{mode === "login" ? "Sign In to CodeHands AI" : "Create your account"}

-

{mode === "login" ? "Enter your credentials to sync your local workspace." : "Get started with autonomous engineering orchestration."}

+

{mode === "login" ? "Welcome back" : "Create your account"}

+

{mode === "login" ? "Sign in to CodeHands." : "Set up your CodeHands account."}

{onClose && !isExpiredPrompt && !isRequired && ( @@ -171,6 +171,7 @@ export function AuthModal({ isOpen, isExpiredPrompt, isRequired = false, onSucce {serverAvailable === false && (
{serverIssue || `Sign-in server is unreachable at ${cloudApi.getBaseUrl()}. Running in local-only mode.`} +
If you continue, you are signed in on this laptop only, and your password is not checked.
)} @@ -213,7 +214,7 @@ export function AuthModal({ isOpen, isExpiredPrompt, isRequired = false, onSucce diff --git a/src/components/CommandPalette.tsx b/src/components/CommandPalette.tsx index 51f3ed2..3cfbe57 100644 --- a/src/components/CommandPalette.tsx +++ b/src/components/CommandPalette.tsx @@ -36,9 +36,8 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT }, { id: "view-overview", - title: "Go to Dashboard Overview", + title: "Go to Home", category: "Navigation", - shortcut: "G O", symbol: "O", action: () => { onNavigate("overview"); @@ -49,7 +48,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-projects", title: "Go to Projects", category: "Navigation", - shortcut: "G P", symbol: "P", action: () => { onNavigate("projects"); @@ -60,7 +58,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-tasks", title: "Go to Task Workspace", category: "Navigation", - shortcut: "G T", symbol: "T", action: () => { onNavigate("tasks"); @@ -71,7 +68,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-workflows", title: "Open Workflow Builder", category: "Views", - shortcut: "G W", symbol: "W", action: () => { onNavigate("workflows"); @@ -82,7 +78,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-review", title: "Open Review Queue", category: "Views", - shortcut: "G R", symbol: "R", action: () => { onNavigate("review"); @@ -93,7 +88,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-models", title: "Models & Routing Hub", category: "Views", - shortcut: "G M", symbol: "M", action: () => { onNavigate("models"); @@ -124,7 +118,6 @@ export function CommandPalette({ isOpen, onClose, onNavigate, onNewTask, toggleT id: "view-settings", title: "Open Settings", category: "Settings", - shortcut: "Ctrl+,", symbol: "S", action: () => { onNavigate("settings"); diff --git a/src/components/DashboardView.tsx b/src/components/DashboardView.tsx index 0f755bc..476c5e6 100644 --- a/src/components/DashboardView.tsx +++ b/src/components/DashboardView.tsx @@ -1,18 +1,13 @@ import { useState } from "react"; +import { DemoNote, DemoTag } from "./Demo"; import type { DesktopSession } from "./TaskDetail"; import type { DesktopProject } from "./WorkspacePages"; import { - SearchIcon, PlusIcon, GridIcon, ListIcon, StarIcon, - BranchIcon, - ClockIcon, ArrowRightIcon, - CheckCircleIcon, - BoxIcon, - ZapIcon, } from "./Icons"; interface DashboardViewProps { @@ -128,6 +123,14 @@ const DEFAULT_PROJECT_CARDS: ProjectCardData[] = [ }, ]; +const DEMO_ROUTING = [ + ["Analyze", "Claude 3.5 Sonnet", "Anthropic"], + ["Plan", "Claude 3.5 Sonnet", "Anthropic"], + ["Implement", "Qwen 2.5 Coder / GPT-4o", "Fast & Precise"], + ["Test", "GPT-4o Mini", "OpenAI"], + ["Review", "Claude 3.5 Sonnet", "Anthropic"], +]; + export function DashboardView({ sessions, projects, @@ -197,336 +200,169 @@ export function DashboardView({ return matchesSearch; }); - const totalProjects = projectCards.length; - const pendingTodos = projectCards.reduce((acc, curr) => acc + curr.todos, 0); - const gsdProjectsCount = projectCards.filter((p) => p.tag === "GSD").length; + const usingDemoProjects = dedupedProjects.length === 0; + const waiting = sessions.filter((s) => s.status === "awaiting_approval"); + const running = sessions.filter((s) => s.status === "running" || s.status === "queued"); + const titleOf = (s: DesktopSession) => s.title || s.prompt || `Task ${s.id.slice(0, 8)}`; + const headline = [ + waiting.length ? `${waiting.length} change${waiting.length > 1 ? "s" : ""} waiting for you` : "Nothing is waiting for you", + running.length ? `${running.length} task${running.length > 1 ? "s" : ""} running or queued` : "", + ].filter(Boolean).join(" · "); return ( -
- {/* Top Banner / Header matching Screenshot 1 */} -
-
-
- -

All Your Projects

+
+
+
+
+

Home

+

{headline}

-

Your engineering workspaces and AI orchestration at a glance

-
-
- -
-
- - {/* Stats Summary Pill Bar matching Screenshot 1 */} -
-
- - {totalProjects} - projects -
- | -
- - {pendingTodos} - pending tasks -
- | -
- - {gsdProjectsCount} - orchestrated projects -
-
- - {/* Filter and View Mode Toolbar matching Screenshot 1 */} -
-
- - setSearchQuery(e.target.value)} - /> -
- -
- - - -
- - {filteredProjects.length} projects - -
- -
- -
-
- {/* Projects Grid / List matching Screenshot 1 */} - {viewMode === "grid" ? ( -
- {filteredProjects.map((proj) => { - const progressPercent = - proj.totalTasks > 0 ? Math.round((proj.completedTasks / proj.totalTasks) * 100) : 0; - - return ( -
onOpenProject(proj.id)} - > - {/* Card Header */} -
-
- -

{proj.name}

-
- - {proj.tag} - + {waiting.length > 0 && ( + <> +
Needs you
+ {waiting.map((s) => ( +
onOpenSession(s.id)}> + +
+

{titleOf(s)}

+
{s.projectName || s.repo} · {s.agent} · {s.model} · ${(s.costUsd || 0).toFixed(2)}
+ +
+ ))} + + )} - {/* Card Description */} -

{proj.description}

- - {/* Badge Row (phases, todos, blockers) */} -
- {proj.phases > 0 && ( - - {proj.phases} phases - - )} - {proj.blockers && proj.blockers > 0 && ( - - {proj.blockers} blockers - - )} - {proj.todos > 0 && ( - - {proj.todos} todos - - )} - {proj.phases === 0 && ( - - No roadmap - - )} + {running.length > 0 && ( + <> +
Running now
+
+ {running.map((s) => ( +
onOpenSession(s.id)}> + + {titleOf(s)} + {s.status} + ${(s.costUsd || 0).toFixed(2)}
+ ))} +
+ + )} - {/* Progress Bar with Ratio */} - {proj.totalTasks > 0 ? ( -
-
-
-
- - {proj.completedTasks}/{proj.totalTasks} - -
- ) : ( -
- )} - - {/* Card Footer */} -
-
- - {proj.branch} -
-
- - {proj.updatedAt} -
-
-
- ); - })} -
- ) : ( -
-
- Project - Type - Progress - Branch - Updated - Action +
Recent runs
+ {sessions.length === 0 ? ( +
+

No tasks yet

+

Describe a change and CodeHands will work on it. You approve it before anything is committed.

+
- {filteredProjects.map((proj) => ( -
onOpenProject(proj.id)} - > -
- - {proj.name} -
-
- {proj.tag} -
-
-
-
0 ? Math.round((proj.completedTasks / proj.totalTasks) * 100) : 0}%`, - }} - /> + ) : ( +
+ {sessions.slice(0, 4).map((s) => ( +
onOpenSession(s.id)}> + +
+
{titleOf(s)}
+
{s.agent} · {s.model}
- {proj.completedTasks}/{proj.totalTasks} -
-
- {proj.branch} -
-
- {proj.updatedAt} + {s.status.replace(/_/g, " ")} + ${(s.costUsd || 0).toFixed(2)}
-
-
+ )} + +
+ Projects {usingDemoProjects && } +
+ setSearchQuery(e.target.value)} /> +
+ {(["all", "active", "archived"] as const).map((f) => ( + -
+ ))}
- ))} +
+ + +
+
- )} - {/* Active Executions & Recent Activity Section */} -
-
-
-

Recent Executions

- Live Updates -
- {sessions.length === 0 ? ( -
-

No recent tasks run yet. Start a task to see orchestrated runs here.

- -
- ) : ( -
- {sessions.slice(0, 4).map((s) => ( -
onOpenSession(s.id)} - > - -
- {s.title || s.prompt || `Task ${s.id.slice(0, 8)}`} - {s.agent} · {s.model} -
- ${(s.costUsd || 0).toFixed(2)} - + ); + const run = ( + + ); + return viewMode === "grid" ? ( +
onOpenProject(proj.id)}> +
+

{proj.name}

+ {star}
- ))} -
- )} +
{proj.repoPath}
+ {usingDemoProjects &&

{proj.description}

} +
+
+ {proj.completedTasks} of {proj.totalTasks} approved + {run} +
+
+ ) : ( +
onOpenProject(proj.id)}> + {star} +
+
{proj.name}
+
{proj.repoPath}
+
+ {proj.completedTasks}/{proj.totalTasks} + {run} +
+ ); + })}
-
-
-

AI Model Orchestration

- Current Routing -
-
-
- Analyze - - Claude 3.5 Sonnet - Anthropic -
-
- Plan - - Claude 3.5 Sonnet - Anthropic -
-
- Implement - - Qwen 2.5 Coder / GPT-4o - Fast & Precise -
-
- Test - - GPT-4o Mini - OpenAI -
-
- Review - - Claude 3.5 Sonnet - Anthropic -
+
+ + Model routing + + +
+ {DEMO_ROUTING.map(([phase, model, provider]) => ( +
+ {phase} + {model} · {provider} +
+ ))} +

Fixed sample text. It does not follow the models you choose for a task.

-
+
); diff --git a/src/components/Demo.tsx b/src/components/Demo.tsx new file mode 100644 index 0000000..9381622 --- /dev/null +++ b/src/components/Demo.tsx @@ -0,0 +1,22 @@ +import type { ReactNode } from "react"; +import { parseDiffToFiles } from "../utils/dynamicDiff"; +import type { DesktopSession } from "./TaskDetail"; + +/** Marks anything on screen that is made-up sample content, so nobody mistakes it for real data. */ +export function DemoTag({ label = "Demo data" }: { label?: string }) { + return {label}; +} + +export function DemoNote({ children, danger = false, label }: { children: ReactNode; danger?: boolean; label?: string }) { + return ( +
+ + {children} +
+ ); +} + +/** True when the daemon stored a diff for this task that the app can read. Otherwise the Changes tab shows sample code. */ +export function hasRealDiff(session: DesktopSession | undefined): boolean { + return Boolean(session?.diff?.trim()) && parseDiffToFiles(session!.diff as string, session!.id).length > 0; +} diff --git a/src/components/ModelHubView.tsx b/src/components/ModelHubView.tsx index c5ee74a..270914b 100644 --- a/src/components/ModelHubView.tsx +++ b/src/components/ModelHubView.tsx @@ -1,12 +1,8 @@ import { useState } from "react"; -import { GlobeIcon } from "./Icons"; +import { DemoNote, DemoTag } from "./Demo"; export function ModelHubView() { - const [subTab, setSubTab] = useState< - "routing" | "fallback" | "groups" | "headers" | "traffic" | "usage" | "keys" - >("routing"); const [sdkLang, setSdkLang] = useState<"curl" | "python" | "js" | "go">("curl"); - const [costMetric, setCostMetric] = useState<"input" | "output" | "total">("total"); const models = [ { @@ -110,336 +106,65 @@ func main() { }; return ( -
- {/* Sub Navigation Sidebar */} -
-
- ROUTING - - - - - -
- -
- ANALYTICS - - - - -
- -
- SETTINGS - - - - -
- -
-
- Pro Tier - Active +
+
+
+
+

Models & Routing

+

How requests would be shared between models.

-
$128.47 / $500
-
-
-
- 25% · Resets in 12 days
-
- - {/* Main Model Hub Center & Right Panels */} -
- {/* Top 4 Model Comparison Cards matching Screenshot 4 */} -
- {models.map((m) => ( -
-
- - {m.letter} - -
- {m.name} - {m.sub} -
-
- -
-
- {m.latency} - {m.latencyStatus} -
-
- {m.cost} - {m.costDelta} -
-
- {m.uptime} - {m.uptimeStatus} -
-
- -
-
-
-
- {m.score} -
-
- ))} + Every number on this page is sample data. It is not connected to a provider, a bill or the cost ledger. + +
+ + + + {models.map((m) => ( + + + + + + + + ))} + +
ModelLatencyPriceUptimeScore
{m.name}
{m.sub}
{m.latency} · {m.latencyStatus}{m.cost} ({m.costDelta}){m.uptime} · {m.uptimeStatus}{m.score}
- {/* Middle Section: Unified API Endpoint & SDK Code */} -
-
-
- -
-

api.openrouter.ai/v1

-
- OpenAI-Compatible - REST API -
-

One endpoint. All models. Autonomous fallback and load routing.

-
-
- -
-
- Use your existing SDK -
- {(["curl", "python", "js", "go"] as const).map((lang) => ( - - ))} -
+
+
+

Traffic split

+

1,248 requests a minute

+ {([["GPT-4o", 45], ["Claude", 25], ["Llama", 20], ["Mistral", 10]] as const).map(([name, share]) => ( +
+ {name} +
+ {share}%
-
-                {codeSnippets[sdkLang]}
-              
-
+ ))}
-
- - {/* Bottom Split: Live Request Router + Fallback Chain & Health */} -
-
-
-

Live Request Router

- Traffic Split -
- -
-
- Incoming Requests - 1,248 req/min -
- -
⇄
- -
-
- G - GPT-4o -
-
-
- 45% - 562 req/min · 742 ms -
- -
- C - Claude -
-
-
- 25% - 312 req/min · 812 ms -
- -
- L - Llama -
-
-
- 20% - 250 req/min · 588 ms -
- -
- M - Mistral -
-
-
- 10% - 124 req/min · 623 ms -
-
-
- -
- Total Throughput: 1,248 req/min - Successful: 99.6% - Failed: 0.4% - P95 Latency: 1.28s -
+
+

Fallback order

+ {["Primary: GPT-4o", "Backup: Claude 3.5 Sonnet", "Then: Llama 3.1 70B", "Last: Mistral Large 2"].map((step, i) => ( +
{i + 1}{step}
+ ))} +

Plan: Pro tier, $128.47 of $500 used.

+
-
-
-

Automated Fallback Chain

-
-
- 1 - Primary: GPT-4o - Auto -
-
- ↓ On Failure / Rate Limit -
-
- 2 - Backup: Claude 3.5 Sonnet - Auto -
-
- ↓ On Failure -
-
- 3 - Fallback 2: Llama 3.1 70B - Auto -
-
- ↓ Final Fallback -
-
- 4 - Local Failover: Mistral Large 2 - Auto -
-
-

- Requests flow top to bottom automatically until successful execution. -

-
- -
-
-

Cost Comparison (per 1M tokens)

-
- {(["input", "output", "total"] as const).map((m) => ( - - ))} -
-
- -
-
-
- $2.50 -
- GPT-4o -
-
-
- $3.00 -
- Claude -
-
-
- $0.80 -
- Llama -
-
-
- $0.70 -
- Mistral -
-
-
- -
-
-

Routing Health

- -
-
-
- Success Rate - 99.6% -
-
- Avg Latency (p95) - 1.28s -
-
- Error Rate - 0.4% -
-
- Throttled Rate - 0.0% -
-
+
+ Use your existing SDK (api.openrouter.ai/v1) +
+
+ {(["curl", "python", "js", "go"] as const).map((lang) => ( + + ))}
+
{codeSnippets[sdkLang]}
-
+
); diff --git a/src/components/ModernWorkspace.tsx b/src/components/ModernWorkspace.tsx index 1387466..fe5aa90 100644 --- a/src/components/ModernWorkspace.tsx +++ b/src/components/ModernWorkspace.tsx @@ -3,7 +3,6 @@ import type { CommandKind } from "@codehands/contracts"; import type { DesktopSession, SessionEvent } from "./TaskDetail"; import { FileTextIcon, - UserIcon, BoxIcon, BarChartIcon, PlusIcon, @@ -15,6 +14,7 @@ import { MinimizeIcon, TrashIcon, } from "./Icons"; +import { DemoNote, DemoTag, hasRealDiff } from "./Demo"; interface ModernWorkspaceProps { sessions: DesktopSession[]; @@ -95,11 +95,10 @@ export function ModernWorkspace({ // Resizable panels state const [tasksWidth, setTasksWidth] = useState(260); - const [centerWidth, setCenterWidth] = useState(420); const [filesWidth, setFilesWidth] = useState(230); const [isTasksPanelCollapsed, setIsTasksPanelCollapsed] = useState(false); const [isRightPanelMaximized, setIsRightPanelMaximized] = useState(false); - const [isCommentsCollapsed, setIsCommentsCollapsed] = useState(false); + const [isCommentsCollapsed, setIsCommentsCollapsed] = useState(true); // sample comments, closed until asked for const [isFilesCollapsed, setIsFilesCollapsed] = useState(false); const [isDragging, setIsDragging] = useState(false); @@ -184,29 +183,6 @@ export function ModernWorkspace({ window.addEventListener("mouseup", onMouseUp); }, [tasksWidth]); - // Drag-to-resize handler with <|> pointer for Center Panel - const startResizingCenter = useCallback((e: React.MouseEvent) => { - e.preventDefault(); - setIsDragging(true); - const startX = e.clientX; - const startWidth = centerWidth; - - const onMouseMove = (moveEvent: MouseEvent) => { - const delta = moveEvent.clientX - startX; - const newWidth = Math.min(800, Math.max(260, startWidth + delta)); - setCenterWidth(newWidth); - }; - - const onMouseUp = () => { - setIsDragging(false); - window.removeEventListener("mousemove", onMouseMove); - window.removeEventListener("mouseup", onMouseUp); - }; - - window.addEventListener("mousemove", onMouseMove); - window.addEventListener("mouseup", onMouseUp); - }, [centerWidth]); - // Drag-to-resize handler with <|> pointer for Git Files column const startResizingFiles = useCallback((e: React.MouseEvent) => { e.preventDefault(); @@ -279,1204 +255,601 @@ export function ModernWorkspace({ const taskTitle = currentSession?.title || currentSession?.prompt || "Autonomous Coding Task"; const shortTaskName = taskTitle.length > 40 ? taskTitle.slice(0, 37) + "..." : taskTitle; + const files = [...stagedFiles, ...unstagedFiles]; + // Sample code is shown when the daemon stored no diff. Say so wherever someone might act on it. + const showingSampleCode = files.length > 0 && !hasRealDiff(currentSession); + const sampleCodeWarning = showingSampleCode && ( + + The daemon sent no diff for this task, so the files and code shown are samples.{isAwaitingApproval ? " Check the real branch before approving." : ""} + + ); + const statusText = currentSession?.status ? currentSession.status.replace(/_/g, " ") : ""; + const progress: [string, string][] = [ + ["Analyze", "done"], + ["Plan", isFailed ? "failed" : isApproved || isAwaitingApproval ? "done" : "active"], + ["Implement", isApproved || isAwaitingApproval ? "done" : isRunning ? "active" : ""], + ["Test", isApproved || isAwaitingApproval ? "done" : ""], + ["Review", isApproved ? "done" : isAwaitingApproval ? "active" : ""], + ]; + const milestones: [string, string][] = [ + ["Inspect workspace boundaries & repository AST", `Bound local git workspace at ${currentSession?.repo || "d:\\dev\\sample-repo"}.`], + [`Dispatch task to ${currentSession?.agent || "agent runner"}`, `Constructed execution plan for: ${shortTaskName}`], + [`Synthesize changes for "${shortTaskName}"`, "Generated code diffs and validated AST syntax."], + ["Execute regression checks & test harness", "All unit tests and regression checks passed."], + ["Staging sign-off & branch merge", "Ready for developer review."], + ]; + const act = (kind: string) => currentSession && onCommand(currentSession.id, kind as CommandKind); + return ( -
- {/* 1. LEFT PANEL: Tasks List with Resize Handle & Toggle Arrow */} -
- {isTasksPanelCollapsed ? ( -
- -
- {filteredSessions.map((s) => { - const isSelected = s.id === currentSession?.id; - const isDone = (s.status as string) === "approved" || (s.status as string) === "finished"; - const isWait = s.status === "awaiting_approval"; - const isRun = s.status === "running" || s.status === "queued"; - const isFail = s.status === "failed" || (s.status as string) === "rejected"; - return ( - - ); - })} -
-
- ) : ( - <> -
-
- +
+ {/* Task list */} + {!isRightPanelMaximized && ( +
+ {isTasksPanelCollapsed ? ( +
+ + {filteredSessions.map((s) => ( -
- - {availableProjects.length > 1 && ( -
- setProjectFilter(e.target.value)} title="Filter tasks by project"> + {availableProjects.map((name) => { - const count = sessions.filter( - (s) => (s.projectName || s.repo?.split("\\").pop()) === name - ).length; + const count = sessions.filter((s) => (s.projectName || s.repo?.split("\\").pop()) === name).length; return ( ); })} + )} +
+ + +
- )} - -
- - -
-
- -
- {filteredSessions.length > 0 ? ( - filteredSessions.map((s) => { - const isSelected = s.id === currentSession?.id; - const isDone = (s.status as string) === "approved" || (s.status as string) === "finished"; - const isWaiting = s.status === "awaiting_approval"; - const isRunningItem = s.status === "running" || s.status === "queued"; - const isFailedItem = s.status === "failed" || (s.status as string) === "rejected"; - return ( -
onSelectSession(s.id)} - > -
- -
- -
- - {s.title || s.prompt || `Task #${s.id.slice(0, 8)}`} - -
- {s.projectName || s.repo?.split("\\").pop() || "workspace"} - · - {s.status.replace(/_/g, " ")} +
+ {filteredSessions.length > 0 ? ( + filteredSessions.map((s) => { + const removable = ["approved", "finished", "failed", "rejected"].includes(s.status as string); + return ( +
onSelectSession(s.id)} + > + +
+ {s.title || s.prompt || `Task #${s.id.slice(0, 8)}`} +
+ {s.projectName || s.repo?.split("\\").pop() || "workspace"} + · + {s.status.replace(/_/g, " ")} +
+ ${(s.costUsd || 0).toFixed(2)} + {removable && ( + + )}
+ ); + }) + ) : ( +

No tasks match this filter.

+ )} +
+ + )} +
+ )} - ${(s.costUsd || 0).toFixed(2)} - - {(isFailedItem || isDone) && ( - - )} -
- ); - }) - ) : ( -
-

No tasks match this filter.

-
- )} -
- - )} -
- - {/* DRAG-TO-RESIZE HANDLE with <|> col-resize pointer */} - {!isTasksPanelCollapsed && ( + {!isRightPanelMaximized && !isTasksPanelCollapsed && (
setIsTasksPanelCollapsed(true)} - title="Drag to resize sidebar (double-click to collapse)" + title="Drag to resize (double-click to hide)" /> )} - {/* 2. CENTER PANEL: Dynamic Agent Execution Feed Tailored to the Task */} - {!isRightPanelMaximized && ( -
- {/* Header Bar */} -
-
- - {currentSession?.projectName || - currentSession?.repo?.split("\\").pop() || - "CodeHands Workspace"} - - / - - {currentSession?.branch || "main"} - -
- -
- - {currentSession?.status ? currentSession.status.replace(/_/g, " ") : "In Progress"} - -
+ {/* The task */} +
+ {!currentSession ? ( +
+

No tasks yet

+

Start one and watch it here.

+
- - {/* Scrollable Feed */} -
- {/* User Specification Banner */} -
-
- - User Specification -
-

- {currentSession?.prompt || "Task prompt will appear here once submitted."} -

-
- - {/* Autonomous Agent Card */} -
-
-
- {/* Status indicator: spinner ONLY when running, static green when approved, static red when failed */} - -
- CodeHands Autonomous Agent - - {isApproved - ? "Completed · All checks approved & committed" - : isFailed - ? "Execution failed · See runner diagnostic" - : isAwaitingApproval - ? "Execution paused · Staging review requested" - : isRunning - ? `Orchestrating changes · ${formatElapsed(elapsedSeconds)}` - : "Ready for orchestration"} - + ) : ( + <> +
+
+
+
+

{taskTitle}

+ {statusText}
-
- - {isApproved - ? "5/5 Milestones (100%)" - : isFailed - ? "Failed (0/5)" - : isAwaitingApproval - ? "4/5 Milestones (80%)" - : isRunning - ? "2/5 Milestones (40%)" - : "0/5 Milestones"} - -
- - {/* Dynamic Task Milestones (Derived directly from currentSession.prompt and currentSession.status) */} -
- {/* Step 1: Ingest & Workspace Inspection */} -
-
✓
-
- Inspect workspace boundaries & repository AST -

Bound local git workspace at {currentSession?.repo || "d:\\dev\\sample-repo"}.

+
+ {currentSession.projectName || currentSession.repo?.split("\\").pop() || "workspace"} + {currentSession.branch || "main"}
+
+ {isAwaitingApproval && ( + <> + + + + )} + {isRunning && ( + + )} + {currentSession.status === "stopped" && ( + + )} + {(isFailed || isApproved) && ( + + )} +
+
- {/* Step 2: Task Plan & Agent Dispatch */} -
+ {( + [ + ["execution", "Summary"], + ["changes", "Changes"], + ["logs", "Logs"], + ["artifacts", "Artifacts"], + ["timeline", "Timeline"], + ] as const + ).map(([id, label]) => ( + + ))} + +
+ {isRightPanelMaximized ? : } + {isRightPanelMaximized ? "Restore" : "Maximize"} + +
+
- {/* Step 3: Code Implementation */} - {!isFailed && ( -
-
- {isApproved || isAwaitingApproval ? "✓" : isRunning ? "◌" : "-"} -
-
- Synthesize changes for "{shortTaskName}" -

- {isApproved || isAwaitingApproval - ? "Generated code diffs and validated AST syntax." - : "Synthesizing code modifications in workspace sandbox."} -

+ {activeTab === "execution" && ( +
+
+ {isAwaitingApproval && sampleCodeWarning} + {isFailed && failureReason && ( +
+ Why it failed: {failureReason}
-
- )} + )} - {/* Step 4: Verification & Automated Tests */} - {!isFailed && ( -
-
{isApproved || isAwaitingApproval ? "✓" : "-"}
-
- Execute regression checks & test harness -

- {isApproved || isAwaitingApproval - ? "All unit tests and regression checks passed." - : "Awaiting implementation completion before running tests."} -

+
+
+ Status + {statusText}
-
- )} - - {/* Step 5: Human Review & Approval */} - {!isFailed && ( -
-
- {isApproved ? "✓" : isAwaitingApproval ? "!" : "-"} +
+ Time since start + {formatElapsed(elapsedSeconds)} + {currentSession.createdAt ? `Started ${new Date(currentSession.createdAt).toLocaleTimeString()}` : ""}
-
- Staging sign-off & branch merge -

- {isApproved - ? "Approved by developer. Changes merged to branch." - : isAwaitingApproval - ? "Ready for developer review. Click 'Approve Changes' to commit." - : "Pending final review authorization."} -

+
+ Model + {currentSession.model || "unspecified"} + {currentSession.agent} +
+
+ Cost + ${(currentSession.costUsd || 0).toFixed(2)} + From the local daemon
- )} -
-
-
- - {/* Prompt Dock */} -
-
- setAgentInput(e.target.value)} - onKeyDown={(e) => { - if (e.key === "Enter" && agentInput.trim()) { - setAgentInput(""); - } - }} - /> - -
-
-
- {currentSession?.agent || "CodeHands Coder"} - {currentSession?.model || "Auto Mode"} -
+
What you asked for
+
{currentSession.prompt}
-
- {currentSession && ( - <> - {isAwaitingApproval && ( - <> - - - - )} - {isRunning && ( - - )} - {isFailed && ( - - )} - - )} -
-
-
-
- )} - - {/* RESIZE HANDLE between Center Feed and Right Panel */} - {!isRightPanelMaximized && ( -
- )} - - {/* 3. RIGHT PANEL: 5 Tabs */} -
-
-
- {isRightPanelMaximized && ( - - )} - - - - - -
- -
- -
-
- - {/* Tab 1: Execution */} - {activeTab === "execution" && ( -
- {/* Phase Stepper */} -
-
- ✓ - Analyze - Claude 3.5 -
-
-
- {isFailed ? "✕" : isApproved || isAwaitingApproval ? "✓" : "◌"} - Plan - Claude 3.5 -
-
-
- {isApproved ? "✓" : "3"} - Implement - {currentSession?.agent || "Qwen 2.5"} -
-
-
- {isApproved ? "✓" : "4"} - Test - Test Runner -
-
-
- {isApproved ? "✓" : "5"} - Review - Developer -
-
- - {/* 2x2 Telemetry Grid */} -
-
- CURRENT PHASE - - {isApproved - ? "Complete" - : isFailed - ? "Failed" - : isAwaitingApproval - ? "Awaiting Approval" - : isRunning - ? "Running" - : "Ready"} - - - {isFailed - ? "Runner reported error" - : isAwaitingApproval - ? "Developer review required" - : "Orchestration active"} - -
-
- TIME ELAPSED - {formatElapsed(elapsedSeconds)} - - {currentSession?.createdAt - ? `Started at ${new Date(currentSession.createdAt).toLocaleTimeString()}` - : "Session started"} - -
-
- DISPATCHED MODEL - {currentSession?.model || "Claude 3.5 Sonnet"} - {currentSession?.agent || "Local runner"} -
-
- SESSION SPEND - ${(currentSession?.costUsd || 0).toFixed(2)} - Tracked by local daemon -
-
- - {/* Actions Row */} -
-

Orchestration Controls

-
- {isAwaitingApproval && ( - <> - - - - )} - - {isRunning && ( - - )} - - {currentSession?.status === "stopped" && ( - - )} - - {isFailed && ( - - )} - - {isApproved && ( - <> - - ✓ Approved & Merged - - - - )} -
-
-
- )} - - {/* Tab 2: Changes */} - {activeTab === "changes" && ( -
-
- {/* Left Subcolumn: Files list with collapse/expand arrow */} -
- {isFilesCollapsed ? ( -
- - - {stagedFiles.length + unstagedFiles.length} files - -
- ) : filesList.length === 0 ? ( -
- - {currentSession?.status === "queued" - ? "Task Queued" - : currentSession?.status === "running" - ? "Agent Running" - : "No Files Modified"} - - - {currentSession?.status === "queued" - ? "Waiting for runner execution..." - : currentSession?.status === "running" - ? "Synthesizing code diffs..." - : "No changes staged."} - -
- ) : ( - <> -
-
- STAGED ({stagedFiles.length}) -
- - +
Progress
+
+
+ {progress.map(([name, state]) => ( +
+ + {name}
+ ))} +
+
+ + {currentEvents.length > 0 && ( + <> +
+ Latest activity +
-
- {stagedFiles.map((file) => ( -
setSelectedFileId(file.id)} - > - toggleStageFile(file.id)} - onClick={(e) => e.stopPropagation()} - /> - - {file.status} - -
- {file.name} - {file.path} -
+
+ {currentEvents.slice(-3).map((ev) => ( +
+ {new Date(ev.ts).toLocaleTimeString()} + {ev.payload?.summary || ev.payload?.reason || ev.eventType} + {ev.eventType}
))}
+ + )} + +
+ Milestone view +
+

Fixed wording. It does not come from the agent, so it is not proof that tests ran or passed.

+ {milestones.map(([title, text]) => ( +
+
{title}
+
{text}
+
+ ))}
+
+ +
Message the agent
+
+ setAgentInput(e.target.value)} + onKeyDown={(e) => { + if (e.key === "Enter" && agentInput.trim()) setAgentInput(""); + }} + /> + +
+
+
+ )} -
-
- CHANGES ({unstagedFiles.length}) - + {activeTab === "changes" && ( + <> + {showingSampleCode &&
{sampleCodeWarning}
} +
+
+ {isFilesCollapsed ? ( + + ) : filesList.length === 0 ? ( +
+

{currentSession.status === "queued" ? "Task queued" : currentSession.status === "running" ? "Agent running" : "No files changed"}

+

{currentSession.status === "running" ? "Changes appear here when they are ready." : "Nothing to show yet."}

-
- {unstagedFiles.map((file) => ( -
setSelectedFileId(file.id)} - > - toggleStageFile(file.id)} - onClick={(e) => e.stopPropagation()} - /> - - {file.status} - -
- {file.name} - {file.path} + ) : ( + <> + {( + [ + ["Staged", stagedFiles, "Unstage all", unstageAll], + ["Not staged", unstagedFiles, "Stage all", stageAll], + ] as const + ).map(([title, list, actionLabel, action], index) => ( +
+
+ {title} ({list.length}) + + + {index === 0 && ( + + )} +
+ {list.map((file) => ( +
setSelectedFileId(file.id)} + > + toggleStageFile(file.id)} onClick={(e) => e.stopPropagation()} /> + {file.status} +
+ {file.name} + {file.path} +
+
+ ))}
))} -
-
+
+