Skip to content

chore(design): organize and align design system - #6

Merged
boh5 merged 4 commits into
mainfrom
codex/organize-design-system
Jul 30, 2026
Merged

chore(design): organize and align design system#6
boh5 merged 4 commits into
mainfrom
codex/organize-design-system

Conversation

@boh5

@boh5 boh5 commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • consolidate active UI/UX artifacts under design-system/
  • synchronize the Master baseline and page overrides with the current workbench UI
  • keep one representative HTML prototype per page with shared CSS and JavaScript limited to cross-page behavior
  • clarify in AGENTS.md that Master and page rules are normative while prototypes and UI/UX Pro Max are advisory references
  • preserve historical files under docs/ unchanged

Why

The project had active design guidance and prototypes spread across an older structure. This gives future UI work one clear design baseline, page-specific exceptions, and lightweight rendered references without making prototypes authoritative.

Validation

  • git diff --check
  • parsed all prototype HTML and inline CSS/JavaScript
  • verified unique IDs, aria-controls targets, and local prototype assets
  • HTTP smoke-tested dashboard.html, session.html, and todos.html

Review in cubic

Summary by CodeRabbit

  • New Features
    • Added a new Dashboard prototype, plus refreshed Session and Todos prototypes with responsive layout updates, theme switching, overlay/drawer behavior, and toast-based feedback.
  • Documentation
    • Expanded UI/UX Pro Max workflow guidance and updated design-system specs (semantic color tokens, typography, spacing/radius/elevation, motion, accessibility, and responsive/layout rules).
  • Refactor
    • Simplified prototype overlay/resizing behavior by removing inspector overlay support and limiting resizing to the project sidebar.
  • Chores
    • Retired legacy Signal Workbench and terminal-style prototypes; removed related Signal Workbench design-system artifacts.

@coderabbitai

coderabbitai Bot commented Jul 30, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: f424b0d6-2ee6-4f82-932a-dd62dd054032

📥 Commits

Reviewing files that changed from the base of the PR and between c483dfc and 9d2edcc.

📒 Files selected for processing (1)
  • design-system/prototypes/session.html

📝 Walkthrough

Walkthrough

Changes

The PR defines a UI/UX workflow, synchronizes shared and page-specific design specifications, and adds Dashboard, Session, and Todos prototypes with shared and page-specific interaction logic. Older prototype artifacts are removed.

Changes

UI/UX design system and prototypes

Layer / File(s) Summary
Workflow and prototype governance
AGENTS.md
Defines design-system authority, UI task workflow, prototype lifecycle rules, serving instructions, and the historical status of docs/.
Shared and page design specifications
design-system/MASTER.md, design-system/pages/*
Updates semantic tokens, typography, layout, accessibility, motion, responsive rules, and Dashboard, Session, and Todos requirements.
Shared prototype foundation
design-system/prototypes/app.js, design-system/prototypes/styles.css
Adds shared icons, theme switching, toasts, sidebar overlays, tabs, resizing, persistence, responsive layout, and reduced-motion styling while removing inspector layout support.
Dashboard prototype
design-system/prototypes/dashboard.html
Adds dashboard navigation, sidebar panels, work-canvas sections, responsive styling, overlay handling, and toast status markup.
Session prototype integration
design-system/prototypes/session.html
Updates collapsed-sidebar layout handling and closes the context inspector when sidebar controls are activated.
Todos board and drawer prototype
design-system/prototypes/todos.html
Adds the Todos board, view switching, quick capture, detail drawer, scrim, and toast-backed interactions.
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately reflects the design-system organization work, though it is broader than the detailed file-level changes.
Description check ✅ Passed The description includes Summary, Why, and Validation, but it omits the template's Documentation/security and Related issue sections.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 10

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@design-system/MASTER.md`:
- Around line 393-396: Update the Work disclosure requirements in
design-system/MASTER.md lines 393-396 and the Session Work specifications in
design-system/pages/session.md lines 106-108 and 149-151 to use a stable
accessible name containing only the Work/state identity. Keep aria-expanded and
aria-controls, and expose changing live duration and activity through a separate
live status region rather than the disclosure button name.

In `@design-system/prototypes/app.js`:
- Around line 67-99: Update closeOverlays and the sidebar/inspector trigger
handlers to synchronize overlay state beyond CSS classes: apply inert/visibility
to closed panels, keep each trigger’s aria-expanded accurate across mobile and
desktop toggles, and track the active trigger so Escape and close actions
restore focus. Add breakpoint-change handling so state and accessibility
attributes are recalculated when responsive thresholds change, including the
related logic near the additional referenced section.
- Around line 83-93: Move the inspector toggling and resizing implementation
anchored by the data-open-inspector handler from design-system/prototypes/app.js
lines 83-93 into session.html, preserving its responsive behavior and
closeOverlays integration. Move the Session layout and inspector styles from
design-system/prototypes/styles.css lines 204-235 into session.html’s inline
stylesheet; leave shared files limited to cross-page behavior and styles.
- Around line 101-111: Implement the complete ARIA tab interaction contract in
design-system/prototypes/app.js lines 101-111 by adding roving tabindex,
keyboard navigation, and proper tab activation for shared sidebar tabs. Apply
the same behavior in design-system/prototypes/session.html lines 1499-1519 for
Inspector and HITL tabs, ensuring each tab references its associated panel and
selection, focus, and visibility remain synchronized.

In `@design-system/prototypes/dashboard.html`:
- Line 2: Change the root html elements in
design-system/prototypes/dashboard.html (line 2),
design-system/prototypes/session.html (line 2), and
design-system/prototypes/todos.html (line 2) to use lang="en"; wrap each Chinese
passage in an appropriate language annotation such as lang="zh-CN".

In `@design-system/prototypes/styles.css`:
- Around line 289-293: Update the .rail-project.active styles to use a
light-mode foreground color with sufficient contrast against the white
--bg-elevated background, while preserving the existing dark-mode appearance
through the theme’s established color variables.
- Around line 169-179: Update the .sr-only accessibility utility to replace the
deprecated clip declaration with an equivalent clip-path value, preserving the
existing screen-reader-only behavior and validation compatibility.

In `@design-system/prototypes/todos.html`:
- Around line 600-605: Implement the complete modal lifecycle for the todo
drawer around the todo-drawer element and its open/close controls: keep the
closed drawer hidden and inert, remove those states when opening, move focus
into the dialog, trap Tab navigation within it, close on Escape, and restore
focus to the triggering control when closed. Apply the same behavior to the
related drawer markup and preserve the existing close controls.
- Around line 550-585: Replace the nested main landmark represented by the
todo-board element with a non-landmark container, preserving its todo-board
class and data-todo-panel="board" hook. Keep the existing lane structure and
content unchanged inside the replacement container.
- Around line 660-667: Update the submit handler for [data-capture-form] to
delegate capture feedback to the shared showToast() helper instead of directly
manipulating .toast or creating an independent timeout. Preserve the trimmed
input text and existing message content while reusing showToast()’s coordinated
lifecycle.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c6507306-a9bd-49a5-a64b-8931be1ca0ee

📥 Commits

Reviewing files that changed from the base of the PR and between 6be34a4 and f612843.

📒 Files selected for processing (16)
  • AGENTS.md
  • design-system/MASTER.md
  • design-system/pages/dashboard.md
  • design-system/pages/session.md
  • design-system/pages/todos.md
  • design-system/prototypes/app.js
  • design-system/prototypes/dashboard.html
  • design-system/prototypes/session.html
  • design-system/prototypes/styles.css
  • design-system/prototypes/todos.html
  • design/prototypes/signal-workbench/README.md
  • design/prototypes/signal-workbench/app.js
  • design/prototypes/signal-workbench/design-system/signal-workbench/README.md
  • design/prototypes/signal-workbench/index.html
  • design/prototypes/signal-workbench/styles.css
  • design/tui-design.html
💤 Files with no reviewable changes (5)
  • design/prototypes/signal-workbench/design-system/signal-workbench/README.md
  • design/prototypes/signal-workbench/index.html
  • design/prototypes/signal-workbench/README.md
  • design/tui-design.html
  • design/prototypes/signal-workbench/app.js

Comment thread design-system/MASTER.md
Comment thread design-system/prototypes/app.js
Comment thread design-system/prototypes/app.js Outdated
Comment thread design-system/prototypes/app.js
Comment thread design-system/prototypes/dashboard.html
Comment thread design-system/prototypes/styles.css
Comment thread design-system/prototypes/styles.css
Comment thread design-system/prototypes/todos.html
Comment thread design-system/prototypes/todos.html
Comment thread design-system/prototypes/todos.html Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 16 files

Tip: cubic can generate docs of your entire codebase and keep them up to date. Try it here.

Re-trigger cubic

Comment thread design-system/prototypes/session.html Outdated
Comment thread design-system/pages/session.md
Comment thread design-system/prototypes/todos.html Outdated
Comment thread design-system/prototypes/todos.html
Comment thread design-system/prototypes/styles.css
Comment thread design-system/prototypes/styles.css Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 6 files (changes from recent commits).

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread design-system/prototypes/app.js
Comment thread design-system/prototypes/session.html

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@design-system/prototypes/session.html`:
- Around line 1036-1068: Update the max-width: 1180px media-query rules around
`.session-page .app-shell` to add a higher-specificity
`.session-page.sidebar-collapsed .app-shell` override that removes the reserved
inspector grid column while `.context-inspector` is fixed. Preserve the existing
plain-layout columns and align the collapsed-sidebar behavior with the 760px
breakpoint.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a1c81bcf-b3c1-4e84-b8c2-ed60fdc6bbe9

📥 Commits

Reviewing files that changed from the base of the PR and between f612843 and c483dfc.

📒 Files selected for processing (6)
  • design-system/pages/session.md
  • design-system/prototypes/app.js
  • design-system/prototypes/dashboard.html
  • design-system/prototypes/session.html
  • design-system/prototypes/styles.css
  • design-system/prototypes/todos.html
🚧 Files skipped from review as they are similar to previous changes (2)
  • design-system/prototypes/dashboard.html
  • design-system/pages/session.md

Comment thread design-system/prototypes/session.html
@boh5
boh5 merged commit 2aa8f2f into main Jul 30, 2026
7 checks passed
@boh5
boh5 deleted the codex/organize-design-system branch July 30, 2026 07:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant