@devries-cameron20 / t3code-1 / commits / a4cc1367b0
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): show all usage breakdown periods (#7219)

Tristan Knight committed Aug 17, 2026 at 19:45 UTC a4cc1367b03ee0c1dc2b50fceac81ef5e63212e2
1 file changed +6 -4
apps/web/src/components/usage/UsagePage.tsx
+6 -4
@@ -61,8 +61,10 @@ export function UsagePage() {
61 : enumerateHourStarts(window.sinceTime, window.untilTime),
62 [window.sinceTime, window.untilTime],
63 );
64 - const recentPeriods = useMemo<readonly (DailyTotals | HourlyTotals)[]>(
65 - () => (isPast24Hours ? merged.hourly : merged.daily).toReversed().slice(0, 8),
64 + // Newest first: the window can run 90 periods, so the interesting end
65 + // belongs at the top of the table.
66 + const breakdownPeriods = useMemo<readonly (DailyTotals | HourlyTotals)[]>(
67 + () => (isPast24Hours ? merged.hourly : merged.daily).toReversed(),
68 [isPast24Hours, merged.daily, merged.hourly],
69 );
70
@@ -393,14 +395,14 @@ export function UsagePage() {
395 </tr>
396 </thead>
397 <tbody>
396 - {recentPeriods.length === 0 ? (
398 + {breakdownPeriods.length === 0 ? (
399 <tr>
400 <td colSpan={5} className="py-6 text-center text-muted-foreground">
401 No activity in this window.
402 </td>
403 </tr>
404 ) : (
403 - recentPeriods.map((period) => (
405 + breakdownPeriods.map((period) => (
406 <tr
407 key={"hourStart" in period ? period.hourStart : period.day}
408 className="border-b border-border/50"