feat(react): add themed workshop coverage - #55
Conversation
TegamiThis repository uses Tegami to manage releases. When your changes affect published packages, add a changelog file under Create a changelog → · Changelog format Release preview
Changelogs in this PR
Run Managed by Tegami. |
Greptile SummaryThe PR expands the React workshop with seven light/dark theme presets and moves global appearance controls into the top toolbar.
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains.
|
| Filename | Overview |
|---|---|
| packages/react/examples/vite/src/workshop-themes.ts | Defines seven typed, token-complete workshop theme presets and lookup helpers. |
| packages/react/examples/vite/src/workshop.tsx | Moves appearance state into global toolbar controls, applies presets to DomainKit, and surfaces lifecycle events through host notifications. |
| packages/react/examples/vite/src/workshop.css | Styles the themed workshop shell, toolbar selects, host-composed elements, notifications, and dropdown constraints. |
| packages/react/tests/browser/theme.spec.ts | Expands browser coverage across theme propagation, dialogs, host composition, controls, geometry, and lifecycle notifications. |
| packages/react/tests/workshop.test.ts | Adds unit coverage for preset completeness, validation, and URL parsing. |
Flowchart
%%{init: {'theme': 'neutral'}}%%
flowchart LR
URL[URL parameters] --> State[Workshop state]
Toolbar[Theme and color-scheme toolbar] --> State
Story[Story controls] --> State
State --> Theme[Selected light or dark theme preset]
Theme --> Root[DomainKit root]
State --> Preview[Workshop preview]
Preview --> Events[Lifecycle events]
Events --> Notice[Host notification]
Reviews (5): Last reviewed commit: "chore(release): note React workshop them..." | Re-trigger Greptile
254cf6d to
e0601a3
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
e0601a3 to
70195d0
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
70195d0 to
a4b8a39
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
a4b8a39 to
a8236cd
Compare
Dismissed because a newer commit was pushed; Greptile will re-review the current head.
Summary
Validation
Local visual flows were exercised against the isolated workshop server; no existing docs server was restarted.