Improve dstack fleet table readability and ordering - #4093
Open
peterschmidt85 wants to merge 1 commit into
Open
Conversation
The fleets table was hard to scan: every status rendered in the same neutral white, no column was dimmed, and fleets came back in arbitrary order because the `/fleets/list` endpoint had no `ORDER BY`. Colors now follow one rule — blue for occupied or in-flight, green for ready, red for broken, gold for degraded, dim for settled — and bold is reserved for statuses that need attention. Note that the previous color map was partly dead: `grey` is not a valid rich color, so rich silently dropped those styles, including the bold. Dimming distinguishes the two row types. A fleet row describes what was requested (name, resources, candidate backends, price cap) and is dimmed throughout, so it only draws the eye when its status is not `active`. An instance row shows what actually exists and is billed, and stays bright. Also drops the `-` placeholders in favour of blank cells, and formats the max price range as `$0..1` rather than `$0..$1`. Fleets are now sorted newest-first, both in the CLI so that it works against existing servers, and in `list_project_fleet_models` so the endpoint is deterministic for other clients. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
dstack fleetoutput was hard to read. Three changes:🤖 Generated with Claude Code