docs(ui): F8-05 — sync inspector topic docs with the new compact rows
Tests · UI / test (pull_request) Successful in 11m1s

- order-composer.md describes the production row's apply-gate (two
  selects + ✓/✗) and the click-to-edit entry point for planetRename.
- cargo-routes-ux.md replaces the four-slot grid description with the
  new single-row dropdown + contextual actions and notes the
  "stays on the picked type" UX rule.
- science-designer-ux.md updates the production-picker integration
  description to the dropdown pair and refreshes the e2e walkthrough
  step.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
Ilia Denisov
2026-05-27 13:41:44 +02:00
parent 4a23c357e5
commit aee5f39a7e
3 changed files with 60 additions and 34 deletions
+16 -1
View File
@@ -62,7 +62,11 @@ transition. The validator (`lib/util/entity-name.ts`) is a TS port
of `pkg/util/string.go.ValidateTypeName`, exercised on every render
in the inline editor and re-run by the store on every `add`. The
submit pipeline filters the draft to `valid` entries only — any
`invalid` row blocks the Submit button.
`invalid` row blocks the Submit button. The entry point in the
inspector is the planet name itself: clicking it opens an inline
`<input>` with a single ✓ confirm icon on the right; Escape (or
leaving the inspector) cancels the edit without touching the
draft.
## Command status state machine
@@ -178,6 +182,17 @@ optimistic overlay rewrites `planet.production` using
mirrors the engine's `Cache.PlanetProductionDisplayName` so the
overlay stays byte-equal with the next server report.
The inspector surface that composes a `setProductionType`
(`lib/inspectors/planet/production.svelte`) is two dropdowns on
one row — a primary `industry / materials / research / ship`
plus a secondary one (tech / science / ship class) that appears
for the `research` and `ship` contexts — together with a green ✓
apply and yellow ✗ cancel icon. The ✓ button stays disabled
until the row selection differs from the planet's current
effective production; ✗ resets the local row state back to that
effective value without touching the draft. The Order tab is
the only place that can revoke an already-applied command.
### Collapse-by-target rule
`setProductionType` carries a collapse-by-target rule.