Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(web): use a primary heading on the install page (#40194)

yyhfc8d0a018792
diff --git a/web/app/install/installForm.spec.tsx b/web/app/install/installForm.spec.tsx
index f60a9488f5f..7d2db250216 100644
--- a/web/app/install/installForm.spec.tsx
+++ b/web/app/install/installForm.spec.tsx
@@ -45,6 +45,7 @@ describe('InstallForm', () => {
render(<InstallForm />)
expect(await screen.findByLabelText('login.email')).toBeInTheDocument()
+ expect(screen.getByRole('heading', { level: 1 })).toHaveTextContent('login.setAdminAccount')
expect(screen.getByRole('button', { name: /login\.installBtn/ })).toBeInTheDocument()
})
diff --git a/web/app/install/installForm.tsx b/web/app/install/installForm.tsx
index 59ec18a52ee..dcd740f5055 100644
--- a/web/app/install/installForm.tsx
+++ b/web/app/install/installForm.tsx
@@ -105,9 +105,9 @@ const InstallForm = () => {
) : (
<>
<div className="sm:mx-auto sm:w-full sm:max-w-md">
- <h2 className="text-[32px] font-bold text-text-primary">
+ <h1 className="text-[32px] font-bold text-text-primary">
{t(($) => $.setAdminAccount, { ns: 'login' })}
- </h2>
+ </h1>
<p className="mt-1 text-sm text-text-secondary">
{t(($) => $.setAdminAccountDesc, { ns: 'login' })}
</p>