Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Generated with mux

Changes

  • Tab styling: Restyled from heavy border-bottom accent to subtle pill/toggle style matching app aesthetic

    • Using bg-hover for active state, consistent with ToggleGroup pattern
    • Smaller text-xs font, compact padding
  • Dynamic tab data:

    • Costs tab shows session cost (e.g. "Costs $0.56")
    • Review tab shows read/total hunks (e.g. "Review 34/56")
    • Dynamic portions use smaller text (text-[10px]) and muted color for visual distinction
    • Review counter dims when all hunks are read
  • Resize handle:

    • Moved to left of VerticalTokenMeter
    • 2px width with subtle border color, highlights on hover/active

- Replace heavy border-bottom accent with subtle pill/toggle style
- Use bg-hover for active state, matching ToggleGroup pattern
- Reduce text size to text-xs for consistency
- Compact padding and gap between tabs
- Use text-muted/text-foreground pattern for inactive/active states
- Costs tab shows session cost (e.g. 'Costs $0.56')
- Review tab shows read/total hunks (e.g. 'Review 34/56')
- Review counter dims when all hunks are read
- Make resize handle transparent by default (visible on hover)
- Add subtle background (bg-background/50) to dynamic portions
- Reduce font size to text-[10px] for badge-like appearance
- Add rounded corners and padding for chip/badge styling
- Resize handle now at left edge (before VerticalTokenMeter)
- Reduced width from w-1 to w-px (1px)
- Shows subtle border color by default (bg-border-light)
- Highlights on hover/active (bg-accent)
@ammario ammario merged commit 1ed1e4e into main Dec 12, 2025
20 checks passed
@ammario ammario deleted the sidebar-8ntw branch December 12, 2025 17:27
ammario pushed a commit that referenced this pull request Dec 12, 2025
_Generated with `mux`_

Follow-up to #1125 - adds Storybook coverage for the RightSidebar tab
styling changes.

## Changes

- **ORPC mock enhancements**:
  - Add `MockSessionUsage` type matching `SessionUsageFileSchema`
  - Add `sessionUsage` option to mock client factory
  - Wire up `getSessionUsage` to return mock data per workspace

- **Story helper updates**:
  - Extend `setupSimpleChatStory` to accept `sessionUsage` option

- **New stories** (`App/RightSidebar`):
  - `CostsTabWithCost`: Shows tab with \bash.56 session cost
  - `CostsTabSmallCost`: Shows \$<0.01 for tiny costs
  - `CostsTabLargeCost`: Shows \2.34 for larger sessions
  - `CostsTabNoCost`: Empty state (no cost in tab label)
  - `ReviewTabSelected`: Review panel visible
  - `SwitchToReviewTab`: Interaction test for tab switching
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.

2 participants