From 96960499ef197ae1ddf70b08994d4d94f24027ef Mon Sep 17 00:00:00 2001
From: yyh <92089059+lyzno1@users.noreply.github.com>
Date: Mon, 10 Aug 2026 10:26:10 +0800
Subject: [PATCH] fix(web): use primary headings on auth pages (#40192)
---
.../(shareLayout)/webapp-signin/check-code/page.tsx | 4 ++--
web/app/(shareLayout)/webapp-signin/normalForm.tsx | 4 ++--
web/app/signin/__tests__/normal-form.spec.tsx | 11 +++++++++++
web/app/signin/__tests__/one-more-step.spec.tsx | 11 +++++++++++
web/app/signin/check-code/__tests__/page.spec.tsx | 11 +++++++++++
web/app/signin/check-code/page.tsx | 4 ++--
.../signin/invite-settings/__tests__/page.spec.tsx | 6 ++++++
web/app/signin/invite-settings/page.tsx | 8 ++++----
web/app/signin/normal-form.tsx | 8 ++++----
web/app/signin/one-more-step.tsx | 4 ++--
web/app/signup/check-code/page.tsx | 4 ++--
web/app/signup/page.tsx | 4 ++--
web/app/signup/set-password/__tests__/page.spec.tsx | 6 ++++++
web/app/signup/set-password/page.tsx | 4 ++--
14 files changed, 67 insertions(+), 22 deletions(-)
diff --git a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
index 28518e998cc..f0d9e122856 100644
--- a/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
+++ b/web/app/(shareLayout)/webapp-signin/check-code/page.tsx
@@ -110,9 +110,9 @@ export default function CheckCode() {
{t(($) => $['checkCode.tipsPrefix'], { ns: 'login' })}
diff --git a/web/app/(shareLayout)/webapp-signin/normalForm.tsx b/web/app/(shareLayout)/webapp-signin/normalForm.tsx
index 8e4f085670c..542b85492ac 100644
--- a/web/app/(shareLayout)/webapp-signin/normalForm.tsx
+++ b/web/app/(shareLayout)/webapp-signin/normalForm.tsx
@@ -124,11 +124,11 @@ const NormalForm = () => {
<>
{t(($) => $.welcome, { ns: 'login' })}
{t(($) => $['checkCode.tipsPrefix'], { ns: 'login' })}
diff --git a/web/app/signin/invite-settings/__tests__/page.spec.tsx b/web/app/signin/invite-settings/__tests__/page.spec.tsx
index 907f95893a5..1fca054409b 100644
--- a/web/app/signin/invite-settings/__tests__/page.spec.tsx
+++ b/web/app/signin/invite-settings/__tests__/page.spec.tsx
@@ -113,6 +113,12 @@ describe('InviteSettingsPage', () => {
mockActivateMember.mockResolvedValue({ result: 'success' })
})
+ it('exposes the page title as the main heading', () => {
+ render(
+
+
{systemFeatures.branding.enabled
? t(($) => $.pageTitleForE, { ns: 'login' })
: t(($) => $.pageTitle, { ns: 'login' })}
-
+
+
{t(($) => $['checkCode.checkYourEmail'], { ns: 'login' })}
-
+
+
{t(($) => $.invalid, { ns: 'login' })}
-
+
+
{requiresAccountSetup
? t(($) => $.setYourAccount, { ns: 'login' })
: `${t(($) => $.join, { ns: 'login' })}${checkRes?.data?.workspace_name}`}
-