Repository navigation
fix(zaplytics): show week-start date on 31-90d custom bucket labels - #164
Conversation
Weekly buckets rendered month+year labels — every week in a month was indistinguishable. Threshold now matches groupZapsByPeriod bucketing.
Architecture Data flow No data-flow sequence changed in this PR. Review 2 findings · reviewed
|
getGroupByLabel still used pre-bucketing thresholds — 8–31d daily ranges said 'week', 32–90d weekly ranges said 'month'. Now matches groupZapsByPeriod exactly.
Summary
Follow-up to #162 (arrived post-merge): for 31–90 day custom ranges,
groupZapsByPeriodcreates weekly buckets butformatPeriodLabelrendered only month+year — every week in a month showed the same label. The label threshold now matches the bucketing thresholds (≤90d → month+day, >90d → month+year).Test plan
tsc --noEmitcleanGenerated with Devin