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

feat(ui): Persist variables control bar preferences #12901

Merged
merged 1 commit into from
Mar 26, 2019

Conversation

ischolten
Copy link
Contributor

@ischolten ischolten commented Mar 26, 2019

Closes #12845
Closes #12846

Briefly describe your proposed changes:
Save user preference for open or closed variables control bar in local storage.
default to open.

  • CHANGELOG.md updated with a link to the PR (not the Issue)
  • Rebased/mergeable
  • Tests pass
  • http/swagger.yml updated (if modified Go structs or API)
  • Sign CLA (if not already signed)

@ischolten ischolten force-pushed the feat/persist-variables-visibility branch 4 times, most recently from c75238e to 3b3fe0f Compare March 26, 2019 20:55
@ischolten ischolten force-pushed the feat/persist-variables-visibility branch from 3b3fe0f to 30a704f Compare March 26, 2019 20:58
Copy link
Contributor

@OfTheDelmer OfTheDelmer left a comment

Choose a reason for hiding this comment

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

LGTM

/>
{isShowingVariablesControlBar && (
{showVariablesControls && !!dashboard && (
Copy link
Contributor

Choose a reason for hiding this comment

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

nice

@@ -25,7 +26,8 @@ const localState = {
duration: '15m',
},
],
variables: initialState(),
variables: initialVariablesState(),
Copy link
Contributor

Choose a reason for hiding this comment

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

would we need to worry about sensitive data in variables?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the initial state of variables doesnt have much in it. plus this is just mocks

queries={this.queries}
key={manualRefresh}
variables={this.variableAssignments}
<SpinnerContainer
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice

@ischolten ischolten merged commit 773dedf into master Mar 26, 2019
@ischolten ischolten deleted the feat/persist-variables-visibility branch March 26, 2019 21:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants