Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for variables in query editor #134

Merged
merged 3 commits into from
Jun 7, 2022

Conversation

toddtreece
Copy link
Member

@toddtreece toddtreece commented Jun 6, 2022

Adds query variables to asset and property dropdowns:
image

Related to fixes for #113

.map((variable) => ({
label: `$${variable.label ?? variable.name}`,
value: `$${variable.name}`,
description: `${variable.type} variable`,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the clock panel in in twinmaker, we add an icon for the template variable options... not sure if that makes sense here?

See: grafana/clock-panel#108

https://github.com/grafana/clock-panel/pull/108/files#diff-2123f97b7bf9480a61717c843425e483e8d97819592e8c04e4e149eb65b451e8R185

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryantxu 👍 sounds like a good plan to me. updated:
image

@toddtreece toddtreece requested a review from ryantxu June 6, 2022 23:17
Copy link
Member

@ryantxu ryantxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks!

@toddtreece toddtreece merged commit 8c3d3f0 into main Jun 7, 2022
@toddtreece toddtreece deleted the toddtreece/panel-query-variable-support branch June 7, 2022 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants