D1 Part 3: unified drive view + overlay migration
- storage.html: the registry cards and the separate 'Meghajtók (ügynök
nézet)' merge into ONE view. Each connected registry card gets an
#agent-extra-<path> slot; the enrichment JS joins the agent /api/disks
list on mount path and decorates the matching card in place (role tag
via i-lock, drive class, durable-id mono line, agent-only
register/eject/wipe actions). Two extra groups render below:
'Rendszermeghajtók' (system/backup — read-only, lock tag, NO actions)
and 'Nem regisztrált meghajtók' (unregistered user-data — register
action only). Agent-down: one warn note into #agent-warn-note, all
registry cards still render from server data (graceful degradation).
The agent-view helpers now emit design-system .tag markup instead of
.badge (roleTag/classTag/dataTag/regTag/appBackingTag); the 🔒 lock
emoji is gone (sprite i-lock).
- Overlay migration: every native confirm()/prompt() on the four pages
routes through a light .confirm-overlay dialog (openDialog; texts
verbatim) — storage remove forms, netStorageRemove, storageMigrateAll,
storageDisconnect, storageDecommission (migrate + the type-to-confirm
anyway branch preserved like-for-like), storageReEnroll; and on the
system page triggerUpdate + controller/server restart; on the security
page the two geo Hungary-removal confirms. Scenario F grep: zero
native confirm/prompt in the four templates.
- Deleted the now-orphaned .badge-lock/.lock-ico CSS (grep-zero first).
- Tests: no-native-confirm scan, agent-down warn-note static assertion;
integrity gate stays green.
This commit is contained in:
@@ -3123,7 +3123,6 @@ a.stat-card:hover {
|
||||
/* badges missing from the global sheet */
|
||||
.badge-ok { background: var(--blue-dim); color: var(--blue); }
|
||||
.badge-neutral { background: var(--bg-2); color: var(--text-2); }
|
||||
.badge-lock { background: var(--warn-dim); color: var(--warn); }
|
||||
.badge-muted { background: var(--bg-2); color: var(--text-3); }
|
||||
.badge-info { background: var(--blue-dim); color: var(--blue-bright); }
|
||||
/* Backup-page tier divider between the whole-guest section and the per-app section. */
|
||||
@@ -3138,7 +3137,6 @@ a.stat-card:hover {
|
||||
margin: 0 0 .75rem; padding: .5rem .75rem;
|
||||
background: var(--blue-dim); border-left: 3px solid var(--blue); border-radius: var(--radius);
|
||||
}
|
||||
.badge .lock-ico { margin-right: .25rem; }
|
||||
span.mono, .mono { font-family: var(--font-data); }
|
||||
|
||||
/* Type-to-confirm modal (destructive user-data eject/wipe) */
|
||||
|
||||
Reference in New Issue
Block a user