fix: update project disabled messages for clarity and consistency

This commit is contained in:
Dries Augustyns
2026-04-24 19:21:07 +02:00
parent 1c89ed083e
commit d7eb85ffdd
10 changed files with 84 additions and 68 deletions
+5 -5
View File
@@ -63,7 +63,7 @@ export function SecuritySettings({metrics, isLoading}: SecuritySettingsProps) {
<AlertCircle className="h-4 w-4" />
<AlertTitle>Project Disabled</AlertTitle>
<AlertDescription>
This project has been disabled due to security violations. Contact support to resolve.
This project has been disabled. Please contact support for more details.
</AlertDescription>
</Alert>
)}
@@ -73,8 +73,8 @@ export function SecuritySettings({metrics, isLoading}: SecuritySettingsProps) {
<AlertCircle className="h-4 w-4" />
<AlertTitle>Critical</AlertTitle>
<AlertDescription>
Your bounce or complaint rates have exceeded acceptable levels. Review your contact lists and sending
practices to avoid project suspension.
Your account requires immediate attention. Please contact support or review your sending practices to
avoid suspension.
</AlertDescription>
</Alert>
)}
@@ -84,8 +84,8 @@ export function SecuritySettings({metrics, isLoading}: SecuritySettingsProps) {
<AlertTriangle className="h-4 w-4" />
<AlertTitle>Warning</AlertTitle>
<AlertDescription>
Your bounce or complaint rates are approaching limits. Review your contact lists and remove invalid
addresses to maintain good standing.
Your account health needs attention. Review your contact lists and sending practices to maintain good
standing.
</AlertDescription>
</Alert>
)}
@@ -29,8 +29,8 @@ export function SecurityWarningBanner({status}: SecurityWarningBannerProps) {
<div className="space-y-2 flex-1">
<p className={`text-sm ${messageColor}`}>
{hasCriticalViolations
? 'Your bounce or complaint rates have exceeded acceptable levels. Review your contact lists and sending practices to avoid project suspension.'
: 'Your bounce or complaint rates are approaching limits. Review your contact lists and remove invalid addresses to maintain good standing.'}
? 'Your account requires immediate attention. Review your sending practices to avoid suspension. Contact support for more details.'
: 'Your account health needs attention. Review your contact lists and sending practices to maintain good standing.'}
</p>
</div>
<Button asChild size="sm" variant="outline" className="w-full sm:w-auto flex-shrink-0">
+2 -13
View File
@@ -95,22 +95,11 @@ export default function Index() {
<AlertDescription className="flex flex-col sm:flex-row sm:items-start sm:justify-between gap-3">
<div className="space-y-2 flex-1">
<p className="text-sm font-medium">
This project has been disabled due to security violations. All scheduled campaigns and workflows
have been cancelled. The project is now in read-only mode - you can view your data but cannot
This project has been disabled and is now in read-only mode. You can view your data but cannot
create, update, or delete anything.
</p>
{securityMetrics && securityMetrics.status.violations.length > 0 && (
<>
<p className="text-sm font-medium mt-3">Security violations that caused suspension:</p>
<ul className="list-disc list-inside space-y-1 text-sm text-red-800">
{securityMetrics.status.violations.map((violation, idx) => (
<li key={idx}>{violation}</li>
))}
</ul>
</>
)}
<p className="text-xs text-red-800 mt-2">
Please contact support to resolve this issue and get your project re-enabled.
Please contact support for more details and to get your project re-enabled.
</p>
</div>
<Button asChild size="sm" variant="outline" className="w-full sm:w-auto flex-shrink-0">