fix(platform-objects): sys_sso_provider resultDialog paths address the inner data payload#2842
Merged
Conversation
…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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
📓 Docs Drift CheckThis PR changes 1 package(s): 2 hand-written doc(s) reference the affected code and may need an implementation-accuracy re-verification:
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The console action runtime unwraps the
{ success, data }response envelope before resolvingresultDialogfield paths — so paths address the innerdatapayload (ascreate_user, two-factor and OAuth all do).sys_sso_provider's domain-verification dialog was the only spec written with adata.prefix, compensating for a runtime bug whereapiHandlerleaked the whole envelope.Change
Drop the redundant
data.prefix from the 3 DNS-record field paths insys-sso-provider.object.ts:data.dnsRecordType→dnsRecordTypedata.dnsRecordName→dnsRecordNamedata.dnsRecordValue→dnsRecordValueNow consistent with every other object's
resultDialog. Adds a regression assertion inplatform-objects.test.ts.Must ship together with the objectui runtime fix (companion PR: objectstack-ai/objectui#2396), which makes
apiHandlerunwrap the envelope. Once that lands, the olddata.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.ts→ 64/64 pass (incl. the newSysSsoProviderpath assertion).🤖 Generated with Claude Code