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

Aperta Adatta ai principianti
#353 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 4 giorni

@Seyamalam ci sta già lavorando.

Dal 27/11/2026.

  • #382 di @Seyamalam — aperta

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
83/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Inizia da src/components/UsageStatusBar.tsx, in particolare da UsageMeter, e segui come UsageWindow.usedPercent e remainingPercent determinano la barra, l’etichetta e aria-label. Individua il modello di impostazione usato dalle opzioni UI vicine e aggiungi un’impostazione per selezionare l’utilizzo consumato o quello rimanente, mantenendo il valore predefinito attuale e l’avviso all’80%. Il lavoro è completato quando entrambe le modalità mostrano la percentuale e l’etichetta accessibile corrispondenti; aggiungi o aggiorna i test pertinenti, se presenti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
1k
Fork
144
Merge medio
4g 19h
PR unite (30g)
28

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di johannesjo/parallel-code

Tutte le issue di johannesjo/parallel-code

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.