Skip to content

Paper cuts#8

Open
joshpitzalis wants to merge 2 commits intomainfrom
paper-cuts
Open

Paper cuts#8
joshpitzalis wants to merge 2 commits intomainfrom
paper-cuts

Conversation

@joshpitzalis
Copy link
Copy Markdown
Owner

No description provided.

joshpitzalis and others added 2 commits April 7, 2026 06:29
Separates business logic (join/rename/leave/close validation and state
transitions) from WebSocket transport. WorkshopRoom is now a thin shell
that delegates to WorkshopState and applies result objects. All 11
business rules are testable without WebSocket mocking.

Closes #3

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
New hook wraps useWorkshopSocket with named action methods (updateStatus,
leave, rename, closeWorkshop) and reactive error/renamedTo state. Both
route files now have zero ClientMessage knowledge. Also adds vitest.config.ts
to isolate test runner from SSR plugins, and fixes WorkshopRoom test that
was broken by happy-dom stripping the Upgrade header.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
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