rill
rill copied to clipboard
Runtime: Dashboard components with generic renderers and optional inline definition
Changes:
- Changed the
components:property toitems:in the dashboard YAML- The idea is that
item = component + grid info
- The idea is that
- Renamed the
Chartresource toComponent - Supports inline component definition from a dashboard:
- if
items[*].componentis astring, it is treated as a reference to an externally defined component - if
items[*].componentis amap, it is treated as an inline component definition
- if
- Added generic
rendererandrenderer_propertiesfields toComponent - Defines three renderers with the following formats:
-
"renderer": "vega_lite", "rendererProperties": {"spec": "..."} -
"renderer": "markdown", "rendererProperties": {"contents": "..."} -
"renderer": "image", "rendererProperties": {"url": "..."}
-
- Inline component definitions are emitted as separate
Componentresources called[dashboard name]--component[idx] - Changes the
/charts/{name}/dataAPI to/components/{name}/data - Changes the
GenerateChartSpecAPI toGenerateRenderer. It now returns two values:rendererandrenderer_properties.
See this design doc for the new component syntax.
This PR currently breaks the frontend since these are breaking changes.