Repository navigation
Release v1.5.9 — sessions enriched table (#191) - #267
Conversation
Upgrade the sessions list and detail views with computed duration, page/event aggregates, crash-free status badges, and default sort by duration aligned with summary KPI rules. Co-authored-by: Cursor <[email protected]>
…hed-table-191 Sessions enriched table (#191)
Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 4c451bb. Configure here.
| THEN EXTRACT(EPOCH FROM (ev.last_event_at - s."started_at")) | ||
| END, | ||
| 0 | ||
| )`; |
There was a problem hiding this comment.
Avg duration mismatches table
Medium Severity
The sessions list now computes duration_sec with a last_event_at fallback for open sessions, but the summary KPI still averages only ended_at − started_at for closed sessions. On the same page, long open sessions can rank at the top by duration while Avg duration stays much lower, so the headline metric and table disagree.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 4c451bb. Configure here.
| const h = Math.floor(m / 60); | ||
| const remM = m % 60; | ||
| return remM > 0 ? `${h}h ${remM}m` : `${h}h`; | ||
| } |
There was a problem hiding this comment.
Duration labels format inconsistently
Low Severity
This PR adds shared formatDurationSec with hour-level formatting for the table and session detail, but the sessions summary row still uses a separate local formatter without hours. The same duration in seconds can read differently between Avg duration and per-row duration on one screen.
Reviewed by Cursor Bugbot for commit 4c451bb. Configure here.


Summary
Test plan
pnpm lint && pnpm test && pnpm buildmain→ Railway deployv1.5.9and publish GitHub releaseMade with Cursor