VolkovLabs / business-text

The Business Text panel plugin allows you to construct a text visualization template from the values of a dataset returned by a data source query.
https://docs.volkovlabs.io
Apache License 2.0
81 stars 13 forks source link

Add variableValue helper and re-render on dashboard refresh #252

Closed asimonok closed 10 months ago

asimonok commented 10 months ago

Due to variable helper limitation (works only if variable format is not specified). Was added variableValue helper to use replaced variable value.

Example of usage:

<a href="http://localhost?{{variableValue '${slug:queryparam}'}}">Link</a>
codecov[bot] commented 10 months ago

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Comparison is base (e651bfb) 98.97% compared to head (26c61d2) 98.74%.

Files Patch % Lines
src/components/TextPanel/TextPanel.tsx 87.50% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #252 +/- ## ========================================== - Coverage 98.97% 98.74% -0.23% ========================================== Files 34 34 Lines 389 399 +10 Branches 50 50 ========================================== + Hits 385 394 +9 - Misses 3 4 +1 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.