Add interstitial endpoints and enhance media and template functionalities: implement MapInterstitialEndpoints in Program.cs, add preview functionality for media assets in MediaEndpoints, and introduce template preview capabilities in TemplateEndpoints. Remove obsolete bumper settings from Channel and related classes to streamline configuration.
build / backend (push) Successful in 5m58s
build / frontend (push) Successful in 47s
tests / backend-tests (push) Successful in 5m57s

This commit is contained in:
Leonid Pershin
2026-07-26 14:03:53 +03:00
parent 66040a8841
commit 7b12a06d1b
53 changed files with 4076 additions and 469 deletions
@@ -19,9 +19,11 @@ import {
} from './api'
import { BumperCard } from './components/BumperCard'
import { CollapsibleCard } from './components/CollapsibleCard'
import { JunctionsCard } from './components/JunctionsCard'
import { LayerList, ScheduleGrid } from './components/ScheduleGrid'
import { SchedulePreview } from './components/SchedulePreview'
import { SettingsCard } from './components/SettingsCard'
import { TemplatePreview } from './components/TemplatePreview'
import { SlotInspector, type SlotDraft } from './components/SlotInspector'
export function ChannelDetail({ channelId }: { channelId: string }) {
@@ -164,6 +166,7 @@ export function ChannelDetail({ channelId }: { channelId: string }) {
</div>
<div className="flex flex-col gap-3">
<TemplatePreview channelId={channelId} />
<ScheduleGrid
template={template}
selectedSlotId={draft?.slot?.id ?? null}
@@ -171,13 +174,25 @@ export function ChannelDetail({ channelId }: { channelId: string }) {
onAddSlot={openNewSlot}
/>
{draft && (
<SlotInspector draft={draft} onClose={() => setDraft(null)} onChanged={invalidate} />
<SlotInspector
channelId={channelId}
draft={draft}
onClose={() => setDraft(null)}
onChanged={invalidate}
/>
)}
</div>
</div>
</CollapsibleCard>
)}
<JunctionsCard
channel={channel}
template={template}
onChanged={invalidate}
onError={onError}
/>
<BumperCard channel={channel} onSaved={invalidate} onError={onError} />
<SchedulePreview entries={schedule ?? []} />