refactor(categories) : unifier la machine a etats des 2 arbres de categories sur useCollapsibleGroups #294
No reviewers
Labels
No labels
autopilot:pending-human
source:analyste
source:defenseur
source:human
source:medic
status:approved
status:blocked
status:in-progress
status:needs-clarification
status:needs-fix
status:ready
status:review
status:triage
type:bug
type:feature
type:infra
type:refactor
type:schema
type:security
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: maximus/Simpl-Resultat#294
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-290-categories-unify"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #290
Stacked on #293 (
issue-289-budget-collapse) — base branch isissue-289-budget-collapse, notmain. Review/merge #293 first.Unifies the collapse state machine of the two category trees onto
useCollapsibleGroups(a strict superset after #288), keeping each tree's distinct recursive render and CategoryTree's drag-and-drop untouched.storageKey: null+defaultExpanded: true(expanded by default, no seeding); drops the localSet+collectExpandable.storageKey: null+defaultExpanded: false(collapsed by default); sharedTAXONOMY_COLLAPSE_ACCESSORSexported from the tree.allExpanded = expanded.size > 0flipped after one node → hook's correctallExpanded), and migrates a 4th consumer (StepDiscover, same bug) onto the hook for a green build + consistency.Behaviours preserved: Categories opens expanded (DnD intact), guide/wizard open collapsed, and opening one node no longer flips the button.
Build 0 TS errors · 828 vitest pass · cargo check clean. No DB migration.
Generated autonomously by /autopilot run of 2026-07-15
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.