Commit ff9876d
Fix Enterprise sidebar state persistence (#1520)
* Fix Enterprise sidebar state persistence
- Add enterprise route detection to SidebarState.sidebar_index
- Enterprise sections now properly retain accordion state after reload
- Integrates with existing sidebar indexing system
Fixes issue where Enterprise sidebar sections don't retain their
open/closed state after page reload, unlike other sections.
Co-Authored-By: [email protected] <[email protected]>
* Fix Components section accordion state and highlighting
- Create separate index calculations for enterprise_usage_items and enterprise_component_items
- Update sidebar_comp function to accept separate enterprise indices
- Components section now properly retains accordion state and highlights active items
- Follows existing pattern used by other multi-section sidebars
Resolves issue where Components section accordion would close when clicking items
and items wouldn't get highlighted due to shared enterprise_index parameter.
Co-Authored-By: [email protected] <[email protected]>
---------
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: [email protected] <[email protected]>1 parent aa6ced9 commit ff9876d
2 files changed
+10
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
381 | 381 | | |
382 | 382 | | |
383 | 383 | | |
384 | | - | |
| 384 | + | |
| 385 | + | |
385 | 386 | | |
386 | 387 | | |
387 | 388 | | |
| |||
597 | 598 | | |
598 | 599 | | |
599 | 600 | | |
600 | | - | |
| 601 | + | |
601 | 602 | | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
605 | 606 | | |
606 | 607 | | |
607 | | - | |
| 608 | + | |
608 | 609 | | |
609 | 610 | | |
610 | 611 | | |
| |||
637 | 638 | | |
638 | 639 | | |
639 | 640 | | |
640 | | - | |
| 641 | + | |
| 642 | + | |
641 | 643 | | |
642 | 644 | | |
643 | 645 | | |
| |||
653 | 655 | | |
654 | 656 | | |
655 | 657 | | |
656 | | - | |
| 658 | + | |
| 659 | + | |
657 | 660 | | |
658 | 661 | | |
659 | 662 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
54 | 56 | | |
55 | 57 | | |
56 | 58 | | |
| |||
0 commit comments