five-on-it / apps/client/src/ui/studio/Inspector
apps/client/src/ui/studio/Inspector
The studio's inspector: the selected element of a spec (a city's, a grid town's, a region's) as a form made from its template's JSON Schema (@foi/catalogue's templateJsonSchema, the one the API serves): a list for each choice, a number, a box to tick or a text for the plain fields, each with the schema's words for it beneath, JSON for the rest (points, lists of points, arms, lines), and the whole element as JSON beside, so every field of the spec is reachable. Its heading says what it is; what the page adds (a road's points, what names the element) comes after its fields. A change is the element replaced; Delete removes it, or says why it cannot.