Repository navigation
Task 030: Replace global mixins with composables - #29
Merged
Merged
Conversation
6 tasks
Collaborator
Author
/ponytail-reviewFive of six global mixins replaced with singleton composables. Socket mixin removed in task 029. Lean already. Ship.
|
Igloczek
force-pushed
the
task/030-replace-global-mixins
branch
from
June 30, 2026 12:11
e5b9a93 to
9ae4c21
Compare
Extract theme, datetime, mobile, lang, and public API state into singleton composables initialized from main.ts. Update components to consume useTheme, useDatetime, useMobile, useLang, and usePublicApi instead of $root mixin APIs. Delete the five mixin files; socket mixin remains until task 029.
Igloczek
force-pushed
the
task/030-replace-global-mixins
branch
from
June 30, 2026 12:37
9ae4c21 to
619b928
Compare
Igloczek
added a commit
that referenced
this pull request
Aug 8, 2026
Task 030: Replace global mixins with composables
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/030-replace-global-mixins.md from the ponytail audit backlog.
Goal
Remove the five smaller global mixins applied in
main.ts(~380 LOC combined).Scope
theme,datetime,mobile,lang,publicmixins with composables:useTheme,useDatetime,useMobile,useLang,usePublicApi.$root.date(),$root.datetime(), theme helpers, etc.Datetime.vueshould call composable instead of$root.Acceptance criteria
src/main.tsmixinsarray is empty or removed entirely.src/mixins/contains zero files OR only re-exports during migration (end state: deleted).bun run lintpasses.bun run test-e2epasses.Depends on
Task 029 (socket mixin gone first).
Verification
Audit reference
Finding #11 — six global mixins.