Refactor Radar UI: enhance sync feedback section with improved layout and add sync button for Gmail allowlist. Update styling for better user experience.

This commit is contained in:
2026-08-21 09:06:31 -04:00
parent d2488df4d9
commit 55e6edcde4

View File

@ -74,9 +74,17 @@ $statusClass = static function (string $status): string {
Tables absentes. Exécuter <code class="font-mono">sql/IDEE-4-radar-proto.sql</code> sur la BD CRM de <strong>dev</strong>, puis recharger.
</div>
<?php else: ?>
<div class="rounded-xl border border-zinc-200 bg-white px-4 py-3 text-sm text-zinc-600 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-300">
Sync = Gmail readonly sur la mailbox allowlist (SA + DWD). Analyse IA (MSOP-3) pas encore.
Si erreur token : ajouter le scope <code class="font-mono">gmail.readonly</code> au SA dans Google Admin.
<div class="rounded-xl border border-zinc-200 bg-white px-4 py-4 text-sm text-zinc-600 dark:border-zinc-800 dark:bg-zinc-900 dark:text-zinc-300">
<div class="flex flex-wrap items-center justify-between gap-3">
<p class="m-0 max-w-2xl">
Sync = Gmail readonly sur <span class="font-mono text-xs"><?= esc(implode(', ', $allowlist)) ?></span>.
Analyse IA (MSOP-3) pas encore.
</p>
<a href="<?= esc($syncUrl) ?>"
class="inline-flex shrink-0 items-center rounded-lg bg-indigo-600 px-4 py-2.5 text-sm font-semibold text-white hover:bg-indigo-500">
Sync Gmail (v0)
</a>
</div>
</div>
<?php endif; ?>