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
390 lines
9 KiB
CSS
390 lines
9 KiB
CSS
/* ========== Asset detail ========== */
|
|
.asset-detail {
|
|
display: flex; flex-direction: column;
|
|
flex: 1; /* parent is `.main` (flex col) — fill remaining vertical space */
|
|
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;
|
|
backdrop-filter: blur(8px);
|
|
}
|
|
.player-tc {
|
|
position: absolute;
|
|
right: 12px; bottom: 12px;
|
|
background: rgba(0,0,0,0.6);
|
|
backdrop-filter: blur(4px);
|
|
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; }
|