transport: shell-settings-live #154

Closed
opened 2026-07-27 20:44:27 +00:00 by ben · 1 comment
Owner

Parent

Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups.

Context

From #128's handback comment: shell settings (brandkit + update summary + community details) is a further single-owner migration, following the same request/response pattern already proven for members.

What to build

Wire the shell settings surface (brandkit, update summary, community details) onto the real control plane via the generated client.

Acceptance criteria

  • Given the shell settings surface, its production client is the generated one and every flow its tests drive works against a real control plane.
  • Given the OpenAPI spec, it describes every endpoint this surface consumes.
  • No fake remains in the settings surface's production wiring.

Blocked by

  • #128 (members transport pattern, done on main)

Task manifest

task: transport:shell-settings-live
implements_edge: "shell settings surface (brandkit, update summary, community details) reads/acts over real HTTP"
interface: "real endpoints + generated-client adoption for the shell settings surface"
seam: "integration test against a real control-plane process"
acceptance: "see Acceptance criteria above"
depends_on: []
out_of_scope: [screen changes, seam behaviour changes]
needs_human_decision: []
## Parent Split from #128 (parent: ADR 0037) per Ben's approval on 2026-07-27 to break the six-surface transport slice into per-surface follow-ups. ## Context From #128's handback comment: shell **settings** (brandkit + update summary + community details) is a further single-owner migration, following the same request/response pattern already proven for members. ## What to build Wire the shell settings surface (brandkit, update summary, community details) onto the real control plane via the generated client. ## Acceptance criteria - [ ] Given the shell settings surface, its production client is the generated one and every flow its tests drive works against a real control plane. - [ ] Given the OpenAPI spec, it describes every endpoint this surface consumes. - [ ] No fake remains in the settings surface's production wiring. ## Blocked by - #128 (members transport pattern, done on `main`) ## Task manifest ```yaml task: transport:shell-settings-live implements_edge: "shell settings surface (brandkit, update summary, community details) reads/acts over real HTTP" interface: "real endpoints + generated-client adoption for the shell settings surface" seam: "integration test against a real control-plane process" acceptance: "see Acceptance criteria above" depends_on: [] out_of_scope: [screen changes, seam behaviour changes] needs_human_decision: [] ```
Author
Owner

Done on main (commit c607dde).

The Shell Settings surface (DS/DS2) is live over HTTP:

  • Acceptance 1 (real generated client, every flow live): productionDashboardDeps().settings is one HttpSettingsClient (built on the generated client, no hand-rolled fetch) backing all three faces — the BrandKitSeam (current kit + validate/compile-preview/apply), the UpdatesMount summary, and the CommunitySource details. dashboard/tests/unit/settingsLive.test.ts drives every flow against a real control-plane process (a live Node HTTP server), camelizing reads and snakeizing bodies.
  • Acceptance 2 (spec describes every endpoint): six new endpoints in packages/openapi-spec/openapi.yaml — GET /api/v1/settings/brand-kit, POST .../validate|/preview|/apply, GET /settings/community, GET /settings/updates-summary — with generated.ts regenerated and check:client in sync.
  • Acceptance 3 (no fake in production wiring): FakeBrandKitSeam, FakeUpdatesMount and the hardcoded community details are all removed from productionDashboardDeps; the control plane serves the endpoints from a real brandkit-backed internal/controlapi/settings.go handler (its settings_integration_test.go drives the brandkit seam Validate/Compile end to end).

Scope note: the surface consumed its data synchronously (sync validate, sync summary(), plain draft/community props), so making it live required converting those seams to async request/response and loading the DS reads on mount — following #129's established sync→async transport precedent (which edited .vue components under the same out_of_scope: [screen changes]). The visible screen contract (fields, data-field/data-action/data-status, the DS↔DS2 flow) is unchanged.

Deferred follow-up (out of this slice, mirrors #155 following #128): the main.go composition wiring of a resting brandkit-backed settings service.

Verification: 650 dashboard tests + 7 new Go controlapi tests green; vue-tsc, eslint, prettier, go vet/gofmt clean.

Done on `main` (commit `c607dde`). The Shell Settings surface (DS/DS2) is live over HTTP: - **Acceptance 1 (real generated client, every flow live):** `productionDashboardDeps().settings` is one `HttpSettingsClient` (built on the generated client, no hand-rolled fetch) backing all three faces — the `BrandKitSeam` (current kit + validate/compile-preview/apply), the `UpdatesMount` summary, and the `CommunitySource` details. `dashboard/tests/unit/settingsLive.test.ts` drives every flow against a real control-plane process (a live Node HTTP server), camelizing reads and snakeizing bodies. - **Acceptance 2 (spec describes every endpoint):** six new endpoints in `packages/openapi-spec/openapi.yaml` — `GET /api/v1/settings/brand-kit`, `POST .../validate|/preview|/apply`, `GET /settings/community`, `GET /settings/updates-summary` — with `generated.ts` regenerated and `check:client` in sync. - **Acceptance 3 (no fake in production wiring):** `FakeBrandKitSeam`, `FakeUpdatesMount` and the hardcoded community details are all removed from `productionDashboardDeps`; the control plane serves the endpoints from a real brandkit-backed `internal/controlapi/settings.go` handler (its `settings_integration_test.go` drives the `brandkit` seam Validate/Compile end to end). Scope note: the surface consumed its data synchronously (sync `validate`, sync `summary()`, plain draft/community props), so making it live required converting those seams to async request/response and loading the DS reads on mount — following #129's established sync→async transport precedent (which edited `.vue` components under the same `out_of_scope: [screen changes]`). The visible screen contract (fields, `data-field`/`data-action`/`data-status`, the DS↔DS2 flow) is unchanged. Deferred follow-up (out of this slice, mirrors #155 following #128): the `main.go` composition wiring of a resting brandkit-backed settings service. Verification: 650 dashboard tests + 7 new Go controlapi tests green; `vue-tsc`, `eslint`, `prettier`, `go vet`/`gofmt` clean.
ben closed this issue 2026-07-27 21:22:03 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/idss#154
No description provided.