feat(quota): display weekly window reset countdown in the quota header

Aperta
#248 1 commento 1 reazione 0 assegnatari Vedi su GitHub

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 the Week: 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 now or 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

  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 MiniMax-AI/cli

Tutte le issue di MiniMax-AI/cli

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.