carlos / platform Public

label-case-running-tile

Two console and CLI fixes Paul asked for on 2026-10-26.

1. Region labels read "London (UK)". regionlabel.ForCode upper-cases the code in brackets. The code stays lower case wherever it is a value: CLI flags (--region uk), JSON code fields and stored data. A code with no known place still shows as the bare code. Tests, docs/site/cli.md and the copy records follow; the copy records note this as Paul's direct ruling (no new Luna pass for a case change).

2. The overview's Running tile counted "?" for apps whose instances are all on other boxes. Root cause: appResourceMetrics skips remote rows, so an all-remote app asks the metrics sweep for no host and gets nil. assembleOverview read any nil as a failed sweep (MetricsUnavailable), so the tile said "?" / "no data right now" and the verdict "Can't tell right now", while the per-row counts from remoteFacts (boxAwake) were already right. Now MetricsUnavailable is set only when an instance on the console's own box needed the sweep. A new ResourcesUnavailable keeps the Resources tile exactly as before. No remote metrics sample is read.

Tests: internal/console/runningtile_test.go (two boxes: awake and asleep instances on box B; box C's report naming another account for the same host is ignored; another account's report alone still reads "?"), red before the fix; a mutation removing the account check in appFacts.host fails two of them. Targeted runs of console, dbdoor, regionlabel and the root package's label tests are green.

Census: one body change (app_overview.html), approval card docs/superpowers/notes/census-proposal-label-case-running-tile.md. Review: one Astra round (brief docs/superpowers/specs/CODEX-REVIEW-BRIEF-LABEL-CASE-RUNNING-TILE.md).

Commits 5
Discussions 0 0 open
Tasks 0/0 done

Discussions

  • No discussions on this branch yet.

Tasks

  • No tasks yet.

Activity