Skip to content

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

Description

@baozhoutao

Problem

sys_user's create_user action supports phone-based accounts (phoneNumber param, #2766 V1.5), and the create-user response echoes the normalized number at user.phoneNumber (packages/plugins/plugin-auth/src/admin-user-endpoints.ts, built conditionally — only for phone-based users). But the action's resultDialog only shows Email and Temporary Password, so an admin who just created a phone-based account never sees the normalized E.164 number they must hand to the user.

Fix

Add { path: 'user.phoneNumber', label: 'Phone Number', format: 'text' } to the create_user resultDialog.fields in packages/platform-objects/src/identity/sys-user.object.ts.

Dependency

Blocked by objectstack-ai/objectui#2673: today ActionResultDialog renders a labelled undefined row for declared fields whose path is absent from the payload, so for email-only users the new field would render a dirty Phone Number row. The objectui fix (skip unresolved paths) must land first.

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions