Skip to content

chore(sdk): bump to a31f576 — api-keys list, create and revoke agree with the route - #1050

Merged
thinkclay merged 1 commit into
mainfrom
chore/sdk-api-keys-envelope
Oct 6, 2026
Merged

thinkclay merged 1 commit into
mainfrom
chore/sdk-api-keys-envelope

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Closes #1015. Part of #1036 (wave 1).

Bumps packages/sdk from eed65aa to a31f576. That is exactly one commit, Scaffald/sdk#35 (merged):

  • list(), create() and revoke() unwrap the route's { data } envelope;
  • revoke() uses DELETE /v1/api-keys/:id (the POST /:id/revoke it called does not exist);
  • the SDK's mocks now match the route, and a real create → list → revoke round trip against the local api pins the contract.

Evidence

/office/api-keys with this SDK, built as a static export against the local stack, shows a real key created through the API. Before, it crashed into the error boundary on x.map is not a function. No ErrorBoundary or map is not a function appears in the console. scf-core tsc --noEmit is clean.

1440 390

At 390 the "Create API Key" button is pushed off-screen. That's the hand-rolled header in #1022, where APIKeysList.tsx is already listed. The scope chips overlapping "Never" are noted there too.

🤖 Generated with Claude Code

…with the route

Brings in Scaffald/sdk#35. The api wraps every api-keys response in { data };
list(), create() and revoke() returned the body verbatim (and revoke() called
a route that does not exist), so /office/api-keys crashed into the error
boundary on `x.map is not a function` for every office user (#1015).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@thinkclay thinkclay added this to the v1.20.0 — Fit and finish milestone Oct 6, 2026
@thinkclay thinkclay added bug Something isn't working Frontend labels Oct 6, 2026
@thinkclay
thinkclay merged commit 59bc612 into main Oct 6, 2026
16 checks passed
@thinkclay
thinkclay deleted the chore/sdk-api-keys-envelope branch October 6, 2026 20:29
thinkclay added a commit that referenced this pull request Oct 8, 2026
…ich commit it is (#1051) (#1077)

deploy-web.yml runs check out their own event SHA and finish in any order,
so an older push could take the dev alias after a newer one and roll dev
back (2026-10-06: dev lost #1050's fix). Now:

- A 'branch head' step compares the checked-out SHA with origin/<branch>
  just before eas deploy; an older run skips the deploy with a notice.
- The build writes dist/client/build.json {commit, ref, target, builtAt},
  served at /build.json.
- A 'deployed build is this commit' step (not continue-on-error) polls
  /build.json until it serves this SHA, or the newer head, else fails.

scripts/deploy-web-eas.sh (prod) gets the same stamp, refuses a dirty
working tree (#1073: an uncommitted edit shipped that way) and a
--skip-build whose dist was stamped from another commit, and checks the
per-deploy EAS URL's /build.json after the upload.

Closes #1051

Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Frontend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(api-keys): /office/api-keys crashes into the error boundary — the route wraps the list in {data}, the SDK returns the body verbatim

1 participant