Skip to content

feat(status-pages): rename group collapseddefaultOpen and pull through Camp-A uptime spec#14

Merged
caballeto merged 1 commit intomainfrom
feat/status-page-component-tracking-and-default-open
Apr 22, 2026
Merged

feat(status-pages): rename group collapseddefaultOpen and pull through Camp-A uptime spec#14
caballeto merged 1 commit intomainfrom
feat/status-page-component-tracking-and-default-open

Conversation

@caballeto
Copy link
Copy Markdown
Contributor

Summary

Mirrors the upstream API change in devhelmhq/mono#261 (same branch name).

  • YAML + CLI flags: componentGroups[].collapseddefaultOpen (default true). The flag pair flips from --collapsed / --no-collapsed to --default-open / --no-default-open. The YAML schema description now explains the field as a seed value (renderer is free to override on active incidents).
  • Snapshot/diff plumbing: handlers.ts, zod-schemas.ts, schema.ts, spec-field-parity.test.ts, and partial-failure-convergence.test.ts use defaultOpen with semantic flip in fakes.
  • Generated: api-zod.generated.ts, api.generated.ts, docs/openapi/monitoring-api.json refreshed via scripts/regen-from.sh.
  • Camp-A uptime contract (component-centric tracking + new trackingSince map on StatusPageBatchComponentUptimeDto) is type-correct from the regenerated zod schemas — no hand-coded callers in this repo.

Test plan

  • npm run lint
  • npm run typecheck
  • npm test
  • make test-surface SURFACE=cli against the test stack
  • cli status-pages groups create … --no-default-open round-trips correctly via cli status-pages groups list

Made with Cursor

… through Camp-A uptime spec

Mirrors the upstream API change in `mono` (PR linked from same
feature branch). Two coordinated edits:

1. **YAML + CLI flags**: `componentGroups[].collapsed` → `defaultOpen`,
   default `true`. The flag pair flips from `--collapsed` /
   `--no-collapsed` to `--default-open` / `--no-default-open`. The
   YAML schema description now explains the field as a *seed* value
   (renderer is free to override on active incidents) so users
   reach for it correctly.

2. **Snapshot/diff plumbing**: handlers.ts, zod-schemas.ts, schema.ts,
   spec-field-parity.test.ts, and partial-failure-convergence.test.ts
   all use `defaultOpen`. Convergence fakes flipped accordingly.

Generated artifacts (`api-zod.generated.ts`, `api.generated.ts`,
`docs/openapi/monitoring-api.json`) refreshed via `scripts/regen-from.sh`.

The Camp-A uptime contract (component-centric tracking + the new
`trackingSince` map on `StatusPageBatchComponentUptimeDto`) is
already type-correct from the regenerated zod schemas — no
hand-coded callers in this repo.

Made-with: Cursor
@caballeto caballeto merged commit c06b2f2 into main Apr 22, 2026
3 checks passed
@caballeto caballeto deleted the feat/status-page-component-tracking-and-default-open branch April 22, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant