Commit 1776d88
authored
🤖 refactor: remove VerticalTokenMeter component (#1227)
Remove VerticalTokenMeter now that we have the context usage indicator
in the chat area.
**Changes:**
- Removed `VerticalTokenMeter.tsx` and `ChatMetaSidebar.tsx` components
- Removed auto-collapse hysteresis logic (was based on chatAreaWidth)
- Added manual collapse/expand toggle using shared
`SidebarCollapseButton` component
- Both sidebars now use same collapse button style (20px width, `«»`
chevrons)
- Tab keyboard shortcuts (`Ctrl+1/2/3`) auto-expand the right sidebar if
collapsed
- Stories default to collapsed right sidebar; rightsidebar stories
explicitly expand
**Shared component:**
`src/browser/components/ui/SidebarCollapseButton.tsx`
- Used by both ProjectSidebar and RightSidebar
- `side` prop controls chevron direction
- Optional `shortcut` prop for tooltip
---
_Generated with `mux` • Model: `anthropic:claude-sonnet-4-20250514` •
Thinking: `none`_1 parent 8cdf42d commit 1776d88
File tree
10 files changed
+125
-337
lines changed- src
- browser
- components
- RightSidebar
- ui
- stories
- common/constants
10 files changed
+125
-337
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | 800 | | |
802 | 801 | | |
803 | 802 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
714 | 715 | | |
715 | 716 | | |
716 | 717 | | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
732 | 724 | | |
733 | 725 | | |
734 | 726 | | |
| |||
0 commit comments