refactor(categories) : unifier la machine a etats des 2 arbres de categories sur useCollapsibleGroups #294
Open
maximus
wants to merge 1 commit from
issue-290-categories-unify into issue-289-budget-collapse
pull from: issue-290-categories-unify
merge into: maximus:issue-289-budget-collapse
maximus:main
maximus:issue-291-collapse-docs
maximus:issue-289-budget-collapse
maximus:issue-288-collapse-socle
maximus:fix-database-locked-serialization
maximus:issue-228-v16-guard-convertible-scope
maximus:issue-187-balance-cleanup-post-184-185
maximus:issue-188-webkit-date-picker-7-inputs
maximus:issue-180-postcss-audit-fix
maximus:issue-190-restructure-settings-pages
maximus:issue-161-smoke-scaffold
maximus:issue-171-ci-drop-push-trigger
maximus:issue-169-asset-type-balance-categories
maximus:issue-67-feedback-widget
maximus:issue-97-cartes-page
maximus:issue-96-compare-refactor
maximus:issue-51-compte-maximus-oauth
maximus:issue-46-license-commands-entitlements
maximus:issue-48-gate-auto-updates
maximus:issue-47-license-ui-card
maximus:fix/simpl-resultat-54-argon2id-pin
maximus:fix/simpl-resultat-59-bump-vite
maximus:issue-43-update-picomatch
maximus:fix/simpl-resultat-41-category-time-report-filter
maximus:fix/simpl-resultat-31-dashboard-month-dropdown
maximus:fix/simpl-resultat-29-budget-visual-adjustments
maximus:fix/simpl-resultat-23-dashboard-category-ordering
maximus:fix/simpl-resultat-16-prev-year-budget
maximus:fix/simpl-resultat-19-tooltip-transparency
maximus:fix/simpl-resultat-17-remove-piechart-title
maximus:fix/simpl-resultat-16-budget-previous-year
1 commit
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9f628aa9f4 |
refactor(categories): unify both category trees' collapse state onto useCollapsibleGroups
Replace the two hand-rolled Set-of-ids collapse state machines in the category trees with the shared useCollapsibleGroups hook (a strict superset after #288), keeping each tree's distinct recursive render and CategoryTree's drag-and-drop untouched. - CategoryTree (Categories page): storageKey null + defaultExpanded true, so every parent opens with no seeding; drops the local Set + collectExpandable. - CategoryTaxonomyTree + guide page: storageKey null + defaultExpanded false (collapsed by default); exports a shared TAXONOMY_COLLAPSE_ACCESSORS. - Fix the guide's button bug: allExpanded = expanded.size > 0 flipped to "Collapse all" after opening a single node; now uses the hook's correct allExpanded (every group must be open). - Also migrate StepDiscover (4th consumer of CategoryTaxonomyTree, same button bug) onto the hook for a green build and consistency. Both trees pass a flattened node list to the bulk ops; behaviour preserved: Categories opens expanded, the guide/wizard open collapsed. Resolves #290 Generated autonomously by /autopilot run of 2026-07-15 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |