Lot 2, interface : synchro, appariement par QR code, page d'autorisation d'une IA
- Écran Synchro (#/synchro) : activer, « J'ai déjà une clé » (pull d'abord, faute de frappe signalée), état, clé masquée, QR code, désactiver, brancher son IA (adresse du connecteur et mode d'emploi). - Appariement #pair=<clé> : la clé quitte l'adresse aussitôt, confirmation, fusion des données locales. - Page #/connecter-ia?… : autoriser (POST /oauth/authorize) ou refuser, erreurs traduites ; le routeur accepte « ? » dans le fragment. - Synchro automatique sans scrutation (ouverture, 3 s après une saisie, online, visibilitychange), indicateur dans l'en-tête. - QR code : qrcode-generator 2.0.4 (MIT) vendorisé, dessiné en SVG par le DOM. - Magasin : dates strictement croissantes pour les événements de l'appareil (cause du flottement de test-browser : deux PlanSettingsChanged de la même milliseconde départagés par leur identifiant aléatoire). - test-browser : parcours de la synchro contre server/main.js (données temporaires), QR décodé par jsQR dans la capture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
c12e37e215
commit
08cc995eef
@@ -63,3 +63,39 @@
|
||||
from { transform: scale(1.35); opacity: 0; }
|
||||
to { transform: scale(1); opacity: 1; }
|
||||
}
|
||||
|
||||
/* ---- synchro ------------------------------------------------------------------------ */
|
||||
/* Indicateur de l'en-tête : une ligne de marquage, à droite, absente tant que la
|
||||
synchro n'est pas activée. Le mot porte l'état ; le carré le répète. */
|
||||
.topline { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); display: flex; justify-content: flex-end; }
|
||||
.sync-flag {
|
||||
display: inline-flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 0 0 var(--space-2);
|
||||
font-family: var(--font-mark); font-size: var(--fs-mark); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
|
||||
color: var(--muted); text-decoration: none;
|
||||
}
|
||||
.sync-flag__dot { width: 12px; height: 12px; border: 2px solid var(--ink); background: var(--ink); }
|
||||
.sync-flag[data-state="syncing"] .sync-flag__dot { background: var(--signal); border-color: var(--signal-edge); }
|
||||
.sync-flag[data-state="offline"] .sync-flag__dot { background: none; border-style: dashed; border-color: var(--muted); }
|
||||
.sync-flag[data-state="error"] { color: var(--ink); }
|
||||
.sync-flag[data-state="error"] .sync-flag__text { background: var(--signal); color: var(--on-signal); padding: 0 4px; }
|
||||
.sync-flag[data-state="error"] .sync-flag__dot { background: none; }
|
||||
|
||||
.sync-state__label { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: var(--fs-2xl); line-height: 0.9; }
|
||||
.sync-state[data-state="ok"] .sync-state__label::before { content: "✓ "; }
|
||||
.sync-state[data-state="error"] { border-width: var(--b-heavy); }
|
||||
.sync-state[data-state="error"] .sync-state__label::before { content: "! "; }
|
||||
.sync-state[data-state="offline"] { border-style: dashed; }
|
||||
.sync-facts .row { min-height: 0; padding: var(--space-3) 0; }
|
||||
.sync-gap { margin-top: var(--space-3); }
|
||||
.sync-key { font-family: var(--font-mark); font-weight: 700; letter-spacing: 0.04em; }
|
||||
|
||||
/* QR code : noir sur blanc dans les deux thèmes (les lecteurs lisent mal un code
|
||||
inversé), marge blanche comprise dans le SVG, assez grand pour un appareil
|
||||
photo à 30 cm. */
|
||||
.qr-frame { border: var(--b) solid var(--ink); padding: var(--space-3); display: grid; place-items: center; min-height: 120px; }
|
||||
.qr { width: min(100%, 280px); height: auto; }
|
||||
|
||||
/* La grille d'écrans compte un nombre impair de cases : la dernière prend la ligne. */
|
||||
.grid-nav > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
|
||||
.sync-keybox { display: block; margin-top: var(--space-3); padding: var(--space-3); border: var(--b) dashed var(--ink); font-size: var(--fs-lg); text-align: center; overflow-wrap: anywhere; }
|
||||
.sync-cmd { font-family: var(--font-mark); font-size: var(--fs-sm); overflow-wrap: anywhere; }
|
||||
|
||||
Reference in New Issue
Block a user