fix(signage-manager): keep templates on their live ID - #536
Conversation
|
Deployment failed for project frontend-templates with the following error: Learn More: https://vercel.com/placeos?upgradeToPro=build-rate-limit |
|
| this._fetched_id = id; | ||
| void this._selectFetchedTemplate(id); |
There was a problem hiding this comment.
There was a problem hiding this comment.
Fixed in 3e43afb. When loadTemplate returns null, _fetched_id is cleared, so the next list reload or retry fetches the link again. A request that is still running is not sent twice. Test: "tries a failed link again when the list changes".
There was a problem hiding this comment.
Follow-up in f0dbfe1 for the timing case: if the list had already reloaded while the link fetch was pending, a later failure left nothing to re-run the route effect. The service now counts the user's list retries (templates_retries, bumped in reloadTemplates()), and the route effect reads it, so Retry fetches the failed link once more even when the list itself does not change. Nothing retries automatically, and a link still loading is fetched only once. Test: "tries a failed link again when the user retries the list".
This comment has been minimized.
This comment has been minimized.
|
Re the outside-diff findings, both fixed in 3e43afb:
|
There was a problem hiding this comment.
Your organization has used all 50 credits included in the free plan this billing period. To keep receiving reviews, upgrade your plan.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
- Open a linked template past the first page. - Keep templates under their live ID and hold pending drafts until they are approved, undone or deleted. - Show a list error with Retry and the server total. - Confirm before undoing changes. - Show loading and errors when applying templates. - Decode names in the approved template and mapping lists. - Place floating layouts with no position at 50%, as the player does. - Drop a deleted template from the list and leave its route.
…e it runs - A template fetched for a link is dropped if the group changed while it loaded. - A failed link fetch is tried again on the next list change. - Links open once the first page has loaded, even when the list is empty, and a link to another template is fetched instead of routing back to the current selection. - The undo confirmation cannot be dismissed while the draft is removed.
If a link fetch failed after the list had already reloaded, nothing re-ran the route effect. The service counts list retries and the route effect reads the count, so the next Retry fetches the link again.
A floating panel with no saved position now defaults to 0, 0, so it fills the frame. The player makes the same change in #528.
362a590 to
0163317
Compare
A floating template item with no saved position now defaults to 0, 0, so it fills the frame, matching the manager preview (#536).
On the templates page:
Changes
loadTemplate(id)fetches an unmatched route id. A link opened during a search does not join the results.pluginNamereused, andresolvePluginchecks the cache first.Testing
nx test signage-manager(994) andnx build signage-managerpass.&names, floating 50%, delete.Notes
approved=true, and the pagednextlink skips one row per page.Independent of the other signage PRs from this review. Based on
develop.Changes made by Claude Opus 5.5 (1M context) in Claude Code, running in T3 Code.
🤖 Generated with Claude Code