Improve auth UX and password strength across dashboards.

Remove business self-registration, localize SMS/auth errors, add password strength + confirm on reset/signup, and brand customer role as website user. Also include websites SSL sync UI updates.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Alireza Hassani
2026-08-08 23:29:55 +03:30
co-authored by Cursor
parent 656fc57494
commit aeaad0f645
22 changed files with 847 additions and 285 deletions
+23 -1
View File
@@ -1,5 +1,11 @@
import { apiRequest } from '../lib/api'
import type { DeployDomainResponse, DomainsListResponse, SyncSslResponse } from '../types/domain'
import type {
DeployDomainResponse,
DomainsListResponse,
IssueDomainSslResponse,
IssueWebsiteSslResponse,
SyncSslResponse,
} from '../types/domain'
export interface ListDomainsParams {
page?: number
@@ -67,3 +73,19 @@ export async function syncSsl() {
auth: true,
})
}
/** Batch-issue Let's Encrypt for storefronts missing SSL (websites VM). */
export async function issueWebsiteSsl() {
return apiRequest<IssueWebsiteSslResponse>('/domains/website-ssl', {
method: 'POST',
auth: true,
})
}
/** Issue Let's Encrypt for one storefront domain. */
export async function issueDomainSsl(domainId: number | string) {
return apiRequest<IssueDomainSslResponse>(`/domains/${domainId}/issue-ssl`, {
method: 'POST',
auth: true,
})
}