GRI-2010: playlist editor cogwheel and page list for per-page overrides #186
No reviewers
Labels
No labels
Area/Backend
Area/Database
Area/Docs
Area/Frontend
Area/Infra
Area/Security
Area/Tests
Area/Tooling
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Lang/Python
Lang/Rust
Lang/Shell
Lang/SQL
Lang/TypeScript
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Routing
Auto
Routing
Hold
Routing
Human
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
Grimoirix/grimoire-of-digital-signage!186
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/GRI-2010-playlist-page-overrides-editor"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Follow-up to #157/#182. GRI-2010.
What changed
PlaylistItemgained an optionalpageOverridesfield (sparse,keyed by page number as a string,
{seconds}or{skip: true}),matching the server's wire shape directly.
httpPlaylistsApi: adocumentitem'spage_overridesis sent onPUT /playlists/{id}/itemswhen non-empty, and read back fromGET/PUTresponses. Omitted entirely when there is nothing tosend, so the existing GRI-1937 wire-shape test is untouched.
PlaylistEditorScreen: adocumentitem now shows a "⚙ Pageoverrides" button. It opens a page list — one row per page, each
with a thumbnail (
GET /media/{id}/file), an "Own time (seconds)"field and a "Skip this page" checkbox. Empty field and unchecked
skip both mean the item's own default time.
Tests
httpPlaylistsApi.test.ts: a document item's page overrides aresent and read back; a document item with no overrides sends no
page_overrideskey at all.PlaylistsScreen.test.tsx: set, clear and skip a page overridethrough the cogwheel, including after a save round-trip through the
(mock) API.
Verified
scripts/local-gates.sh --frontend-only: prettier, oxlint, tsc,vitest (53 tests, all passing) and the production build all green.
No Rust files touched, so the Rust gates were not re-run locally —
CI runs the full suite on the pull request regardless.
Adds a cogwheel on a document item in the playlist editor that opens its page list, with thumbnails from GET /media/{id}/file. Per page: own time in seconds or skip, empty meaning the item's default. Save sends page_overrides on the item in PUT /playlists/{id}/items (signage#185, follow-up to #157/#182).