GRI-1764: panel playlists screen #90

Merged
vivy merged 1 commit from feature/GRI-1764-panel-playlists into dev 2026-11-09 20:12:44 +00:00
Member

What

Playlists screen in frontend-web/, closes #25 — the last MVP screen group for GRI-1764.

  • List playlists, create one (name + default duration).
  • Open a playlist (/playlists/{id}) to add items from the media library, reorder (move up/down), set a per-item duration (falls back to the playlist default), remove, and save (PUT .../items, replacing the list wholesale per the contract).
  • Assign the playlist to an approved device.
  • All four async states covered: loading, empty, error (with retry), success.

Stacked on #88 (which stacks on #87, which stacks on #85)

Cut from feature/GRI-1764-panel-media. Diff includes the three earlier commits until they merge; will rebase onto dev once they do.

Why mocked

Same pattern as the earlier three. mockPlaylistsApi.ts's assignPlaylistToDevice also writes the device's assignedPlaylist into the mock devices store, so the devices screen reflects an assignment made here — same contract both screens will read from once the real server lands.

Verification

cd frontend-web && npm run check
cd frontend-web && npm run build
./scripts/local-gates.sh --frontend-only

All green.

Test plan

  • Loading, then empty playlist list
  • Create a playlist, see it listed with its item count
  • Error state with retry
  • Open a playlist, add a media item, save, assign to a device

This closes out GRI-1764

