rilldata / rill

Rill is a tool for effortlessly transforming data sets into powerful, opinionated dashboards using SQL. BI-as-code.
https://www.rilldata.com
Apache License 2.0
1.62k stars 111 forks source link

As an embedded dashboard developer, I want to know about filter / state changes in the iframe #5091

Open AndrewRTsao opened 2 months ago

AndrewRTsao commented 2 months ago

Certain clients or developers who utilize embedded dashboards may want to know about the current set of filters being used within a dashboard iframe (or state changes). For example, this could then be passed to other parts of the application to provide additional context and drive related product experiences (or even be passed to a LLM). We should use postMessage from the iframe to notify the parent site about filter/state changes inside the iframe.

More context: https://rilldata.slack.com/archives/C01A9DYP013/p1718620993472979?thread_ts=1718403173.583489&cid=C01A9DYP013 https://www.notion.so/rilldata/Implement-embedded-dashboards-febbd201c0004f24b695bfde43d4bfd1#75cbfc1d2a3d45618dd4ce0984a577c7

mindspank commented 1 month ago

https://www.notion.so/rilldata/Emit-Filter-Changes-from-Rill-Embed-e25e692bac564fc2a042c05f5d76ec55?pvs=4