Skip to content

Add bar display mode and collapsible sidebar toggle#2

Merged
stevejkang merged 2 commits into
stevejkang:mainfrom
akasai:feat/bar-mode-and-collapsible-sidebar
May 3, 2026
Merged

Add bar display mode and collapsible sidebar toggle#2
stevejkang merged 2 commits into
stevejkang:mainfrom
akasai:feat/bar-mode-and-collapsible-sidebar

Conversation

@akasai
Copy link
Copy Markdown
Contributor

@akasai akasai commented Apr 30, 2026

Summary

  • Add displayMode option ("text" | "bar") for progress bar visualization
  • Add collapsible sidebar toggle (▼/▶) via title click
  • Fix valueColor to apply to percentage values instead of headerColor

Changes

Bar Display Mode

New displayMode: "bar" option renders usage as a visual progress bar with reset time:

▼ Claude Usage
juneyoung.kang@wantedlab.com
via oauth
 Session  ██████░░░░░░░░  31% (3h 16m)
 Weekly   ██░░░░░░░░░░░░  11% (4d 5h)

Default is "text" (existing behavior), so no breaking changes.

Collapsible Sidebar

Click the "Claude Usage" title to toggle content visibility:

  • ▼ = expanded (default)
  • ▶ = collapsed (title only)

valueColor Fix

Previously headerColor was applied to both labels and percentage values (< 51%).
Now headerColor only applies to labels, and valueColor applies to percentage values.

Element Before After
Labels (Session, Weekly…) headerColor headerColor (unchanged)
Percentage (< 51%) headerColor valueColor
Percentage (51-79%) #F0A875 #F0A875 (unchanged)
Percentage (≥ 80%) CLAUDE_ORANGE CLAUDE_ORANGE (unchanged)

Configuration

{
  "plugin": [["opencode-claude-usage", {
    "enabled": true,
    "displayMode": "bar"
  }]]
}
Option	Default	Description
displayMode	"text"	"text" shows percentage + reset time, "bar" shows progress bar + percentage + reset time

@akasai akasai force-pushed the feat/bar-mode-and-collapsible-sidebar branch from c39c6e5 to 0530bcf Compare April 30, 2026 07:06
@akasai akasai force-pushed the feat/bar-mode-and-collapsible-sidebar branch from 0530bcf to 05459a6 Compare April 30, 2026 07:08
Email and via-authMethod lines were missing the leading space that
Session/Weekly rows already had. Apply uniform 1-char indent to all
content lines for visual consistency. Update README examples to match.
Copy link
Copy Markdown
Owner

@stevejkang stevejkang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@stevejkang stevejkang merged commit 21b33c0 into stevejkang:main May 3, 2026
1 check passed
@akasai akasai deleted the feat/bar-mode-and-collapsible-sidebar branch May 6, 2026 00:24
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