scenes

Build Grafana dashboards directly in your Grafana app plugins.

APACHE-2.0 License

Downloads
87.4K
Stars
116
Committers
45

Bot releases are visible (Hide)

scenes - v3.8.2

Published by grafanabot 8 months ago

🐛 Bug Fix

  • RuntimeDataSource: Add QueryVariable to demo #613 (@torkelo)
  • @grafana/scenes
    • Rows are draggable when scene layout is draggable #626 (@mdvictor)
    • Style rows to show actions on entire group hover #625 (@mdvictor)

Authors: 2

scenes - v3.8.1

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes
    • Group row title and actions together on the left side #624 (@mdvictor)

Authors: 1

scenes - v3.8.0

Published by grafanabot 8 months ago

🚀 Enhancement

🐛 Bug Fix

Authors: 2

scenes - v3.7.0

Published by grafanabot 8 months ago

🚀 Enhancement

  • @grafana/scenes
    • VizPanel: Pass container width to data provider always #611 (@torkelo)
    • SceneObjectBase: Minor optimization to setParent #610 (@torkelo)

🐛 Bug Fix

Authors: 2

scenes - v3.6.1

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes
    • VizPanel: Fixes issue with non memoizable PanelData #609 (@torkelo)

Authors: 1

scenes - v3.6.0

Published by grafanabot 8 months ago

🚀 Enhancement

Authors: 2

scenes - v3.5.0

Published by grafanabot 8 months ago

🚀 Enhancement

  • @grafana/scenes
    • SceneQueryRunner: Add query caching options #603 (@dprokop)

Authors: 1

scenes - v3.4.1

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes

Authors: 1

scenes - v3.4.0

Published by grafanabot 8 months ago

Release Notes

VariableDependencyConfig: Support * to extract dependencies from every state path (#599)

Possible breaking change: VariableDependencyConfig default behavior

  • Previously: Using VariableDependencyConfig without options scanned the entire state.
  • Now: Default behavior requires an explicit wildcard (*) to scan the whole state. This prevents unintended dependency resolution.

Impact: If you intentionally scanned the entire state, use statePaths: ['*']. Otherwise, specify desired statePaths or variableNames.

Example:

class TestObj extends SceneObjectBase<TestState> {
  public constructor() {
    super({
      query: 'query with ${queryVarA} ${queryVarB}',
      otherProp: 'string with ${otherPropA}',
      nested: {
        query: 'nested object with ${nestedVarA}',
      },
    });
  }
}

it('Should be able to extract dependencies from all state', () => {
    const sceneObj = new TestObj();
-    const deps = new VariableDependencyConfig(sceneObj, {});
+    const deps = new VariableDependencyConfig(sceneObj, { statePaths: ['*'] });

    expect(deps.getNames()).toEqual(new Set(['queryVarA', 'queryVarB', 'nestedVarA', 'otherPropA']));
  });

This mproves performance and avoids unexpected dependency resolution.


🚀 Enhancement

  • @grafana/scenes
    • VariableDependencyConfig: Support * to extract dependencies from every state path #599 (@ivanortegaalba)

🐛 Bug Fix

Authors: 2

scenes - v3.3.0

Published by grafanabot 8 months ago

Release Notes

Variables: Clear current value when no options are returned (#595)

All variables that extend from MultValueVariable (Query, DataSource, Custom) now clear the current value if no options / values are returned by query, clears to empty string or array depending on multi or not.


🚀 Enhancement

  • @grafana/scenes
    • Variables: Clear current value when no options are returned #595 (@torkelo)

Authors: 1

scenes - v3.2.1

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes
    • VariableDependencyConfig: do not scan state if variableNames is defined #598 (@ivanortegaalba)

Authors: 1

scenes - v3.2.0

Published by grafanabot 8 months ago

🚀 Enhancement

  • @grafana/scenes
    • SceneQueryRunner: Improved way to detect changes to adhoc filters and group by variables #596 (@torkelo)

Authors: 1

scenes - v3.1.1

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes
    • AdHocFiltersVariable: Allow setting expression builder function #582 (@adrapereira)

Authors: 1

scenes - v3.1.0

Published by grafanabot 8 months ago

🚀 Enhancement

  • @grafana/scenes
    • QueryController: Update global window query counter #593 (@torkelo)

Authors: 1

scenes - v3.0.0

Published by grafanabot 8 months ago

Release Notes

AdHocFiltersSet/Variable: Unify both objects as a scene variable (breaking change) (#586)

AdHocFilterSet is now removed from the library. AdHocFiltersVariable can now be used in both modes (auto and manual).

To migrate replace AdHocFilterSet with AdHocFiltersVariable , the applyMode defaults to auto which is the new renamed value that was previously same-datasource. Instead of adding this directly to a controls array add it to the variables array of a SceneVariableSet. It will then be rendered along with other variables via the VariableValueSelectors controls component. If you want to render ad hoc filters separately you can set hide: VariableHide.hideVariable so that the filters are not rendered by VariableValueSelectors and use the new component VariableValueControl that can render a specific variable.

AdHocFiltersVariable.create is also removed as this separate factory function is no longer needed. If you where using AdHocFiltersVariable.create then switch to the normal constructor but be sure to pass in applyMode: 'manual' when you create it to preserve the same behavior as before.


💥 Breaking Change

Authors: 3

scenes - v2.6.7

Published by grafanabot 8 months ago

🐛 Bug Fix

  • @grafana/scenes
    • SceneGridLayoutRenderer: fix svg height unit #588 (@erj826)

Authors: 1

scenes - v2.6.6

Published by grafanabot 9 months ago

🐛 Bug Fix

  • @grafana/scenes

Authors: 1

scenes - v2.6.5

Published by grafanabot 9 months ago

🐛 Bug Fix

  • @grafana/scenes

Authors: 1

scenes - v2.6.4

Published by grafanabot 9 months ago

🐛 Bug Fix

Authors: 3

scenes - v2.6.3

Published by grafanabot 9 months ago

🐛 Bug Fix

  • @grafana/scenes
    • TextBoxVariable: Fixes url sync key when name changes #574 (@torkelo)

Authors: 1