dragonflight/services/web-ui/public/styles-screens.css
opencode 04ce096e67 chore: 1.2 ship-prep sweep — close 38 issues
Frontend / UX / a11y
- Sidebar collapse/expand toggle with localStorage persistence (#142)
- Settings sections wrap inputs in <form> with Enter-to-submit + native
  validation; password autocomplete=new-password (#141, #138)
- Asset thumbnails get descriptive alt text (#140)
- Production deploy now precompiles JSX via esbuild and loads the
  production React UMD instead of dev builds + in-browser Babel (#139,
  #122)
- Search wrapper gets role=search; global search input gets aria-label,
  role=combobox, aria-controls/aria-expanded/aria-activedescendant
  wiring (#137, #135)
- Dashboard and Library no longer share the same nav icon (#136)
- Sidebar collapses off-canvas with a topbar menu button below 768 px;
  mobile default is collapsed (#134)
- --text-3 bumped to #8B92A0 for WCAG AA contrast on --bg-0 (#133)
- Schedule and Library routes were rendering empty inside the .main
  flex container — switched to flex:1 + min-height:0 (#131, #132,
  editor + asset detail get the same fix)
- Jobs nav badge now polls /jobs?status=active every 10 s and reflects
  the live count (#130, #113)
- aria-label sweep on every icon-only button (#126)
- Premiere panel release list moved to window.PREMIERE_RELEASES in
  data.jsx; Editor + Settings read from the same source (#125)
- Typo setPgMclips → setPgmClips (#124)
- Stray console.error / console.warn calls gated behind
  window.DF_LOG.{warn,error} (#123)
- Hardcoded /api/v1 paths route through window.ZAMPP_API_PREFIX (#115)
- Schedule rows no longer crash on null recorder_id (#117)
- EditorKeyboard guards against document.activeElement === null (#116)
- Unmount-safe timers for PasswordResetModal, Containers, Editor (#111)
- Player seek clamps below totalMs, server-side range clamping +
  uncached 416 on EOF, client-side EOF-stall watchdog (#143)
- Duration badge overlap fix on narrow asset cards (#52)

Backend / security / reliability
- GET /recorders fixed N+1: single LATERAL JOIN for live_asset_id;
  Docker inspects bounded to actually-recording rows (#121)
- Upload disk-storage (multer.diskStorage) streams parts to S3 instead
  of buffering 500 MB in RAM (#120)
- /assets list clamps limit to MAX_LIMIT=500 to prevent OOM (#119)
- SDK upload archive listing + post-extract sanitize block zip-slip /
  tar-slip and symlink escapes (#118)
- Migrations track applied state in schema_migrations, run in a
  transaction, and exit non-zero on failure (#107)
- node-agent BMD_COUNT override uses BMD_DEVICE_PREFIX; filesystem
  detection wins (#109, #127)
- GPU_COUNT override now merges with nvidia-smi enrichment (#108)
- /cluster/heartbeat requires a node-bound token or admin user;
  tokens carry bound_hostname (#106)
- /recorders/:id/start error responses no longer echo the Docker
  create payload — env vars stay out of client responses (#105)
- /recorders/probe restricts schemes (srt/rtmp/rtsp/udp/rtp), blocks
  private + loopback hosts for non-admins, denies common service
  ports (#104)
- Scheduler tick guarded by a Postgres advisory lock; pending/running
  rows claimed via UPDATE...RETURNING + FOR UPDATE SKIP LOCKED to
  survive multi-node deploys (#103)
- UUID validateUuid('id') param middleware on every /:id route (#102)
- Error handler scrubs Postgres error messages and 5xx detail (#101)
- Graceful SIGTERM/SIGINT shutdown — stops scheduler, drains the HTTP
  server, ends the pool, 25 s force-exit watchdog (#100)
- AMPP sync moved from fire-and-forget to a persisted retry queue
  (ampp_sync_status / attempts / next_attempt_at + scheduler retry
  loop with exponential backoff) (#77)

Migrations
- 019: api_tokens.bound_hostname (#106)
- 020: assets.ampp_sync_status + retry bookkeeping (#77)

Other
- Defer #92 Growing-files per-upload toggle, #80 Audio tab, #57
  Dashboard redesign, #56 Editor SPA polish phase 3, #114 S3
  migration tool to v1.3
2026-05-27 02:06:14 +00:00

443 lines
11 KiB
CSS

/* ========== Asset thumbnails ========== */
.asset-thumb {
position: relative;
width: 100%;
border-radius: var(--r-md);
overflow: hidden;
background: var(--bg-2);
display: block;
}
.asset-thumb.audio {
background: linear-gradient(135deg, hsl(180 30% 14%), hsl(200 30% 8%));
display: flex;
align-items: center;
justify-content: center;
}
.asset-thumb .thumb-svg { width: 100%; height: 100%; display: block; }
.scanlines {
position: absolute; inset: 0;
background-image: repeating-linear-gradient(0deg, transparent 0 2px, rgba(0,0,0,0.06) 2px 3px);
pointer-events: none;
opacity: 0.4;
}
.thumb-overlay {
position: absolute; inset: 0;
display: flex; align-items: center; justify-content: center;
color: white;
}
.thumb-duration {
position: absolute;
right: 6px; bottom: 6px;
font-family: var(--font-mono);
font-size: 10.5px;
font-weight: 500;
color: white;
background: rgba(0,0,0,0.7);
backdrop-filter: blur(4px);
padding: 2px 6px;
border-radius: 3px;
line-height: 1.3;
}
.thumb-status {
position: absolute;
left: 6px; top: 6px;
display: flex; gap: 4px;
}
/* ========== Waveform ========== */
.waveform { width: 70%; height: 50%; opacity: 0.85; }
.audio-meter.h { display: flex; gap: 2px; height: 12px; align-items: stretch; }
.audio-meter.v { display: flex; flex-direction: column-reverse; gap: 2px; width: 6px; height: 60px; }
.audio-seg { flex: 1; border-radius: 1px; transition: opacity 80ms, background 80ms; }
.audio-meter.h .audio-seg { min-width: 3px; }
.audio-meter.v .audio-seg { min-height: 2px; }
/* ========== Live strip ========== */
.live-strip {
display: flex;
gap: 2px;
align-items: stretch;
height: 56px;
position: relative;
overflow: hidden;
border-radius: var(--r-sm);
background: var(--bg-2);
}
.live-strip-cell {
flex: 1;
position: relative;
overflow: hidden;
animation: stripIn 600ms ease;
}
.live-strip-cell .thumb-svg { width: 100%; height: 100%; }
@keyframes stripIn {
from { transform: translateX(20%); opacity: 0; }
to { transform: none; opacity: 1; }
}
.live-strip-now {
position: absolute;
right: 6px; top: 6px;
display: flex; align-items: center; gap: 4px;
font-family: var(--font-mono);
font-size: 9.5px;
font-weight: 600;
color: var(--live);
background: rgba(0,0,0,0.6);
padding: 2px 6px;
border-radius: 99px;
letter-spacing: 0.04em;
}
.live-pulse {
width: 5px; height: 5px;
border-radius: 50%;
background: var(--live);
animation: pulse 1.6s ease-in-out infinite;
}
/* ========== Status dot ========== */
.status-dot {
display: inline-block;
width: 8px; height: 8px;
border-radius: 50%;
flex-shrink: 0;
}
.status-dot.pulse {
animation: dotpulse 1.6s ease-in-out infinite;
}
@keyframes dotpulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.6; }
}
/* ========== Home dashboard ========== */
.home-hero {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 16px;
padding: 20px 28px;
}
.home-greeting {
padding: 24px 28px 0;
}
.home-greeting h1 {
margin: 0 0 4px;
font-size: 22px;
font-weight: 600;
letter-spacing: -0.02em;
}
.home-greeting p { margin: 0; color: var(--text-3); font-size: 13px; }
.stat-row {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
padding: 12px 28px;
}
.stat-card {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
padding: 14px 16px;
display: flex;
flex-direction: column;
gap: 4px;
position: relative;
overflow: hidden;
}
.stat-card .label {
font-size: 11.5px;
color: var(--text-3);
text-transform: uppercase;
letter-spacing: 0.06em;
font-weight: 600;
display: flex; align-items: center; gap: 6px;
white-space: nowrap;
}
.stat-card .value {
font-size: 26px;
font-weight: 600;
letter-spacing: -0.02em;
font-variant-numeric: tabular-nums;
line-height: 1.1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-card .delta {
font-size: 11.5px;
color: var(--text-3);
font-family: var(--font-mono);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.stat-card .delta.up { color: var(--success); }
.stat-card .spark {
position: absolute;
right: 0; bottom: 0;
width: 60%; height: 36px;
opacity: 0.7;
pointer-events: none;
}
.home-grid {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 16px;
padding: 4px 28px 40px;
}
.live-feed-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 10px;
}
.live-feed-tile {
position: relative;
border-radius: var(--r-md);
overflow: hidden;
aspect-ratio: 16 / 9;
background: var(--bg-2);
cursor: pointer;
transition: transform 120ms;
border: 1px solid var(--border);
}
.live-feed-tile:hover { transform: translateY(-1px); border-color: var(--border-stronger); }
.live-feed-tile-label {
position: absolute;
left: 8px; bottom: 8px;
right: 8px;
display: flex; align-items: center; gap: 6px;
z-index: 2;
}
.live-feed-tile-label .name {
color: white;
font-size: 12px;
font-weight: 500;
background: rgba(0,0,0,0.6);
padding: 3px 8px;
border-radius: 4px;
backdrop-filter: blur(4px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
min-width: 0;
}
.live-feed-tile-label .time {
margin-left: auto;
color: white;
font-family: var(--font-mono);
font-size: 11px;
background: rgba(0,0,0,0.6);
padding: 3px 6px;
border-radius: 4px;
backdrop-filter: blur(4px);
}
.live-feed-tile-badge {
position: absolute;
top: 8px; left: 8px;
z-index: 2;
}
.activity-feed {
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-lg);
overflow: hidden;
}
.activity-row {
display: flex; align-items: flex-start; gap: 10px;
padding: 12px 14px;
border-bottom: 1px solid var(--border);
font-size: 12.5px;
}
.activity-row:last-child { border-bottom: 0; }
.activity-icon {
width: 24px; height: 24px;
border-radius: 50%;
display: grid; place-items: center;
flex-shrink: 0;
color: var(--text-2);
}
.activity-icon.comment { background: var(--accent-soft); color: var(--accent-text); }
.activity-icon.record { background: var(--live-soft); color: var(--live); }
.activity-icon.job { background: var(--purple-soft); color: var(--purple); }
.activity-icon.upload { background: var(--bg-3); color: var(--text-2); }
.activity-icon.sync { background: var(--success-soft); color: var(--success); }
.activity-icon.approve { background: var(--success-soft); color: var(--success); }
.activity-icon.error { background: var(--danger-soft); color: var(--danger); }
.activity-text { flex: 1; line-height: 1.4; }
.activity-text strong { color: var(--text-1); font-weight: 500; }
.activity-text .target { color: var(--accent-text); }
.activity-time { font-size: 11px; color: var(--text-3); font-family: var(--font-mono); white-space: nowrap; }
/* ========== Library ========== */
.library-layout {
display: grid;
grid-template-columns: 240px 1fr;
flex: 1; /* parent is `.main` (flex col) — fill remaining vertical space (#131) */
min-height: 0;
overflow: hidden;
}
.library-rail {
border-right: 1px solid var(--border);
background: var(--bg-0);
padding: 16px 12px;
overflow-y: auto;
display: flex; flex-direction: column; gap: 16px;
}
.library-rail h4 {
margin: 0;
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-4);
padding: 0 10px;
}
.rail-list { display: flex; flex-direction: column; gap: 1px; }
.rail-item {
display: flex; align-items: center; gap: 8px;
height: 30px;
padding: 0 10px;
border-radius: var(--r-sm);
font-size: 12.5px;
color: var(--text-2);
cursor: pointer;
}
.rail-item:hover { background: var(--hover); color: var(--text-1); }
.rail-item.active { background: var(--accent-soft); color: var(--accent-text); }
.rail-item.droppable { outline: 2px dashed var(--accent); outline-offset: -2px; background: var(--accent-subtle); }
.rail-item.active .rail-icon { color: var(--accent); }
.rail-item .rail-icon { color: var(--text-3); }
.rail-item .rail-count { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); }
.rail-color-dot { width: 8px; height: 8px; border-radius: 50%; }
.library-main {
display: flex; flex-direction: column;
overflow: hidden;
}
.library-toolbar {
padding: 12px 24px;
display: flex; align-items: center; gap: 8px;
border-bottom: 1px solid var(--border);
}
.library-toolbar .toolbar-title {
font-size: 14px; font-weight: 600;
letter-spacing: -0.01em;
}
.library-toolbar .count { color: var(--text-3); font-size: 12.5px; }
.tab-group {
display: flex;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-sm);
padding: 2px;
gap: 2px;
}
.tab-group button {
height: 24px;
padding: 0 10px;
font-size: 11.5px;
font-weight: 500;
color: var(--text-3);
border-radius: 4px;
display: flex; align-items: center; gap: 4px;
}
.tab-group button:hover { color: var(--text-1); }
.tab-group button.active { background: var(--bg-3); color: var(--text-1); }
.library-grid {
flex: 1;
overflow-y: auto;
padding: 16px 24px 32px;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 14px;
align-content: start;
}
[data-grid-size="lg"] .library-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
[data-grid-size="sm"] .library-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.asset-card {
position: relative;
cursor: pointer;
border-radius: var(--r-md);
transition: transform 120ms;
}
.asset-card:hover { transform: translateY(-2px); }
.asset-card:hover .asset-thumb { box-shadow: 0 0 0 1.5px var(--accent), var(--shadow-pop); }
.asset-card .meta {
padding: 8px 4px 4px;
}
.asset-card .meta .name {
font-size: 12.5px;
font-weight: 500;
color: var(--text-1);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.asset-card .meta .sub {
font-size: 11px;
color: var(--text-3);
margin-top: 2px;
display: flex; align-items: center; gap: 6px;
font-family: var(--font-mono);
}
.asset-card.selected .asset-thumb { box-shadow: 0 0 0 2px var(--accent); }
.asset-progress-overlay {
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
display: flex;
align-items: flex-end;
padding: 8px;
}
.asset-progress-bar {
width: 100%;
height: 4px;
background: rgba(255,255,255,0.15);
border-radius: 99px;
overflow: hidden;
}
.asset-progress-fill {
height: 100%;
background: var(--warning);
transition: width 200ms;
}
.library-list {
flex: 1; overflow-y: auto;
padding: 0 24px 32px;
}
.list-row {
display: grid;
grid-template-columns: 80px 2fr 120px 100px 100px 80px 80px 32px;
align-items: center;
gap: 12px;
padding: 8px 0;
border-bottom: 1px solid var(--border);
cursor: pointer;
font-size: 12.5px;
}
.list-row:hover { background: var(--hover); }
.list-row.head {
font-size: 10.5px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--text-4);
cursor: default;
position: sticky; top: 0;
background: var(--bg-0);
z-index: 1;
padding-top: 12px;
}
.list-row:hover.head { background: var(--bg-0); }
.list-row .thumb {
width: 80px; aspect-ratio: 16/9;
border-radius: 4px; overflow: hidden;
}
.list-row .name { font-weight: 500; }
.list-row .col-sub { color: var(--text-3); font-family: var(--font-mono); font-size: 11.5px; }