Option to show usage as used instead of left, and potential further customization ideas
维护者通常 4 天内回复
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 83/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- frontend
调研方向
从 src/components/UsageStatusBar.tsx 开始,尤其是 UsageMeter,追踪 UsageWindow.usedPercent 和 remainingPercent 如何控制进度条、标签和 aria-label。找出相邻 UI 选项采用的设置模式,并添加一项设置,用于选择已使用或剩余用量,同时保留当前默认值和 80% 警告。完成标准是两种模式都显示对应的百分比和无障碍标签;如果存在相关测试,请添加或更新。
由索引模型根据 Issue 内容生成。
描述
Hello!
First of all, thank you for your work on this project. I've just discovered it today after looking for a multi-AI-session orchestration tool, and it looks very promising for the workflows I'm used to.
What are you trying to do?
I'm used to looking at my Claude Code usage on a custom status bar script I've developed, which looks like this :
[x] work : 5h ━───── 23% (↻ 18:00) 7d ━━━─── 51% (↻ 3d @ 19:00) fable ━───── 25% (↻ 3d @ 19:00)
[ ] perso: 5h ────── 0% (↻ 22:25) 7d ━━━─── 59% (↻ 2d @ 00:00) fable ━━──── 35% (↻ 2d @ 00:00) (api 1d old) · 1d ago
The first thing that felt weird to me when I opened Parallel Code is that it shows the progress bar inverted compared to my script :
5h ━━━━━━── 75% left
What would help?
A setting to show the usage meters as used instead of left: the bar fills up as usage grows, and the label reads 65% used. The default would stay as it is today. The data is already there (UsageWindow.usedPercent), so UsageMeter in src/components/UsageStatusBar.tsx would pick usedPercent or remainingPercent based on the setting, along with the label and aria-label. The amber warning at 80% used would stay as it is.
Here's a few extra ideas regarding that area of the UI :
- Allow to also show the weekly usage bar "inlined" (like the 5h hour one, and not only on hover)
- Allow to show Fable's separate weekly usage bar
- Support for multiple Claude accounts
- Customizable color thresholds (50% yellow, 75% orange, 90% red for example)
What do you do today instead?
I immediately reacted with a loud "WHAAAAAAAT?", because I read it as "75% used". Force of habit. 😅
Contributing
Happy to send a small PR (using Claude) if you're fine with the approach of just the used/left option. Open to discuss further customization too.
- 主要语言
- TypeScript
- 星标
- 1k
- 派生
- 144
- 平均合并
- 4 天 19 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
johannesjo/parallel-code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 75/100
johannesjo/parallel-code#385 ·
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
johannesjo/parallel-code#163 · 2 条评论 ·
维护者通常 4 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 12/100
johannesjo/parallel-code#375 · 2 条评论 ·
维护者通常 4 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
johannesjo/parallel-code#374 ·
维护者通常 4 天内回复
-
难度 4/5 3-5 天 新手友好度 38/100
johannesjo/parallel-code#359 ·
维护者通常 4 天内回复
查看 johannesjo/parallel-code 的全部 Issue
相似的 Issue
-
enhancement
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
ci
难度 2/5 1-3 小时 新手友好度 78/100
ClickHouse/clickhouse-js#1248 ·
维护者通常 1 天内回复
-
E2E: Darlehen-Test wartet auf die gebuchte Auszahlung, bevor er zur Liquiditätsvorschau wechselt未关闭technik
难度 2/5 1-3 小时 新手友好度 78/100
-
bug
难度 2/5 1-3 小时 新手友好度 67/100
SR5-FoundryVTT/SR5-FoundryVTT#2162 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 84/100
AhmedNAgy25/analysor#25 ·
维护者通常 1 天内回复