Repository navigation
feat(trueforge-ui): denser Agents library with usage columns - #1102
innoavator wants to merge 1 commit into
Conversation
Show creator under the name, two-line config with separate MCP/skill tooltips, and per-page sessions/spend/14d sparkline/last-run from existing metrics and sessions ports. Co-authored-by: Cursor <cursoragent@cursor.com>
🦋 Changeset detectedLatest commit: a4db85b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 3 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 a4db85b. Configure here.
| if (hours < 24) return `${String(hours)}h ago`; | ||
| const days = Math.floor(hours / 24); | ||
| return `${String(days)}d ago`; | ||
| } |
There was a problem hiding this comment.
Last run treats missing data as never
Medium Severity
formatLastRunAgo maps any missing timestamp to Never, and last-run loading treats failed listSessions calls, unloaded usage, and an empty session list the same way. Sessions and spend already show an em dash when data is unavailable, so last run can claim an agent never ran when the fetch failed or has not finished.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit a4db85b. Configure here.
| width={width} | ||
| height={height} | ||
| viewBox={`0 0 ${String(width)} ${String(height)}`} | ||
| className="cursor-crosshair overflow-visible text-teal-700 dark:text-teal-300" |
There was a problem hiding this comment.
Cost sparkline ignores metric tokens
Low Severity
The 14-day cost sparkline is colored with text-teal-700 / dark:text-teal-300 instead of the shared cost metric tokens. Cost meters and cards already use success-bg, so the same spend series no longer matches across library and metrics UI.
Triggered by learned rule: Prefer theme tokens over hardcoded colors
Reviewed by Cursor Bugbot for commit a4db85b. Configure here.
| const ms = Date.parse(iso); | ||
| if (Number.isNaN(ms)) return iso; | ||
| return new Intl.DateTimeFormat(undefined, { month: 'short', day: 'numeric' }).format(new Date(ms)); | ||
| } |
There was a problem hiding this comment.
Sparkline day uses local timezone
Medium Severity
formatSparklineDay formats backend UTC day-bucket timestamps with the local calendar. In timezones west of UTC, a midnight UTC point shows as the previous day, so the Daily, 14d hover tooltip names the wrong date.
Reviewed by Cursor Bugbot for commit a4db85b. Configure here.


Summary
/library) table: nest creator under the agent name, two-line configuration (model + MCP/skills), and keep schedules + Try.Test plan
/librarywith metrics + sessions enabled and confirm Sessions / Spend / Daily, 14d / Last run columns populate for the current pageMade with Cursor
Note
Medium Risk
Adds N+1 metrics/session fetches when the library opens with those servers enabled, which may affect load time on large pages; otherwise UI-only with graceful degradation when ports are missing.
Reviewed by Cursor Bugbot for commit a4db85b. Bugbot is set up for automated code reviews on this repo. Configure here.