fix(signage-manager): fix display and zone selection and states - #532
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
|
|
Deployment failed for project frontend-templates with the following error: Learn More: https://vercel.com/placeos?upgradeToPro=build-rate-limit |
| } @else if (playlists_error()) { | ||
| <load-error (retry)="reloadPlaylists()" /> |
There was a problem hiding this comment.
Empty playlist tabs show errors
When a display or zone has no assigned playlists, a failed request for the shared playlist list makes its tab show a load error instead of the empty state. Retry reloads that shared list, not the item's assignments. Keep an unrelated list failure from replacing the item's empty state.
There was a problem hiding this comment.
Fixed in 5a63cf0. The tabs have no assignment request of their own. They read the playlist ids on the selected display or zone and resolve them through playlistsById() (the shared list plus per-id fetches). The shared list's loading and error states now apply only when the item has playlist ids (has_assigned_playlists), so an item with no playlists always shows its empty state. Tests: "keeps the empty state of a display/zone with no playlists while the playlist list is in loading/error". Remaining limit: per-id fetches report no error yet; that needs a signal in the playlist service (#535).
|
LGTM |
- Load a routed display or zone again after Back, and show an error when it cannot be loaded. - Refresh other views after a display is created, edited or removed. - Show loading and error states with Retry in the display list, zone tree and content tabs. - Show the server total of signage zones in the zone header. - Load the selected display's template mappings once.
- The signage zone count is hidden while it loads or after it fails, and counts toward the zone error so Retry refetches it. - A failed zone list shows an error with Retry above the zones that did load. - The display and zone playlist tabs show a load error with Retry instead of "no playlists".
…laylists The playlist tabs showed the shared playlist list's loading or error state even when the display or zone had no playlists. That state now applies only when the item has playlist ids.
5a63cf0 to
eb329d6
Compare
On the displays and zones pages:
Changes
selectRoutedItemloads a routed id again after Back, and shows an error when it cannot load.changed()after a save or removal.as anyonqueryZones, and use[(ngModel)].Testing
nx test signage-manager(987) andnx build signage-managerpass.Notes
Merge order
Conflicts with #531 only in
apps/signage-manager/USER_STORIES.md. Based ondevelop.Changes made by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.
🤖 Generated with Claude Code