Option to show usage as used instead of left, and potential further customization ideas

未关闭 适合新手
#353 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 4 天内回复

@Seyamalam 已经在做这个了。

开始于 2026年11月27日。

  • #382 来自 @Seyamalam —— 未关闭

评估

难度
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 :

  1. Allow to also show the weekly usage bar "inlined" (like the 5h hour one, and not only on hover)
  2. Allow to show Fable's separate weekly usage bar
  3. Support for multiple Claude accounts
  4. 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 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

johannesjo/parallel-code 的其他 Issue

查看 johannesjo/parallel-code 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。