Work Report JSON labels previous results with edited calculation controls

Chiusa
#1,256 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@TimeToBuildBob ci sta già lavorando.

Dal 2/11/2026.

  • #1257 di @TimeToBuildBob — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start with the Work Report's exportJSON and the code that fills dailyData, and compare which category, break, date range and host inputs it reads at export time against those used when the query ran. Reproduce with the steps in the issue: calculate last7d for Work with 5-minute breaks, change the controls without recalculating, then export. Done means the JSON parameters match the snapshot that produced the results, and a failed recalculation keeps the previous successful report. Work is already in progress in linked PR #1257, so coordinate there first.

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

Descrizione

Work Report exportJSON reads current category/break/range controls rather than the inputs which produced dailyData. Reproduction on master 5c6b36fc: calculate last7d for Work with 5-minute breaks, edit to Leisure/last30d/30 minutes without recalculating, export JSON. The data remains the old report but parameters claim the new controls. Desired: snapshot effective categories, eligible queried hosts, break time, date range and resolved periods before awaiting the query; publish matching metadata and results only on success, retaining prior success on failure. Preserve JSON fields and real query/aggregation behavior. Bob task aw-webui-report-calculation-provenance owns this bounded repair; logical-day prerequisite #1201 is merged and verified. Filing-time actual-method offline probe reproduces the mismatch; no real invoice/user-data claim.

Lingua principale
TypeScript
Stelle
155
Fork
199
Merge medio
2g 9h
PR unite (30g)
111

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

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 ActivityWatch/aw-webui

Tutte le issue di ActivityWatch/aw-webui

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.