Skip to content

Active/inactive mod toggle + collection page UI overhaul - #47

Merged
PyXiion merged 2 commits into
mainfrom
feat/workshop-active-toggle
Jul 30, 2026
Merged

Active/inactive mod toggle + collection page UI overhaul#47
PyXiion merged 2 commits into
mainfrom
feat/workshop-active-toggle

Conversation

@PyXiion

@PyXiion PyXiion commented Jul 30, 2026

Copy link
Copy Markdown
Owner
  • Replace BadgeState/visuals.ts with unified ModState/controls.ts
  • Detail page: use controls.ts shared state machine, remove queueModWithDeps/batchToggleChecked
  • Badge grid: use applyModState/handleClick, debounce (300ms) instead of requestAnimationFrame
  • Collection page: single batch button with 4-state cycle (DEFAULT/CHECKED/INACTIVE/ACTIVE) + separate 'Activate only this pack' button
  • Lifecycle: replace ROUTES array with DOM-based PAGE_KINDS page kind detection
  • CSS: add collection bar/button styles, collection hoverable badges, hide native Steam subscribeCollection buttons
  • Python bridge: add toggle_active/batch_toggle_active/fetch_mod_deps RPC methods
  • Rollback optimistic mutations on RPC failure

- Replace BadgeState/visuals.ts with unified ModState/controls.ts
- Detail page: use controls.ts shared state machine, remove queueModWithDeps/batchToggleChecked
- Badge grid: use applyModState/handleClick, debounce (300ms) instead of requestAnimationFrame
- Collection page: single batch button with 4-state cycle (DEFAULT/CHECKED/INACTIVE/ACTIVE) + separate 'Activate only this pack' button
- Lifecycle: replace ROUTES array with DOM-based PAGE_KINDS page kind detection
- CSS: add collection bar/button styles, collection hoverable badges, hide native Steam subscribeCollection buttons
- Python bridge: add toggle_active/batch_toggle_active/fetch_mod_deps RPC methods
- Rollback optimistic mutations on RPC failure
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 115 complexity · 0 duplication

Metric Results
Complexity 115
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@PyXiion
PyXiion merged commit 0d8af44 into main Jul 30, 2026
3 of 5 checks passed
@PyXiion
PyXiion deleted the feat/workshop-active-toggle branch July 30, 2026 12:07
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