Skip to content

feat(devbox): show running and created-in-timeframe counts in list#236

Draft
jason-rl wants to merge 1 commit into
mainfrom
jason/devbox-list-counts
Draft

feat(devbox): show running and created-in-timeframe counts in list#236
jason-rl wants to merge 1 commit into
mainfrom
jason/devbox-list-counts

Conversation

@jason-rl
Copy link
Copy Markdown
Contributor

@jason-rl jason-rl commented May 14, 2026

Description

Display two new counts from the devbox list API in the TUI statistics bar:

  • running count (green): number of devboxes currently in RUNNING state
  • created in range (blue): number of devboxes created in the queried time range (only shown when a time range is specified)

Changes:

  • list.tsx: extend API response type cast to include running_count and created_in_timeframe_count, extract and pass them through
  • useCursorPagination.ts: add runningCount and createdInTimeframeCount state and expose them from the hook
  • Statistics bar: display the new counts between "total" and page info

Motivation

Depends on runloopai/runloop#9295 which adds running_count and created_in_timeframe_count to the devbox list API response.

Testing

  • Build succeeds (pre-existing nanotar type issue resolved by pnpm install)
  • Lint passes with only pre-existing warnings
  • Counts only display when values are defined and > 0

… list

Show the number of running devboxes and devboxes created in the
queried time range in the devbox list statistics bar. Counts are
reset when filters change and also extracted from the background
count fetch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jason-rl jason-rl force-pushed the jason/devbox-list-counts branch from d8ed117 to 4e31acc Compare May 14, 2026 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant