feat(onboarding): always show the Create Profile step (#21823)

The Create Profile step was skipped whenever the user already had a
first or last name (e.g. provided during sign-up or via SSO), because
the create-profile-pending flag was only set when both were empty.
Always set it so the step is presented during onboarding and the user
can review/confirm their profile; submitting it still clears the flag
and advances.

<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/twentyhq/twenty/pull/21823?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>
<!-- End of auto-generated description by cubic. -->
This commit is contained in:
Félix Malfait
2026-06-19 09:50:29 +02:00
committed by GitHub
parent a7afff7465
commit 40c9a11f43
@@ -345,16 +345,14 @@ export class SignInUpService {
);
}
if (user.firstName === '' && user.lastName === '') {
await this.onboardingService.setOnboardingCreateProfilePending(
{
userId: user.id,
workspaceId: workspace.id,
value: true,
},
queryRunner,
);
}
await this.onboardingService.setOnboardingCreateProfilePending(
{
userId: user.id,
workspaceId: workspace.id,
value: true,
},
queryRunner,
);
}
private async saveNewUser(