mirror of
https://git.meshkee.com/Meshkee/dashboards.git
synced 2026-08-11 22:30:58 +04:30
Show per-host SSL ensure results including www.
Avoid treating dashboard-only OK as storefront HTTPS success. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
0212148a73
commit
c5bdaad16b
@@ -294,7 +294,7 @@ export function WebsitesPage() {
|
|||||||
})
|
})
|
||||||
setError('')
|
setError('')
|
||||||
showToast(
|
showToast(
|
||||||
`Checking SSL for ${domain.host}, business.${domain.host}, customer.${domain.host}…`,
|
`Checking SSL for ${domain.host}, www.${domain.host}, business.${domain.host}, customer.${domain.host}…`,
|
||||||
'info',
|
'info',
|
||||||
)
|
)
|
||||||
|
|
||||||
@@ -310,9 +310,16 @@ export function WebsitesPage() {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
if (result.failed.length > 0) {
|
if (result.failed.length > 0) {
|
||||||
const detail = result.failed.map((f) => `${f.host}: ${f.error}`).join(' · ')
|
setError(result.message)
|
||||||
setError(detail)
|
showToast(
|
||||||
showToast(result.message, result.issued.length > 0 ? 'info' : 'error')
|
result.failed.map((f) => f.host).join(', ') + ' need attention',
|
||||||
|
result.issued.length > 0 ? 'info' : 'error',
|
||||||
|
)
|
||||||
|
showToast(result.message, 'info')
|
||||||
|
} else if (!result.sslEnabled) {
|
||||||
|
setError(result.message)
|
||||||
|
showToast('Storefront HTTPS is not valid yet (apex/www).', 'error')
|
||||||
|
showToast(result.message, 'info')
|
||||||
} else {
|
} else {
|
||||||
showToast(result.message || `SSL ok for "${domain.host}".`, 'success')
|
showToast(result.message || `SSL ok for "${domain.host}".`, 'success')
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ export interface IssueDomainSslResponse {
|
|||||||
sslEnabled: boolean
|
sslEnabled: boolean
|
||||||
hosts: {
|
hosts: {
|
||||||
apex: IssueDomainSslHostResult
|
apex: IssueDomainSslHostResult
|
||||||
|
www: IssueDomainSslHostResult
|
||||||
business: IssueDomainSslHostResult
|
business: IssueDomainSslHostResult
|
||||||
customer: IssueDomainSslHostResult
|
customer: IssueDomainSslHostResult
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user