Repository navigation
Task 029: Replace socket mixin with Pinia store - #30
Merged
Merged
Conversation
6 tasks
Collaborator
Author
/ponytail-review
Closes task 029 (audit finding #4 phase 2).
|
Igloczek
force-pushed
the
task/029-replace-socket-mixin-with-store
branch
from
June 30, 2026 12:11
f4ec081 to
cf673a8
Compare
Centralize WebSocket-driven app state in stores/app.ts with connection logic extracted to composables/useSocket.ts. Remove the 897-line socket mixin and public mixin; migrate pages and components to appStore via useAppStore(). Add shared favicon-badge helper and Pinia dependency.
Igloczek
force-pushed
the
task/029-replace-socket-mixin-with-store
branch
from
June 30, 2026 12:35
cf673a8 to
f8c4360
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
…th-store Task 029: Replace socket mixin with Pinia store
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/029-replace-socket-mixin-with-store.md from the ponytail audit backlog.
Goal
Remove global socket mixin; centralize app state in a store consumed by pages.
Scope
stores/app.ts(or split:stores/monitors.ts,stores/auth.ts).data/computedto the store.socketfrommixinsarray insrc/main.ts; update components using$rootsocket state touseAppStore()/ composables.src/mixins/socket.tswhen fully migrated.Acceptance criteria
src/mixins/socket.tsdeleted.src/main.tsno longer registers socket mixin.bun run lintpasses.bun run test-e2epasses.Depends on
Task 028, Task 020 (favicon extracted).
Verification
bun run lint bun run test-e2e rg "mixins/socket|from \"@/mixins/socket\"" srcAudit reference
Finding #4 — socket mixin (phase 2).