dragonflight/services/web-ui/public/styles-asset.css

601 lines
12 KiB
CSS
Raw Normal View History

/* ========== Asset detail ========== */
.asset-detail {
display: flex; flex-direction: column;
ui: full audit pass (fixes #146, #147, #148, #149, #151, #152, #153, #154, #155) Sweep of 9 web-ui audit findings from tracker #156. Issue #150 (modal codec stubs) deferred per user request. ## #146 sweep em-dashes (186 to 0) - Replace placeholder '—' with '·' across all jsx - Convert ' — ' to ': ' or '. ' in copy where context permits - Comment-only em-dashes converted to ASCII dash - Sweep css files too (16 comments) ## #147 remove glassmorphism + accent gradients - Strip 8 backdrop-filter declarations from styles-screens.css and styles-asset.css. Only legit modal scrim in styles-modal.css remains. - Replace .job-progress-fill gradient with solid var(--accent) - Replace .monitor-tile.audio gradient with flat var(--bg-1) ## #148 extract Jobs inline styles to CSS - Cut 19 inline style={{...}} blocks in screens-jobs.jsx to 1 (dynamic width on progress bar). Live DOM was 487 inline-styled elements due to per-row repetition; now ~0. - Added job-row-kind, job-row-asset, job-row-node, job-row-time, job-row-actions, job-row-status-* utility classes in styles-screens.css ## #149 sidebar IA reorganized - Replace flat NAV_TREE + ADMIN_TREE with NAV_SECTIONS: Workspace / Ingest / Operations / Admin - Move Capture out of Ingest into Operations (it's a live-signal monitor, not an ingest action) - Drop the 0/N capture badge from nav (belongs in topbar) - Add BETA badge to Editor ## #151 redesign Editor 'Coming Soon' bumper - Replace fullscreen glassmorphism + gradient + glow overlay with a flat beta banner across the top of the editor area - New .editor-beta-banner CSS class (flat, accent-soft tint, no blur) ## #152 hide Tokens parody, restore real API token mgmt - New top-level Tokens admin page wraps existing ApiTokensSection - Old parody renamed to TokensParody, accessible at /tokens-parody route - Add window-level df:nav event for cross-component routing ## #153 make Home actually useful - New activity strip below the launcher grid: 'Recording now' tiles for live recorders, 'Last 24 hours' tiles for newly created assets, plus an attention strip when there are failed jobs or errored recorders - Each item is clickable and routes to the relevant screen ## #154 aria-labels on icon-only buttons - Projects + Library grid/list view toggles now have aria-label + title ## #155 page-header pattern - Dashboard now renders a proper .page-header h1 with subtitle + alert badge + cluster status pip - Library toolbar-title promoted to h1 for screen-reader hierarchy - Document Home/Library/Editor full-bleed exceptions in DESIGN.md - Editor's chrome is the beta banner (covered by #151)
2026-05-28 19:50:07 -04:00
flex: 1; /* parent is `.main` (flex col) - fill remaining vertical space */
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-26 22:06:14 -04:00
min-height: 0;
background: var(--bg-0);
overflow: hidden;
}
.asset-detail-header {
height: var(--topbar-h);
display: flex; align-items: center;
gap: 12px;
padding: 0 20px;
border-bottom: 1px solid var(--border);
flex-shrink: 0;
}
.asset-detail-body {
flex: 1;
display: grid;
grid-template-columns: 1fr 320px;
overflow: hidden;
min-height: 0;
}
.player-col {
display: flex; flex-direction: column;
overflow: hidden;
border-right: 1px solid var(--border);
}
.comment-composer-col {
background: var(--bg-1);
display: flex; flex-direction: column;
overflow: hidden;
}
.player {
background: #000;
padding: 16px;
display: flex; flex-direction: column;
gap: 8px;
}
.player-canvas {
position: relative;
aspect-ratio: 16 / 9;
border-radius: var(--r-md);
overflow: hidden;
background: #050608;
max-height: 52vh;
}
.player-canvas .thumb-svg { width: 100%; height: 100%; display: block; }
.player-play-overlay {
position: absolute; inset: 0;
display: grid; place-items: center;
background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.4));
transition: background 120ms;
}
.player-play-overlay:hover { background: rgba(0,0,0,0.3); }
.player-play-overlay svg {
width: 64px; height: 64px;
color: white;
background: rgba(0,0,0,0.55);
border-radius: 50%;
padding: 16px;
}
.player-tc {
position: absolute;
right: 12px; bottom: 12px;
background: rgba(0,0,0,0.6);
padding: 4px 10px;
border-radius: 4px;
font-family: var(--font-mono);
font-size: 11.5px;
color: white;
}
.player-overlay-markers {
position: absolute; inset: 16px;
pointer-events: none;
}
.player-pin {
position: absolute;
left: 30%; top: 40%;
display: flex; align-items: center; gap: 6px;
pointer-events: auto;
}
.player-pin-avatar {
width: 28px; height: 28px;
border-radius: 50%;
background: var(--accent);
display: grid; place-items: center;
font-size: 11px; font-weight: 600; color: white;
border: 2px solid white;
}
.player-pin-bubble {
background: var(--accent);
color: white;
font-size: 12px;
padding: 4px 8px;
border-radius: 4px;
max-width: 240px;
}
.player-controls {
display: flex; align-items: center; gap: 8px;
padding: 0 4px;
}
.playback-bar {
flex: 1;
height: 24px;
position: relative;
cursor: pointer;
display: flex; align-items: center;
}
.playback-bar::before {
content: "";
position: absolute;
left: 0; right: 0;
height: 4px;
background: rgba(255,255,255,0.08);
border-radius: 99px;
}
.playback-fill {
position: absolute;
height: 4px;
background: var(--accent);
border-radius: 99px;
pointer-events: none;
}
.playback-handle {
position: absolute;
width: 12px; height: 12px;
border-radius: 50%;
background: white;
transform: translateX(-50%);
box-shadow: 0 0 0 1px rgba(0,0,0,0.2);
pointer-events: none;
}
.playback-marker {
position: absolute;
transform: translateX(-50%) translateY(-2px);
z-index: 2;
}
.marker-avatar {
display: grid; place-items: center;
width: 18px; height: 18px;
border-radius: 50%;
background: var(--accent);
color: white;
font-size: 9px; font-weight: 600;
border: 1.5px solid var(--bg-0);
}
.playback-marker.resolved .marker-avatar { background: var(--text-4); opacity: 0.5; }
.filmstrip-wrap {
background: var(--bg-1);
border-radius: var(--r-sm);
padding: 8px;
margin-top: 4px;
}
.filmstrip {
position: relative;
display: flex;
gap: 1px;
height: 48px;
border-radius: 4px;
overflow: hidden;
cursor: pointer;
border: 1px solid var(--border);
}
.film-frame {
flex: 1;
position: relative;
overflow: hidden;
}
.film-frame .thumb-svg { width: 100%; height: 100%; }
.filmstrip-playhead {
position: absolute;
top: 0; bottom: 0;
width: 2px;
background: var(--accent);
transform: translateX(-50%);
pointer-events: none;
box-shadow: 0 0 6px var(--accent);
}
.filmstrip-playhead::before {
content: "";
position: absolute;
top: -4px; left: 50%;
transform: translateX(-50%);
width: 8px; height: 8px;
background: var(--accent);
border-radius: 2px;
transform: translateX(-50%) rotate(45deg);
}
.filmstrip-pin {
position: absolute;
bottom: -6px;
transform: translateX(-50%);
}
.filmstrip-pin-avatar {
display: grid; place-items: center;
width: 16px; height: 16px;
border-radius: 50%;
background: var(--accent);
color: white;
font-size: 8px;
font-weight: 600;
border: 1.5px solid var(--bg-1);
}
.filmstrip-pin.resolved .filmstrip-pin-avatar { background: var(--text-4); }
.filmstrip-tc {
display: flex;
justify-content: space-between;
margin-top: 6px;
padding: 0 2px;
font-size: 10px;
color: var(--text-4);
}
.asset-detail-tabs {
display: flex;
align-items: center;
padding: 0 20px;
height: 40px;
border-top: 1px solid var(--border);
border-bottom: 1px solid var(--border);
gap: 4px;
background: var(--bg-0);
flex-shrink: 0;
}
.asset-detail-tabs button {
height: 40px;
padding: 0 12px;
font-size: 12.5px;
font-weight: 500;
color: var(--text-3);
position: relative;
display: flex; align-items: center; gap: 6px;
}
.asset-detail-tabs button:hover { color: var(--text-1); }
.asset-detail-tabs button.active { color: var(--text-1); }
.asset-detail-tabs button.active::after {
content: ""; position: absolute;
bottom: -1px; left: 8px; right: 8px;
height: 2px; background: var(--accent);
}
.asset-detail-tabs .count {
font-family: var(--font-mono);
font-size: 10.5px;
background: var(--bg-3);
padding: 0 6px;
border-radius: 99px;
color: var(--text-3);
}
.asset-detail-tabs button.active .count { background: var(--accent-soft); color: var(--accent-text); }
.tiny-toggle {
display: flex; align-items: center; gap: 5px;
font-size: 11.5px;
color: var(--text-3);
cursor: pointer;
}
.tiny-toggle input { accent-color: var(--accent); }
.asset-detail-content {
flex: 1;
overflow-y: auto;
padding: 8px 20px 20px;
}
.comments-list { display: flex; flex-direction: column; gap: 4px; }
.comment {
display: flex; gap: 10px;
padding: 12px 0;
border-bottom: 1px solid var(--border);
}
.comment.resolved { opacity: 0.55; }
.comment-avatar {
width: 28px; height: 28px;
border-radius: 50%;
font-size: 10.5px;
font-weight: 600;
color: white;
display: grid; place-items: center;
flex-shrink: 0;
}
.comment-body { flex: 1; min-width: 0; }
.comment-head {
display: flex; align-items: center; gap: 8px;
font-size: 12px;
}
.comment-who { font-weight: 600; }
.comment-time {
display: inline-flex; align-items: center; gap: 3px;
background: var(--accent-soft);
color: var(--accent-text);
padding: 1px 6px;
border-radius: 99px;
font-family: var(--font-mono);
font-size: 10.5px;
cursor: pointer;
}
.comment-time:hover { background: var(--accent-soft-2); }
.comment-when { color: var(--text-3); font-size: 11px; }
.comment-action { color: var(--text-3); }
.comment-action:hover { color: var(--text-1); }
.comment-text {
font-size: 12.5px;
color: var(--text-1);
margin-top: 4px;
line-height: 1.5;
}
.comment-resolved {
font-size: 11px;
color: var(--success);
margin-top: 4px;
}
.comment-composer {
padding: 16px;
display: flex; flex-direction: column;
gap: 10px;
height: 100%;
}
.composer-head {
display: flex; align-items: center; justify-content: space-between;
}
.avatar-stack { display: flex; }
.avatar-stack .avatar { margin-left: -6px; border: 2px solid var(--bg-1); }
.avatar-stack .avatar:first-child { margin-left: 0; }
.add-reviewer {
width: 22px; height: 22px;
border-radius: 50%;
background: var(--bg-3);
border: 1.5px dashed var(--border-stronger);
display: grid; place-items: center;
color: var(--text-3);
margin-left: -2px;
}
.composer-tag {
display: flex; align-items: center; gap: 8px;
font-size: 11.5px;
}
.composer-input {
width: 100%;
min-height: 90px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--r-md);
padding: 10px 12px;
outline: 0;
font-size: 13px;
resize: vertical;
color: var(--text-1);
}
.composer-input:focus { border-color: var(--accent); }
.composer-bar {
display: flex; align-items: center; gap: 8px;
}
.composer-tools { display: flex; gap: 2px; }
.versions-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; }
.version-row {
display: flex; align-items: center; gap: 12px;
padding: 12px;
border: 1px solid var(--border);
border-radius: var(--r-md);
background: var(--bg-1);
}
.version-thumb {
width: 120px; aspect-ratio: 16/9;
border-radius: 4px;
overflow: hidden;
background: var(--bg-2);
}
.meta-table {
display: flex; flex-direction: column;
padding: 8px 0;
}
.meta-row {
display: grid;
grid-template-columns: 180px 1fr;
padding: 8px 0;
border-bottom: 1px solid var(--border);
font-size: 12.5px;
gap: 16px;
}
.meta-row .meta-k { color: var(--text-3); }
.meta-row .meta-v { font-family: var(--font-mono); font-size: 12px; word-break: break-all; }
/* ========== Audio tab ========== */
.audio-tab {
display: flex;
flex-direction: column;
gap: 12px;
padding: 12px 0;
}
.audio-tracks {
display: flex;
flex-direction: column;
gap: 6px;
}
.audio-track {
display: grid;
grid-template-columns: 140px 1fr 64px auto auto;
align-items: center;
gap: 10px;
padding: 8px 12px;
background: var(--bg-2);
border: 1px solid var(--border);
border-radius: var(--r-md);
transition: opacity 120ms;
}
.audio-track.muted {
opacity: 0.4;
}
.audio-track-label {
display: flex;
align-items: center;
gap: 6px;
font-size: 12px;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.audio-track-waveform {
min-width: 0;
overflow: hidden;
height: 32px;
}
.audio-track-waveform .waveform {
width: 100%;
height: 32px;
display: block;
}
.audio-track-meters {
display: flex;
gap: 4px;
justify-content: center;
}
.audio-track-meta {
display: flex;
gap: 8px;
font-size: 10.5px;
color: var(--text-3);
white-space: nowrap;
}
.audio-track-controls {
display: flex;
align-items: center;
gap: 6px;
}
.audio-btn {
width: 22px;
height: 22px;
border-radius: 3px;
border: 1px solid var(--border);
background: var(--bg-3);
color: var(--text-3);
font-size: 10px;
font-weight: 700;
cursor: pointer;
display: grid;
place-items: center;
transition: background 80ms, color 80ms, border-color 80ms;
}
.audio-btn:hover {
border-color: var(--border-stronger);
color: var(--text-1);
}
.audio-btn.mute.active {
background: var(--danger);
color: white;
border-color: var(--danger);
}
.audio-btn.solo.active {
background: var(--warning);
color: var(--bg-0);
border-color: var(--warning);
}
.audio-fader {
display: flex;
align-items: center;
gap: 4px;
}
.audio-fader input[type="range"] {
width: 60px;
height: 4px;
appearance: none;
background: var(--bg-3);
border-radius: 2px;
outline: none;
cursor: pointer;
}
.audio-fader input[type="range"]::-webkit-slider-thumb {
appearance: none;
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--text-1);
border: 1px solid var(--border-strong);
cursor: pointer;
}
.audio-fader input[type="range"]::-moz-range-thumb {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--text-1);
border: 1px solid var(--border-strong);
cursor: pointer;
}
.audio-fader .mono {
font-size: 10px;
color: var(--text-4);
min-width: 24px;
text-align: right;
}
.audio-master {
display: flex;
align-items: center;
gap: 12px;
padding: 10px 12px;
background: var(--bg-1);
border: 1px solid var(--border);
border-radius: var(--r-md);
}
.audio-master-label {
font-size: 12.5px;
font-weight: 600;
color: var(--text-2);
min-width: 48px;
}
.audio-master-meters {
display: flex;
gap: 6px;
}
.master-fader input[type="range"] {
width: 100px;
}
/* Audio level meters */
.audio-level-meter {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.audio-level-bar {
display: flex;
flex-direction: column-reverse;
gap: 1px;
width: 10px;
}
.audio-level-seg {
width: 10px;
height: 3px;
border-radius: 1px;
transition: background 60ms;
}
.audio-level-label {
font-size: 9px;
color: var(--text-4);
text-align: center;
}
/* Responsive: stack on narrow screens */
@media (max-width: 900px) {
.audio-track {
grid-template-columns: 1fr;
gap: 6px;
padding: 10px;
}
.audio-track-waveform { height: 24px; }
.audio-track-meters { justify-content: flex-start; }
}