Declarative plugin UI and slots #45
Labels
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
SBDeveloper/medley#45
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Parent
Part of #32
What to build
A Plugin can describe UI declaratively as a JSON tree (text, list, button, image, Track list and similar primitives) and handle events. The host renders it with native components so it matches the theme. It requires the UI capability in the manifest and consent. Three slots: overlay tab, sidebar entry (own routed page), settings section. A Plugin's UI receives the playback events it needs (current Track, position). A failing Plugin affects only its own view. Add an ADR recording the rendering model and why a sandboxed iframe was rejected.
This replaces the UI-view half of #21.
Acceptance criteria
Blocked by
Implemented in
fbcb448: ui capability and views for three slots, ui_view/ui_event contract, host-side tree sanitising, native rendering, failure containment, ADR 0005, core tests in crates/core/tests/plugin_ui.rs.