Skip to content

feat(platform-objects): surface phone number in create_user result dialog#3261

Merged
os-zhuang merged 2 commits into
mainfrom
claude/priceless-mirzakhani-5c8b08
Jul 19, 2026
Merged

feat(platform-objects): surface phone number in create_user result dialog#3261
os-zhuang merged 2 commits into
mainfrom
claude/priceless-mirzakhani-5c8b08

Conversation

@baozhoutao

Copy link
Copy Markdown
Contributor

Closes #3260

What

Adds { path: 'user.phoneNumber', label: 'Phone Number', format: 'text' } to sys_user.create_user's resultDialog.fields, so an admin creating a phone-based account sees the normalized E.164 sign-in number alongside the email and temporary password. The create-user response builds user.phoneNumber conditionally (packages/plugins/plugin-auth/src/admin-user-endpoints.ts) — it exists only for phone-based accounts.

Merge order

Depends on objectstack-ai/objectui#2674 (skip resultDialog fields whose path does not resolve). On older objectui, email-only users would get a dirty Phone Number row rendering undefined — merge the objectui fix first.

Verification

@objectstack/platform-objects tests: 213 passed. Changeset included (minor).

🤖 Generated with Claude Code

@vercel

vercel Bot commented Jul 19, 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 19, 2026 8:34am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation tooling size/s labels Jul 19, 2026
@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.

baozhoutao and others added 2 commits July 19, 2026 03:20
…alog

The create-user response's `user` object carries `phoneNumber` only for
phone-based accounts (admin-user-endpoints.ts builds it conditionally).
Declaring it is safe now that objectui's ActionResultDialog skips fields
whose path is absent from the payload — email-only users see no dirty
Phone Number row, and (same mechanism) manually-set passwords no longer
render an undefined Temporary Password row.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@os-zhuang
os-zhuang merged commit bc65105 into main Jul 19, 2026
16 checks passed
@os-zhuang
os-zhuang deleted the claude/priceless-mirzakhani-5c8b08 branch July 19, 2026 13:44
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 tooling

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(platform-objects): create_user result dialog should echo the sign-in phone number

2 participants