From 099390c5c6b5ab2d8d786249a14f51df9f9fbeea Mon Sep 17 00:00:00 2001 From: ngqile Date: Wed, 2 Dec 2026 00:19:39 +0800 Subject: [PATCH] docs: archive group-sidebar-categories 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 | 18 ++++++++++++++---- 6 files changed, 14 insertions(+), 4 deletions(-) rename openspec/changes/{group-sidebar-categories => archive/2026-12-02-group-sidebar-categories}/.openspec.yaml (100%) rename openspec/changes/{group-sidebar-categories => archive/2026-12-02-group-sidebar-categories}/design.md (100%) rename openspec/changes/{group-sidebar-categories => archive/2026-12-02-group-sidebar-categories}/proposal.md (100%) rename openspec/changes/{group-sidebar-categories => archive/2026-12-02-group-sidebar-categories}/specs/admin-visual-design/spec.md (100%) rename openspec/changes/{group-sidebar-categories => archive/2026-12-02-group-sidebar-categories}/tasks.md (100%) diff --git a/openspec/changes/group-sidebar-categories/.openspec.yaml b/openspec/changes/archive/2026-12-02-group-sidebar-categories/.openspec.yaml similarity index 100% rename from openspec/changes/group-sidebar-categories/.openspec.yaml rename to openspec/changes/archive/2026-12-02-group-sidebar-categories/.openspec.yaml diff --git a/openspec/changes/group-sidebar-categories/design.md b/openspec/changes/archive/2026-12-02-group-sidebar-categories/design.md similarity index 100% rename from openspec/changes/group-sidebar-categories/design.md rename to openspec/changes/archive/2026-12-02-group-sidebar-categories/design.md diff --git a/openspec/changes/group-sidebar-categories/proposal.md b/openspec/changes/archive/2026-12-02-group-sidebar-categories/proposal.md similarity index 100% rename from openspec/changes/group-sidebar-categories/proposal.md rename to openspec/changes/archive/2026-12-02-group-sidebar-categories/proposal.md diff --git a/openspec/changes/group-sidebar-categories/specs/admin-visual-design/spec.md b/openspec/changes/archive/2026-12-02-group-sidebar-categories/specs/admin-visual-design/spec.md similarity index 100% rename from openspec/changes/group-sidebar-categories/specs/admin-visual-design/spec.md rename to openspec/changes/archive/2026-12-02-group-sidebar-categories/specs/admin-visual-design/spec.md diff --git a/openspec/changes/group-sidebar-categories/tasks.md b/openspec/changes/archive/2026-12-02-group-sidebar-categories/tasks.md similarity index 100% rename from openspec/changes/group-sidebar-categories/tasks.md rename to openspec/changes/archive/2026-12-02-group-sidebar-categories/tasks.md diff --git a/openspec/specs/admin-visual-design/spec.md b/openspec/specs/admin-visual-design/spec.md index 0dfc116..6486c15 100644 --- a/openspec/specs/admin-visual-design/spec.md +++ b/openspec/specs/admin-visual-design/spec.md @@ -127,15 +127,25 @@ A table wider than its container SHALL show a fade on each edge where more colum ### Requirement: Sidebar Sections -The sidebar SHALL list the work pages first, then an "Administration" section for Users, Roles, Emails, Login security, Audit log and Companies. The section SHALL be marked by a divider and a small muted label, and only the divider SHALL show in the collapsed rail. A section with no item the admin may open SHALL NOT show. +The sidebar SHALL show Dashboard first, then the labelled sections Events, Leads, Access and System, each with a fixed set and order of pages. A page not in any section SHALL appear in a final section without a label. A section SHALL be marked by a divider and a small muted label, with only the divider in the collapsed rail, and SHALL NOT show when it has no page the user may open. Every page SHALL have a distinct icon. #### Scenario: Super admin sidebar - **WHEN** a super admin opens the portal -- **THEN** Dashboard, Events, Event leads, Interests and Leads are listed above the "Administration" label -- **AND** Users, Roles, Emails, Login security, Audit log and Companies are listed below it +- **THEN** the sidebar shows Dashboard, then "Events" with Events and Event leads, "Leads" with Leads and Interests, "Access" with Users, Roles and Login security, and "System" with Companies, Emails and Audit log #### Scenario: Staff without admin pages - **WHEN** a staff user who can open only Events and Event leads opens the portal -- **THEN** the sidebar shows no "Administration" label +- **THEN** the sidebar shows only the "Events" section +- **AND** no "Leads", "Access" or "System" label + +#### Scenario: Unknown page + +- **WHEN** the server menu has a page that is not in the category map +- **THEN** it is listed after the System section, without a label + +#### Scenario: Collapsed rail + +- **WHEN** an admin collapses the sidebar to the icon rail +- **THEN** the sections are separated by dividers and no section label shows