Hive
fix(server): filter runs by command arguments
GitHub issue · Closed
What changed
- Filters Generate Runs and Cache Runs by
command_argumentsinstead of the commandnamefield. - Normalizes displayed command filter values by stripping the UI-only
tuistprefix before converting filters to Flop filters. - Adds a shared command formatter so run tables render full commands consistently, with sensible fallbacks like
tuist generateandtuist cachefor empty arguments. - Updates the local seed data to generate more realistic command arguments for
generate,cache, andtestevents. - Adds LiveView coverage for filtering by displayed command, prefix-only
tuistfilters, and empty command arguments.
Why
The dashboard displays commands as full CLI invocations, but the filter was querying the short name field (generate/cache). A user filtering by what they saw in the UI, such as tuist generate --configuration DebugStaging, could therefore get no rows even when matching runs existed.
Impact
Users can now filter run lists by the command text shown in the dashboard. Local development seed data is also easier to use when checking command filters because it includes realistic command variants instead of rows that all render as bare tuist.
Validation
mix test test/tuist_web/live/generate_runs_live_test.exs test/tuist_web/live/cache_runs_live_test.exs- Local browser check at
http://localhost:8247/tuist/tuist/module-cache/generate-runswith:filter_name_val=tuistfilter_name_val=tuist generate --configuration Debug
Both browser checks showed matching rows with full command labels rather than the empty state.
This fix is now available in server@1.215.1. Update to the Docker image ghcr.io/tuist/tuist:1.215.1 to get this change.