All five screen groups (login/setup #85, devices+IP rules #87, media #88, playlists here) are now up as PRs. Once #85 merges, #87/#88/this one each rebase onto dev and the diffs shrink to just their own commit.

## What Playlists screen in `frontend-web/`, closes #25 — the last MVP screen group for GRI-1764. - List playlists, create one (name + default duration). - Open a playlist (`/playlists/{id}`) to add items from the media library, reorder (move up/down), set a per-item duration (falls back to the playlist default), remove, and save (`PUT .../items`, replacing the list wholesale per the contract). - Assign the playlist to an approved device. - All four async states covered: loading, empty, error (with retry), success. ## Stacked on #88 (which stacks on #87, which stacks on #85) Cut from `feature/GRI-1764-panel-media`. Diff includes the three earlier commits until they merge; will rebase onto `dev` once they do. ## Why mocked Same pattern as the earlier three. `mockPlaylistsApi.ts`'s `assignPlaylistToDevice` also writes the device's `assignedPlaylist` into the mock devices store, so the devices screen reflects an assignment made here — same contract both screens will read from once the real server lands. ## Verification ``` cd frontend-web && npm run check cd frontend-web && npm run build ./scripts/local-gates.sh --frontend-only ``` All green. ## Test plan - [x] Loading, then empty playlist list - [x] Create a playlist, see it listed with its item count - [x] Error state with retry - [x] Open a playlist, add a media item, save, assign to a device ## This closes out GRI-1764 All five screen groups (login/setup #85, devices+IP rules #87, media #88, playlists here) are now up as PRs. Once #85 merges, #87/#88/this one each rebase onto `dev` and the diffs shrink to just their own commit.
GRI-1764: panel first-user setup and login screens
Some checks failed
CI / the pre-push hook (pull_request) Successful in 11s
CI / cargo fmt (pull_request) Successful in 4s
CI / cargo deny (pull_request) Successful in 52s
CI / cargo deny advisories (pull_request) Failing after 53s
CI / cargo clippy (pull_request) Successful in 9m45s
CI / repository boundary (pull_request) Successful in 15s
CI / cargo test (pull_request) Successful in 9m36s
CI / frontend-web (pull_request) Successful in 9m47s
CI / CI (pull_request) Successful in 3s
CI / Notify gate failed (pull_request) Has been skipped
16a6093b15
Mocks the setup/session API behind one switch (src/api/sessionApi.ts)
until the server routes land (GRI-1838, GRI-1853); swap USE_MOCK to
false once they're exercised against the real server.
GRI-1764: panel devices and IP rules screens
Some checks failed
CI / the pre-push hook (pull_request) Successful in 4s
CI / cargo fmt (pull_request) Successful in 5s
CI / cargo deny (pull_request) Successful in 39s
CI / cargo deny advisories (pull_request) Failing after 38s
CI / repository boundary (pull_request) Successful in 10s
CI / cargo clippy (pull_request) Successful in 9m38s
CI / cargo test (pull_request) Successful in 9m41s
CI / frontend-web (pull_request) Successful in 9m56s
CI / Notify gate failed (pull_request) Has been skipped
CI / CI (pull_request) Successful in 11s
31a84b5706
Devices: pending list with approve/block, approved list with inline
rename, last-seen and assigned playlist. IP rules: blocklist and
auto-approve, each addable/removable, with the evaluation-order note
on screen.

Adds a tiny History API router (no library yet, per
plan/frontend/stack.md) now that there is more than one screen behind
login. Mocked behind devicesApi.ts/ipRulesApi.ts the same way as the
session API, until the server routes land.
GRI-1764: panel media library screen
Some checks failed
CI / the pre-push hook (pull_request) Successful in 4s
CI / cargo fmt (pull_request) Successful in 4s
CI / cargo deny (pull_request) Successful in 48s
CI / cargo deny advisories (pull_request) Failing after 48s
CI / cargo clippy (pull_request) Successful in 9m41s
CI / repository boundary (pull_request) Successful in 11s
CI / cargo test (pull_request) Successful in 9m36s
CI / frontend-web (pull_request) Successful in 9m59s
CI / CI (pull_request) Successful in 3s
CI / Notify gate failed (pull_request) Has been skipped
8993db2cec
Upload image/video/PDF, add a web-page URL, list and delete. A PDF
upload is split into one item per page at upload time, per
plan/server/media-pipeline.md. Mocked behind mediaApi.ts the same way
as the other screens, until the server routes land.
GRI-1764: panel playlists screen
Some checks failed
CI / the pre-push hook (pull_request) Successful in 5s
CI / cargo fmt (pull_request) Successful in 4s
CI / cargo deny (pull_request) Successful in 40s
CI / cargo deny advisories (pull_request) Failing after 38s
CI / repository boundary (pull_request) Successful in 5s
CI / cargo clippy (pull_request) Successful in 9m34s
CI / cargo test (pull_request) Successful in 9m39s
CI / frontend-web (pull_request) Successful in 9m46s
CI / CI (pull_request) Successful in 3s
CI / Notify gate failed (pull_request) Has been skipped
13e2492383
Create a playlist, add items from the media library, reorder and set
a per-item duration, save, and assign to an approved device. Closes
the last MVP screen group.

Mocked behind playlistsApi.ts the same way as the other screens.
Assignment writes the approved device's assignedPlaylist in the mock
devices store, so the devices screen reflects it.
vivy merged commit 7cecb8f32c into dev 2026-11-09 20:12:44 +00:00
vivy deleted branch feature/GRI-1764-panel-playlists 2026-11-09 20:12:45 +00:00
nexus-warden left a comment

Review after the merge: this PR was merged into dev on 2026-11-09 at 20:12Z before any review existed. I reviewed it on the merged head.

Approved. The playlist list, the editor (reorder, per-item duration, save as one PUT) and assign-to-device are sound. The duration input's min={1} is never checked by the browser, because the field is not inside a form. That is acceptable: the server refuses a duration of zero or less (playlists/handlers.rs, validate_duration).

Review after the merge: this PR was merged into `dev` on 2026-11-09 at 20:12Z before any review existed. I reviewed it on the merged head. **Approved.** The playlist list, the editor (reorder, per-item duration, save as one PUT) and assign-to-device are sound. The duration input's `min={1}` is never checked by the browser, because the field is not inside a form. That is acceptable: the server refuses a duration of zero or less (`playlists/handlers.rs`, `validate_duration`).
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Grimoirix/grimoire-of-digital-signage!90
No description provided.