feat: rename restore targets and show the application next to them

- PUT /api/v1/restore-targets/:id changes only the display name (admin, validated, audited); ids,
  identity, relations and jobs are untouched
- Relations console: Application column, inline rename, application in the target pickers
- Refresh screen: the application on each card
- registering a target suggests '<application> · <database>'

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-15 14:57:46 +07:00
parent 76999f06b8
commit c6dd52c700
12 changed files with 225 additions and 18 deletions

View File

@@ -349,7 +349,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
}
"/api/v1/refresh-runs/:id" => Uuid::parse_str(&w.run).unwrap(),
"/api/v1/orbits/:id/environment" => a.orbit,
"/api/v1/restore-targets/:id/environment" => a.target,
"/api/v1/restore-targets/:id" | "/api/v1/restore-targets/:id/environment" => a.target,
"/api/v1/relations/:id"
| "/api/v1/relations/:id/access"
| "/api/v1/relations/:id/access/:grant" => a.relation,
@@ -374,6 +374,7 @@ fn recipe(w: &World, row: &Row) -> (String, Option<Value>) {
("POST", "/api/v1/orbits") => Some(
json!({"name": "created", "provider": "filesystem", "source": "filesystem", "provider_config": {"path": "/nonexistent"}}),
),
("PUT", "/api/v1/restore-targets/:id") => Some(json!({"name": "renamed"})),
("PUT", "/api/v1/orbits/:id/retention") => Some(json!({"decay_preset": "week-of-dailies"})),
("PUT", "/api/v1/orbits/:id/outpost") => Some(json!({"outpost_id": a.outpost})),
("POST", "/api/v1/reconstitute") => {