From c56e2007f3c169d6cff98f3e2fa4d34ce7e3bf7f Mon Sep 17 00:00:00 2001 From: oratis Date: Thu, 28 May 2026 22:10:35 +0800 Subject: [PATCH] feat(P2): redesign all 7 utility screens per spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces the legacy Tailwind-flavored markup in Sessions / Plugins / Skills / Permissions / MCP / Settings / About with design-aligned layouts built on a new shared Screen + Card + Row + SectionTitle component set in src/components/Screen.tsx. Each screen now: - Mounts a chat-header with crumb + actions (no more .legacy-screen wrapper) - Body uses Cards with optional title + actions header - Uses real design tokens (var(--bg-2), --line, --brand-tint, etc.) instead of dead bg-bg/text-fg classes that don't render in the new CSS Screen-by-screen highlights: About - Centered hero with BrandMark size="lg" + gradient text "DeepCode" + version line - Diagnostics card with Status + Paths sections (DeepSeek API, project folder, base URL, ~/.deepcode/* paths) - Documentation links card opening external URLs via plugin-opener Sessions - Search input + new-session button in header - Card with full sessions list, hover state, file size + relative time, click-to-resume Plugins - "Install new plugin" card (still surfaces "wire in v0.2" UX feedback — actual install not piped to renderer yet) - "Installed" card with trust badges (official=ok, marketplace=info, user=warn), hook contributions, source hash, and a custom Toggle switch (not styled native checkbox) Skills - 2-column layout: left list with filter + source badge, right detail card with SKILL.md preview in mono pre Permissions - 5 official mode options exposed in defaultMode row - "Add rule" card with type dropdown + pattern input + Enter-to-add - One card per kind (deny/ask/allow) with badge-tinted header, remove-row ✕ buttons - Save button persists to ~/.deepcode/settings.json (was previously view-only stub) MCP - Connected servers card with status badges (●connected / ✕failed / ○disabled), tool count, inline error tail - Example settings JSON card for copying Settings - GUI / JSON view toggle in header (segmented control) - GUI view: Quick reference card (project / settings path / model / effort / baseURL) + filterable flat key/value table - JSON view: full-width