feat(manager): built-in collection in the Media page and picker; signage screen settings in Devices (platform-v2 step 5.4a)

Media page and picker filter Everything / Your own / Built-in; built-in items
are marked and can't be renamed or deleted. The Devices page offers the
playlists for a signage screen (with its orientation and rotation).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-17 18:35:13 +02:00
co-authored by Claude Opus 5.5
parent 7fc32ad917
commit a2d9e55222
9 changed files with 44 additions and 18 deletions
@@ -86,7 +86,8 @@ export function configGroups(fields = []) {
}
/** Options of a `ref` field: prep zones, categories, printers, customer display looks, or live devices of one app ("devices:<app>"). */
export function refOptions(field, { zones = [], categories = [], printers = [], looks = [], devices = [], selfId = null } = {}) {
export function refOptions(field, { zones = [], categories = [], printers = [], looks = [], playlists = [], devices = [], selfId = null } = {}) {
if (field.choices_from === 'signage_playlists') return playlists.map(p => ({ value: String(p.id), label: p.name }))
if (field.choices_from === 'display_looks') return looks.map(l => ({ value: String(l.id), label: l.name }))
if (field.choices_from === 'prep_zones') return zones.map(z => ({ value: String(z.id), label: z.name }))
if (field.choices_from === 'categories') return categories.map(c => ({ value: String(c.id), label: c.name }))