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

Abierto Apto para principiantes
#353 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

@Seyamalam ya está trabajando en esto.

Desde el 27/11/2026.

  • #382 de @Seyamalam — abierto

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
83/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend

Línea de trabajo

Empieza por src/components/UsageStatusBar.tsx, especialmente por UsageMeter, y sigue cómo UsageWindow.usedPercent y remainingPercent determinan la barra, la etiqueta y aria-label. Busca el patrón de configuración que usan las opciones de UI cercanas y añade una opción para seleccionar el uso consumido o el restante, conservando el valor predeterminado actual y la advertencia del 80 %. Estará listo cuando ambos modos muestren el porcentaje y la etiqueta accesible correspondientes; añade o actualiza las pruebas pertinentes si las hay.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
1k
Forks
144
Merge medio
4 d 19 h
PR fusionados (30 d)
28

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de johannesjo/parallel-code

Todos los issues de johannesjo/parallel-code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.