Files
co-lite/openspec/changes/group-sidebar-categories/tasks.md
T
ngqileandClaude Opus 5.5 75e243f3bb feat: sidebar groups pages into Events, Leads, Access and System
Labelled sections replace the single Administration divider, Login
security gets its own lock icon, and the icon map drops the babyboo
icons Co-Lite does not use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EFUzfj5akPxyikzGc2iAHM
2026-12-02 00:19:18 +08:00

1.5 KiB

Tasks: group-sidebar-categories

Portal only. TDD, then the review gate. Verify: cd solvway-admin-portal && npx vitest run; echo VITEST=$? && npx tsc --noEmit && npm run lint (check the vitest exit code).

  • 1.1 Category map, groupSidebar, the icon override, section rendering in SidebarNav (full, drawer and rail), and the label keys. The "Administration" label and ADMIN_MODULES go.
    • Scope: solvway-admin-portal/app/lib/aclSidebar*, solvway-admin-portal/app/components/app/Sidebar*, solvway-admin-portal/app/lib/i18n/defaultMessages.ts
  • 1.2 Trim the icon map to the icons Co-Lite uses.
    • Scope: the icon map file and its tests
  • 1.3 DESIGN.md Navigation updated, and a Playwright check at 1280 px (full and rail) and 360 px (drawer) as a super admin, plus a staff user with event pages only.
    • Done 2026-12-02 on the local stack:
      • Playwright as super admin: the full sidebar at 1280 px (Dashboard, then Events, Leads, Access and System with labels and dividers), the collapsed rail (dividers only, Login security with its lock icon), and the drawer at 360 px.
      • The staff-only scenario (event pages only) is covered by Sidebar.sections.test.tsx. No browser sign-in was done for it, because no local staff user has only those modules.
      • Icon map trimmed to Co-Lite's 12 icons. The babyboo-only icon tests were removed, and the Activity-group test file was deleted.
      • Portal verify: vitest 1572 passed (exit 0), tsc 0, lint 0 errors.