feat(quota): display weekly window reset countdown in the quota header
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- cli
Direzione di ricerca
Inizia dal punto di ingresso della tabella mmx quota e segui l’header e il rendering esistente del reset per riga introdotto da #240 e #243. Segui gli esempi di formattazione dell’issue per gli intervalli del conto alla rovescia settimanale, quindi verifica che l’header mostri la cella 1w Reset accanto all’output della quota esistente e gestisca le unità di tempo elencate.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
Extend the mmx quota table so the weekly reset countdown is visible alongside the existing per-row reset cell, following the same window-tag style introduced in #240.
Motivation
After #240 was implemented (#243), the table shows a reset countdown per row with a window tag (5h Reset …, 1d Reset …). The weekly window — which drives the Wk left metric — currently has no countdown anywhere in the output, so it is not possible to tell at a glance how long until the weekly quota refreshes.
Adding a 1w Reset … cell in the header row, aligned with the per-row reset column, makes the weekly cycle as scannable as the rolling 5-hour and daily windows already are.
Comparison
Current Output
╭──────────────────────────────────────────────────────────────────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │
├────────────────────────────────────────────────────────────┬─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
Proposed Output
When the weekly reset is 1–6 days away:
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 6d 23h │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 3d 1h │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
When the weekly reset is less than a day away:
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 23h │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 6h │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
When the weekly reset is less than an hour away:
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 53m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 7m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
When the weekly reset is less than a minute away:
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 54s │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
╭────────────────────────────────────────────────────────────┬─────────────────╮
│ MINIMAX TokenPlan Quota Week: 2026-08-31 — 2026-09-07 │ 1w Reset 9s │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ general Left 85% Wk left 97% │ 5h Reset 36m │
├────────────────────────────────────────────────────────────┼─────────────────┤
│ video Left 3 / 3 Wk left 21 / 21 │ 1d Reset 4h 36m │
╰────────────────────────────────────────────────────────────┴─────────────────╯
Notes on Formatting
- The new
1w Reset …cell lives in the header row, aligned with the existing per-row reset column, so the table gains one column to the right of theWeek:range. - The countdown uses the same unit ladder as the per-row cells: days + hours when ≥ 1 day, hours only below 1 day, minutes only below 1 hour, seconds only below 1 minute.
- When the countdown reaches zero, the cell can read
1w Reset nowor stay blank — happy to align on whichever feels consistent with the per-row behavior.
Discussion & Implementation
Same offer as in #240: I'm happy to discuss and adjust this design based on feedback, and if the maintainers approve, I can implement the change and open a pull request.
cc @SaladDay — thanks again for the work on #243; this builds on the same table.
- Lingua principale
- TypeScript
- Stelle
- 2.2k
- Fork
- 181
- Merge medio
- 9h 4m
- PR unite (30g)
- 13
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MiniMax-AI/cli
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
MiniMax-AI/cli#259 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
MiniMax-AI/cli#258 ·
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
MiniMax-AI/cli#260 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 76/100
MiniMax-AI/cli#257 ·
-
feat(quota): show remaining percentage with decimals (also ask: can the API return decimals?) Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
MiniMax-AI/cli#249 · 1 commento ·
Tutte le issue di MiniMax-AI/cli
Issue simili
-
Browser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
getsentry/sentry-javascript#24577 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
agilepathway/label-checker#640 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
copse-dev/agent-pane#2953 ·
-
[aw] Upgrade available Apertaagentic-workflows
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
githubnext/rig#534 ·
-
automation missing-model model-sync provider:pioneer
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
anomalyco/models.dev#7701 ·