Cambio nome

This commit is contained in:
2026-03-19 16:58:23 +01:00
parent c34d6bb080
commit 83e494e171
29 changed files with 105 additions and 105 deletions
@@ -19,14 +19,14 @@ const STATE_COLORS: Record<PecState, string> = {
}
const STATE_ICONS: Record<PecState, string> = {
draft: '📝',
queued: '',
sent: '📤',
accepted: '',
delivered: '📬',
received: '📥',
anomaly: '⚠️',
failed: '',
draft: '',
queued: '',
sent: '',
accepted: '',
delivered: '',
received: '',
anomaly: '',
failed: '',
}
const TYPE_COLORS: Record<string, string> = {
+5 -5
View File
@@ -39,7 +39,7 @@ export function useWebSocket() {
if (!message.is_read) {
const from = message.from_address || 'Mittente sconosciuto'
const subject = message.subject || '(nessun oggetto)'
toast.success(`📨 Nuova PEC da ${from}: ${subject}`, {
toast.success(` Nuova PEC da ${from}: ${subject}`, {
duration: 5000,
id: `new-msg-${message.id}`,
})
@@ -55,7 +55,7 @@ export function useWebSocket() {
}
updateMailboxStatus(mailbox_id, status, error_msg)
if (status === 'error') {
toast.error(`⚠️ Errore sincronizzazione casella`, { duration: 8000 })
toast.error(` Errore sincronizzazione casella`, { duration: 8000 })
}
break
}
@@ -67,16 +67,16 @@ export function useWebSocket() {
mailbox_id: string
}
if (status === 'sent') {
toast.success(' PEC inviata con successo', { duration: 4000 })
toast.success(' PEC inviata con successo', { duration: 4000 })
} else if (status === 'failed') {
toast.error(' Invio PEC fallito definitivamente', { duration: 8000 })
toast.error(' Invio PEC fallito definitivamente', { duration: 8000 })
}
break
}
case 'send_job:anomaly': {
toast.error(
'⚠️ Anomalia invio PEC: nessuna ricevuta di accettazione entro 24h',
' Anomalia invio PEC: nessuna ricevuta di accettazione entro 24h',
{ duration: 10000 },
)
break
+2 -2
View File
@@ -260,14 +260,14 @@ export function ComposePage() {
<option value="">Seleziona casella...</option>
{activeCaselle.map((mb) => (
<option key={mb.id} value={mb.id}>
{mb.fromVbox ? '📥 ' : ''}{mb.display_name || mb.email_address} ({mb.email_address})
{mb.fromVbox ? ' ' : ''}{mb.display_name || mb.email_address} ({mb.email_address})
</option>
))}
</select>
{activeCaselle.some((m) => m.fromVbox) && (
<p className="text-xs text-purple-600 flex items-center gap-1">
<Filter className="h-3 w-3" />
Le caselle con 📥 sono accessibili tramite Virtual Box
Le caselle con sono accessibili tramite Virtual Box
</p>
)}
</>
+1 -1
View File
@@ -825,7 +825,7 @@ function MessageRow({
{/* Indicatore allegati */}
{message.has_attachments && (
<span className="text-xs text-muted-foreground">📎</span>
<span className="text-xs text-muted-foreground"></span>
)}
</div>
</div>
@@ -229,9 +229,9 @@ function ChannelsTab({ onEdit }: ChannelsTabProps) {
mutationFn: (id: string) => notificationsApi.testChannel(id),
onSuccess: (result) => {
if (result.success) {
toast.success(` ${result.message}`)
toast.success(` ${result.message}`)
} else {
toast.error(` ${result.message}`)
toast.error(` ${result.message}`)
}
},
onError: (e) => toast.error(getErrorMessage(e)),
@@ -234,7 +234,7 @@ function PermissionRow({ perm, mailboxId, onRevoke }: PermissionRowProps) {
: 'border-muted-foreground/40 bg-background hover:border-primary',
)}
>
{perm[field] && <span className="text-xs"></span>}
{perm[field] && <span className="text-xs"></span>}
</button>
</td>
))}
+5 -5
View File
@@ -219,8 +219,8 @@ export function SettingsPage() {
toast.success(
updated.archival_mode === 'production'
? ' Archiviazione attivata in modalità PRODUZIONE'
: '🧪 Archiviazione impostata in modalità mock'
? ' Archiviazione attivata in modalità PRODUZIONE'
: ' Archiviazione impostata in modalità mock'
)
} catch (err: unknown) {
const msg = (err as { response?: { data?: { detail?: string } } })
@@ -510,12 +510,12 @@ export function SettingsPage() {
Vengono salvate cifrate (AES-256-GCM).
{archivalSettings?.conservatore_username_configured && (
<span className="ml-1 text-green-600 font-medium">
Username configurata
Username configurata
</span>
)}
{archivalSettings?.conservatore_password_configured && (
<span className="ml-2 text-green-600 font-medium">
Password configurata
Password configurata
</span>
)}
</p>
@@ -613,7 +613,7 @@ export function SettingsPage() {
Credenziali:{' '}
{archivalSettings.conservatore_username_configured &&
archivalSettings.conservatore_password_configured
? <strong className="text-green-700">Configurate </strong>
? <strong className="text-green-700">Configurate </strong>
: <span className="text-gray-500">Non configurate</span>
}
</li>
@@ -276,7 +276,7 @@ function VBoxCard({
</div>
) : (
<p className="text-xs text-amber-600 mt-1">
Nessuna casella PEC associata
Nessuna casella PEC associata
</p>
)}
</div>
@@ -581,7 +581,7 @@ function VBoxFormDialog({ open, editingVbox, onClose, onSaved }: VBoxFormDialogP
)}
{(selectedMailboxIds ?? []).length === 0 && availableMailboxes.length > 0 && (
<p className="text-xs text-amber-600">
Seleziona almeno una casella PEC reale da associare.
Seleziona almeno una casella PEC reale da associare.
</p>
)}
</div>