Skip to content

Conversation

@wangsijie
Copy link
Contributor

Summary

Add optional show_success parameter that allows displaying the built-in success page with a "Done" button before redirecting to the redirect URL.

Problem

Currently, when the redirect parameter is provided, the account center immediately redirects after a successful operation (e.g., email update, password change). This behavior can be unfriendly as users don't get visual confirmation of the success.

Solution

Add a new optional show_success parameter:

  • When show_success=1 or show_success=true is provided along with a redirect parameter, the user will see the success confirmation page first
  • A "Done" button is displayed on the success page
  • Clicking "Done" proceeds to the redirect URL
  • Without show_success, the existing behavior is preserved (immediate redirect)

Usage

/account/email?redirect=https://example.com&show_success=1

Files changed

  • packages/account/src/utils/account-center-route.ts - Add show_success parameter handling
  • packages/account/src/pages/UpdateSuccess/index.tsx - Show Done button when show_success is set
  • packages/phrases-experience/src/locales/*/action.ts - Add "done" translation for 18 languages

Test plan

  • Verify redirect without show_success still redirects immediately after success
  • Verify redirect with show_success=1 shows success page with "Done" button
  • Verify clicking "Done" button redirects to the redirect URL
  • Test across different locales to ensure "Done" button text renders correctly

…irect

Add optional `show_success` parameter that allows displaying the built-in
success page with a "Done" button before redirecting to the redirect URL.

When `show_success=1` or `show_success=true` is provided along with a
`redirect` parameter, the user will see the success confirmation page
first and can click "Done" to proceed to the redirect URL.

Without `show_success`, the existing behavior is preserved - immediate
redirect to the redirect URL upon success.
@github-actions
Copy link

github-actions bot commented Jan 2, 2026

COMPARE TO master

Total Size Diff 📈 +2.11 KB

Diff by File
Name Diff
packages/account/src/pages/UpdateSuccess/index.tsx 📈 +737 Bytes
packages/account/src/utils/account-center-route.ts 📈 +1.04 KB
packages/phrases-experience/src/locales/ar/action.ts 📈 +16 Bytes
packages/phrases-experience/src/locales/de/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/en/action.ts 📈 +16 Bytes
packages/phrases-experience/src/locales/es/action.ts 📈 +17 Bytes
packages/phrases-experience/src/locales/fr/action.ts 📈 +20 Bytes
packages/phrases-experience/src/locales/it/action.ts 📈 +17 Bytes
packages/phrases-experience/src/locales/ja/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/ko/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/pl-pl/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/pt-br/action.ts 📈 +22 Bytes
packages/phrases-experience/src/locales/pt-pt/action.ts 📈 +22 Bytes
packages/phrases-experience/src/locales/ru/action.ts 📈 +24 Bytes
packages/phrases-experience/src/locales/th/action.ts 📈 +39 Bytes
packages/phrases-experience/src/locales/tr-tr/action.ts 📈 +17 Bytes
packages/phrases-experience/src/locales/uk-ua/action.ts 📈 +24 Bytes
packages/phrases-experience/src/locales/zh-cn/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/zh-hk/action.ts 📈 +18 Bytes
packages/phrases-experience/src/locales/zh-tw/action.ts 📈 +18 Bytes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants