Repository navigation
Task 028: Extract WebSocket logic into useSocket composable - #28
Merged
Merged
Conversation
3 tasks
Collaborator
Author
/ponytail-review
Closes task 028.
|
Igloczek
added a commit
that referenced
this pull request
Jun 30, 2026
Type schema migrations against BunSQLiteRedbean directly and use bun:sqlite Database in migration helpers. Deletes the single-implementor MigrationStore interface (ponytail audit #28).
Igloczek
force-pushed
the
task/028-extract-socket-composable
branch
from
June 30, 2026 12:11
b17bf14 to
773cb9d
Compare
Move connection setup, event handlers, and emit/on wrappers out of the 897-line socket mixin into src/composables/useSocket.ts. The mixin keeps state, computed properties, and auth/API methods but delegates init and socket I/O to the composable during the phase-1 transition. Mixin shrinks by 233 LOC (897 → 664).
Igloczek
force-pushed
the
task/028-extract-socket-composable
branch
from
June 30, 2026 12:28
773cb9d to
3dc697a
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Type schema migrations against BunSQLiteRedbean directly and use bun:sqlite Database in migration helpers. Deletes the single-implementor MigrationStore interface (ponytail audit #28).
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Task 028: Extract WebSocket logic into useSocket composable
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements tasks/028-extract-socket-composable.md from the ponytail audit backlog.
Goal
Move connection lifecycle and event handlers out of the 897-line mixin into a composable without changing UI behavior.
Scope
src/composables/useSocket.tswith connect/disconnect, emit/on wrappers, and reconnection logic extracted fromsrc/mixins/socket.ts.Acceptance criteria
socket.tsmixin shrinks by at least 200 LOC.bun run lintpasses.bun run test-e2epasses.Depends on
Nothing.
Verification
Audit reference
Finding #4 — socket mixin (phase 1).