Skip to content

Latest commit

 

History

History
59 lines (45 loc) · 1.64 KB

File metadata and controls

59 lines (45 loc) · 1.64 KB

Control Center Plugins

Control Center UI plugins extend the operator console with dashboards, entity views, and configuration pages.

Plugin type

[plugin]
type = "control-center-ui"

Contributions

[control_center]
panels = [
  { id = "vitals-dashboard", title = "Vitals Dashboard", component = "VitalsDashboard" }
]
entity_tabs = [
  { id = "patient-vitals", title = "Vitals", component = "PatientVitalsTab" }
]
routes = [
  { path = "/plugins/vitals", title = "Vitals" }
]

Examples

  • Healthcareexamples/plugins/healthcare-plugin/ (patient devices, vitals)
  • ADASexamples/plugins/adas-plugin/ (vehicle readiness, sensor calibration)
  • Generic panelexamples/plugins/control-center-panel/

Install

spanda plugin install --path examples/plugins/healthcare-plugin
spanda plugin enable spanda-plugin-healthcare

UI plugins use the same capability and security model as other plugins. See plugin-security.md.

Control Center host

Enabled control-center-ui plugins appear in Control Center navigation. Panel bundles load in a sandboxed iframe (sandbox="allow-scripts") with a postMessage bridge — see plugin-stable-promotion.md.

Marketplace tab actions (search / install / enable / disable) call REST:

Method Path RBAC
GET /v1/plugins read
GET /v1/plugins/search?q= read
POST /v1/plugins/install Provision
POST /v1/plugins/{name}/enable Operate
POST /v1/plugins/{name}/disable Operate
GET /v1/plugins/control-center/{plugin}/bundle read