From 17880e592b9f1405b7c6fad8fbfa74b63254ddce Mon Sep 17 00:00:00 2001 From: ngqile Date: Tue, 1 Dec 2026 20:16:55 +0800 Subject: [PATCH] docs(openspec): archive add-visual-foundation Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM --- .../.openspec.yaml | 0 .../design.md | 0 .../proposal.md | 0 .../specs/admin-visual-design/spec.md | 0 .../tasks.md | 0 openspec/specs/admin-visual-design/spec.md | 81 +++++++++++++++++++ 6 files changed, 81 insertions(+) rename openspec/changes/{add-visual-foundation => archive/2026-12-01-add-visual-foundation}/.openspec.yaml (100%) rename openspec/changes/{add-visual-foundation => archive/2026-12-01-add-visual-foundation}/design.md (100%) rename openspec/changes/{add-visual-foundation => archive/2026-12-01-add-visual-foundation}/proposal.md (100%) rename openspec/changes/{add-visual-foundation => archive/2026-12-01-add-visual-foundation}/specs/admin-visual-design/spec.md (100%) rename openspec/changes/{add-visual-foundation => archive/2026-12-01-add-visual-foundation}/tasks.md (100%) create mode 100644 openspec/specs/admin-visual-design/spec.md diff --git a/openspec/changes/add-visual-foundation/.openspec.yaml b/openspec/changes/archive/2026-12-01-add-visual-foundation/.openspec.yaml similarity index 100% rename from openspec/changes/add-visual-foundation/.openspec.yaml rename to openspec/changes/archive/2026-12-01-add-visual-foundation/.openspec.yaml diff --git a/openspec/changes/add-visual-foundation/design.md b/openspec/changes/archive/2026-12-01-add-visual-foundation/design.md similarity index 100% rename from openspec/changes/add-visual-foundation/design.md rename to openspec/changes/archive/2026-12-01-add-visual-foundation/design.md diff --git a/openspec/changes/add-visual-foundation/proposal.md b/openspec/changes/archive/2026-12-01-add-visual-foundation/proposal.md similarity index 100% rename from openspec/changes/add-visual-foundation/proposal.md rename to openspec/changes/archive/2026-12-01-add-visual-foundation/proposal.md diff --git a/openspec/changes/add-visual-foundation/specs/admin-visual-design/spec.md b/openspec/changes/archive/2026-12-01-add-visual-foundation/specs/admin-visual-design/spec.md similarity index 100% rename from openspec/changes/add-visual-foundation/specs/admin-visual-design/spec.md rename to openspec/changes/archive/2026-12-01-add-visual-foundation/specs/admin-visual-design/spec.md diff --git a/openspec/changes/add-visual-foundation/tasks.md b/openspec/changes/archive/2026-12-01-add-visual-foundation/tasks.md similarity index 100% rename from openspec/changes/add-visual-foundation/tasks.md rename to openspec/changes/archive/2026-12-01-add-visual-foundation/tasks.md diff --git a/openspec/specs/admin-visual-design/spec.md b/openspec/specs/admin-visual-design/spec.md new file mode 100644 index 0000000..ca69959 --- /dev/null +++ b/openspec/specs/admin-visual-design/spec.md @@ -0,0 +1,81 @@ +# admin-visual-design Specification + +## Purpose + +Keep the admin portal's look consistent and accessible: colours from theme tokens only, slate neutrals with one blue accent, one type family, a light default with a dark theme, the Co-Lite wordmark, and styled dropdown menus. + +## Requirements + +### Requirement: Admin Colours Come From Theme Tokens + +The admin portal SHALL take every colour from the theme tokens. A component MUST NOT use a fixed palette colour, except a modal scrim, a print-only sheet, a QR code's quiet zone, or a frame showing email HTML. + +#### Scenario: A component uses a palette colour + +- **WHEN** a component's classes include a fixed palette colour that is not on the exception list +- **THEN** the portal's checks fail + +### Requirement: One Accent Colour + +The admin portal SHALL use slate neutrals for text, surfaces and borders, and one blue accent for primary actions, links, focus rings and the active navigation item. Status colours (success, warning, danger) SHALL appear only where they carry meaning. + +#### Scenario: Primary action + +- **WHEN** a page shows a primary button +- **THEN** the button uses the accent colour and the other buttons on the page do not + +#### Scenario: Active navigation item + +- **WHEN** an admin is on the Events page +- **THEN** the Events item in the sidebar is marked in the accent colour and no other item is + +### Requirement: One Type Family + +The admin portal SHALL set all text, headings included, in one sans-serif family, with tabular figures for numbers in tables and counts. + +#### Scenario: Fonts loaded + +- **WHEN** any admin page loads +- **THEN** only the one family's font file is loaded + +### Requirement: Light Default With A Dark Theme + +The admin portal SHALL show the light theme by default and SHALL offer a dark theme derived from the same neutrals and accent. + +#### Scenario: First visit + +- **WHEN** an admin opens the portal with no theme preference saved +- **THEN** the light theme is shown + +#### Scenario: Dark theme chosen + +- **WHEN** an admin switches to the dark theme +- **THEN** every page uses the dark tokens and text keeps at least 4.5:1 contrast + +### Requirement: Product Wordmark + +The admin portal SHALL show the product name "Co-Lite" as solid text beside a small mark, and SHALL keep "Powered by Containerverse Sdn. Bhd." in the footer. + +#### Scenario: Sidebar header + +- **WHEN** an admin page loads +- **THEN** the sidebar shows the mark and the text "Co-Lite" in a solid colour, not gradient-filled text + +### Requirement: Styled Dropdown Menus + +Every dropdown in the admin portal SHALL open a styled option menu that matches the portal's theme, and SHALL stay usable by keyboard and screen reader. + +#### Scenario: Company picker + +- **WHEN** a super admin opens the company picker in the header +- **THEN** a styled menu lists "All companies" and each company code, and choosing one scopes the pages to that company + +#### Scenario: Form dropdown + +- **WHEN** an admin opens the salesperson, temperature or status dropdown on an event lead +- **THEN** a styled menu opens, and the chosen value is saved with the form as before + +#### Scenario: Keyboard use + +- **WHEN** an admin focuses a dropdown and presses Enter or Space, then the arrow keys and Enter +- **THEN** the menu opens, moves between options, and chooses one