Skip to content

fix(platform-objects): sys_sso_provider resultDialog paths address the inner data payload#2842

Merged
os-zhuang merged 2 commits into
mainfrom
worktree-sso-dialog-path
Jul 11, 2026
Merged

fix(platform-objects): sys_sso_provider resultDialog paths address the inner data payload#2842
os-zhuang merged 2 commits into
mainfrom
worktree-sso-dialog-path

Conversation

@os-zhuang

@os-zhuang os-zhuang commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Problem

The console action runtime unwraps the { success, data } response envelope before resolving resultDialog field paths — so paths address the inner data payload (as create_user, two-factor and OAuth all do). sys_sso_provider's domain-verification dialog was the only spec written with a data. prefix, compensating for a runtime bug where apiHandler leaked the whole envelope.

Change

Drop the redundant data. prefix from the 3 DNS-record field paths in sys-sso-provider.object.ts:

  • data.dnsRecordTypednsRecordType
  • data.dnsRecordNamednsRecordName
  • data.dnsRecordValuednsRecordValue

Now consistent with every other object's resultDialog. Adds a regression assertion in platform-objects.test.ts.

⚠️ Release-coupled

Must ship together with the objectui runtime fix (companion PR: objectstack-ai/objectui#2396), which makes apiHandler unwrap the envelope. Once that lands, the old data. prefix double-nests and blanks this dialog; before it lands, dropping the prefix blanks it. Either half alone temporarily breaks the opt-in (OS_SSO_DOMAIN_VERIFICATION) SSO domain-verification reveal dialog — a niche admin surface.

Test

pnpm --filter @objectstack/platform-objects exec vitest run src/platform-objects.test.ts64/64 pass (incl. the new SysSsoProvider path assertion).

🤖 Generated with Claude Code

…e inner data payload

The console action runtime unwraps the `{ success, data }` response envelope
before resolving `resultDialog` field paths (matching create_user, two-factor and
OAuth). sys_sso_provider's domain-verification dialog was the only spec written
with a `data.` prefix — it compensated for a runtime bug where apiHandler leaked
the whole envelope. Once apiHandler unwraps correctly (objectstack-ai/objectui),
that prefix double-nests and blanks the DNS-record dialog.

Drop the prefix (`data.dnsRecordType` → `dnsRecordType`, …) so the paths are
relative to the inner data like every other object. Adds a regression assertion.

Release-coupled with the objectui apiHandler fix — ship together.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 11, 2026 2:13pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 1 package(s): @objectstack/platform-objects.

2 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:

  • content/docs/plugins/packages.mdx (via @objectstack/platform-objects)
  • content/docs/ui/setup-app.mdx (via @objectstack/platform-objects)

Advisory only. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs origin/main → pass the list as args.docs.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling labels Jul 11, 2026
@os-zhuang
os-zhuang merged commit 8f23746 into main Jul 11, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the worktree-sso-dialog-path branch July 11, 2026 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/s tests tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant