feat(web): add Playouts monitor screen refs #87
Build ErsatzTV Image / Build & test (.NET) (pull_request) Successful in 4m14s
Build ErsatzTV Image / EF migration integrity (SQLite + MySql) (pull_request) Successful in 5m1s
Build ErsatzTV Image / Build & push image (amd64) (pull_request) Has been skipped

This commit is contained in:
2026-07-05 17:10:30 +02:00
parent c5021e28da
commit 1840ef83b1
5 changed files with 1248 additions and 2 deletions
+342
View File
@@ -1308,6 +1308,348 @@
line-height: 1.4;
}
.ctv-playouts-screen {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
gap: var(--space-6, 12px);
}
.ctv-playouts-header {
display: flex;
align-items: center;
gap: var(--space-5, 10px);
border: 1px solid var(--border-hairline);
border-radius: var(--radius-md, 7px);
background: var(--surface-card);
padding: var(--space-6, 12px) var(--space-8, 20px);
}
.ctv-playouts-header-spacer {
flex: 1;
}
.ctv-playouts-grid {
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
gap: var(--space-8, 20px);
flex: 1;
min-height: 0;
}
.ctv-playouts-rail,
.ctv-playouts-monitor {
min-height: 0;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-md, 7px);
background: var(--surface-card);
}
.ctv-playouts-rail {
display: flex;
flex-direction: column;
overflow: hidden;
}
.ctv-playouts-filter {
display: grid;
gap: var(--space-4, 8px);
border-bottom: 1px solid var(--border-hairline);
padding: var(--space-6, 12px);
}
.ctv-playouts-filter > span {
color: var(--text-disabled);
font-size: var(--text-2xs, 11px);
}
.ctv-playouts-list {
display: grid;
align-content: start;
gap: var(--space-2, 4px);
overflow: auto;
padding: var(--space-4, 8px);
}
.ctv-playout-option {
display: grid;
grid-template-columns: 30px minmax(0, 1fr) 10px;
align-items: center;
gap: var(--space-5, 10px);
width: 100%;
border: 0;
border-radius: var(--radius-sm, 5px);
background: transparent;
color: inherit;
cursor: pointer;
padding: var(--space-4, 8px);
text-align: left;
}
.ctv-playout-option:hover,
.ctv-playout-option-active {
background: var(--ctv-accent-soft);
}
.ctv-playout-option > span {
display: grid;
min-width: 0;
gap: var(--space-2, 4px);
}
.ctv-playout-option code,
.ctv-playouts-title code,
.ctv-playout-now-copy code,
.ctv-playout-upcoming code,
.ctv-playout-upcoming small,
.ctv-playout-timeline code {
font-family: var(--font-mono, ui-monospace, monospace);
font-variant-numeric: tabular-nums;
}
.ctv-playout-option code {
color: var(--status-live);
font-size: var(--text-2xs, 11px);
}
.ctv-playout-option strong,
.ctv-playout-next strong {
overflow: hidden;
color: var(--text-primary);
font-size: var(--text-sm, 13px);
font-weight: var(--weight-semibold, 600);
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.ctv-playout-option small,
.ctv-playout-next small {
overflow: hidden;
color: var(--text-secondary);
font-size: var(--text-2xs, 11px);
line-height: 1.2;
text-overflow: ellipsis;
white-space: nowrap;
}
.ctv-playouts-monitor {
display: flex;
flex-direction: column;
gap: var(--space-7, 16px);
overflow: auto;
padding: var(--space-8, 20px);
}
.ctv-playouts-title {
display: flex;
align-items: center;
gap: var(--space-6, 12px);
}
.ctv-playouts-title > div {
display: grid;
min-width: 0;
gap: var(--space-2, 4px);
}
.ctv-playouts-title span {
display: flex;
align-items: center;
gap: var(--space-4, 8px);
color: var(--text-secondary);
font-size: var(--text-xs, 12px);
}
.ctv-playouts-title h2,
.ctv-playout-now-copy h3 {
margin: 0;
color: var(--text-primary);
font-weight: var(--weight-semibold, 600);
line-height: 1.2;
}
.ctv-playouts-title h2 {
font-size: var(--text-md, 14px);
}
.ctv-playout-now {
display: grid;
grid-template-columns: 210px minmax(0, 1fr);
overflow: hidden;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-md, 7px);
background: var(--ctv-surface-1);
}
.ctv-playout-preview {
display: flex;
position: relative;
align-items: center;
justify-content: center;
min-height: 150px;
border-right: 1px solid var(--border-hairline);
background: var(--ctv-bg-sunken);
color: var(--ctv-accent);
}
.ctv-playout-preview .ctv-badge {
position: absolute;
left: var(--space-5, 10px);
bottom: var(--space-5, 10px);
}
.ctv-playout-now-copy {
display: flex;
justify-content: center;
flex-direction: column;
gap: var(--space-5, 10px);
min-width: 0;
padding: var(--space-8, 20px);
}
.ctv-playout-now-copy > span {
color: var(--status-live);
font-size: var(--text-2xs, 11px);
font-weight: var(--weight-semibold, 600);
text-transform: uppercase;
}
.ctv-playout-now-copy h3 {
font-size: var(--text-lg, 18px);
}
.ctv-playout-now-copy > div:last-child {
display: flex;
justify-content: space-between;
gap: var(--space-6, 12px);
color: var(--text-disabled);
font-size: var(--text-2xs, 11px);
}
.ctv-playouts-cards {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-7, 16px);
}
.ctv-playout-next {
display: flex;
align-items: center;
gap: var(--space-6, 12px);
}
.ctv-playout-next > svg {
color: var(--ctv-accent);
flex: 0 0 auto;
}
.ctv-playout-next > span {
display: grid;
min-width: 0;
gap: var(--space-2, 4px);
}
.ctv-playout-detail-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: var(--space-5, 10px);
}
.ctv-playout-timeline {
display: grid;
gap: var(--space-4, 8px);
}
.ctv-playout-timeline > div {
display: flex;
position: relative;
overflow: hidden;
height: 34px;
border: 1px solid var(--border-hairline);
border-radius: var(--radius-sm, 5px);
background: var(--ctv-bg-sunken);
}
.ctv-playout-timeline span {
display: flex;
align-items: center;
overflow: hidden;
border-right: 1px solid var(--ctv-bg);
background: var(--ctv-accent-soft);
color: var(--ctv-accent);
font-size: var(--text-2xs, 11px);
font-weight: var(--weight-medium, 500);
padding: 0 var(--space-4, 8px);
text-overflow: ellipsis;
white-space: nowrap;
}
.ctv-playout-timeline .ctv-playout-timeline-filler {
background: var(--ctv-surface-3);
color: var(--text-secondary);
}
.ctv-playout-timeline i {
position: absolute;
top: -3px;
bottom: -3px;
width: 2px;
background: var(--status-live);
box-shadow: 0 0 8px var(--status-live);
}
.ctv-playout-timeline p {
display: flex;
justify-content: space-between;
margin: 0;
color: var(--text-disabled);
font-size: var(--text-2xs, 11px);
}
.ctv-playout-timeline p span {
display: inline-flex;
align-items: center;
gap: var(--space-2, 4px);
color: var(--status-live);
}
.ctv-playout-upcoming > div {
display: grid;
grid-template-columns: 58px 14px minmax(0, 1fr) auto 64px;
align-items: center;
gap: var(--space-5, 10px);
border-top: 1px solid var(--border-hairline);
padding: var(--space-5, 10px) var(--space-7, 16px);
}
.ctv-playout-upcoming > div:first-child {
border-top: 0;
}
.ctv-playout-upcoming-now {
background: var(--ctv-live-soft);
}
.ctv-playout-upcoming svg {
color: var(--ctv-accent);
}
.ctv-playout-upcoming span {
overflow: hidden;
color: var(--text-primary);
font-size: var(--text-sm, 13px);
text-overflow: ellipsis;
white-space: nowrap;
}
.ctv-playout-upcoming code,
.ctv-playout-upcoming small {
color: var(--text-disabled);
font-size: var(--text-2xs, 11px);
}
@media (max-width: 980px) {
.ctv-app-shell {
grid-template-columns: 1fr;