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

Enable selecting variable values in time machine #12678

Merged
merged 2 commits into from Mar 18, 2019
Merged

Conversation

chnn
Copy link
Contributor

@chnn chnn commented Mar 18, 2019

Closes #12122

pr

@chnn chnn force-pushed the ui-time-machine-vars branch 2 times, most recently from eecef1f to dbda60b Compare March 18, 2019 16:02
@@ -37,7 +39,11 @@ class ToolbarFunction extends PureComponent<Props, State> {
onMouseLeave={this.handleStopHover}
data-testid={testID}
>
{this.tooltip}
{isActive && (
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 variables list in the script editor needed the same style of tooltips as the functions list, so I extracted them to a component called BoxTooltip.

Screen Shot 2019-03-18 at 8 58 13 AM

Screen Shot 2019-03-18 at 8 58 34 AM

const {expanded} = this.state

if (expanded) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey @alexpaxton @mavarius, could I get your opinion on this change? I removed the validation / dev assertion that a Dropdown must have at least 1 child.

I needed to display a dropdown that loads its items asynchronously. So it may no have any items (either hasn't been loaded, or has been loaded but no results were returned).

Screen Shot 2019-03-18 at 8 58 59 AM

Screen Shot 2019-03-18 at 8 59 08 AM

ui/src/shared/components/GetVariables.tsx Outdated Show resolved Hide resolved
@chnn chnn merged commit 243f1ea into master Mar 18, 2019
@mark-rushakoff mark-rushakoff deleted the ui-time-machine-vars branch March 20, 2019 22:01
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

3 participants