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

[EuiSuperDatePicker] add showRefreshOnly prop #1412

Merged
merged 5 commits into from
Jan 8, 2019

Conversation

nreese
Copy link
Contributor

@nreese nreese commented Jan 7, 2019

Adds showRefreshOnly prop to EuiSuperDatePicker. When set to true, only the refresh interval and isPaused can be modified

screen shot 2019-01-07 at 3 28 58 pm

@nreese
Copy link
Contributor Author

nreese commented Jan 7, 2019

@cchaos Here is the prop we talked about that turns the EuiSuperDatePicker into just an interval UI. What do you think?

Below are some screen shots of what Kibana looks like when there is no time picker. This component would replace this view

screen shot 2019-01-07 at 3 31 59 pm

screen shot 2019-01-07 at 3 32 10 pm

screen shot 2019-01-07 at 3 32 18 pm

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Thanks for adding this, I almost completely forgot about it. I had just a couple code comments and I created a PR against yours mainly altering some of the aesthetics.

nreese#4

@@ -80,24 +119,12 @@ export default class extends Component {
onRefreshChange={this.onRefreshChange}
recentlyUsedRanges={this.state.recentlyUsedRanges}
showUpdateButton={this.state.showUpdateButton}
showRefreshOnly={this.state.showRefreshOnly}
Copy link
Contributor

Choose a reason for hiding this comment

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

This prop name is confusing because I think that's it's referring to the Update/Refresh button. Can you rename to isAutoRefreshOnly?

@@ -59,6 +60,10 @@ export class EuiSuperDatePicker extends Component {
* Set showUpdateButton to false to immediately invoke onTimeChange for all start and end changes.
*/
showUpdateButton: PropTypes.bool,
/**
*
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a documentation comment here explaining what the prop does?

Copy link
Contributor

@cchaos cchaos left a comment

Choose a reason for hiding this comment

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

Great, thank you!

@nreese nreese merged commit a20048f into elastic:master Jan 8, 2019
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.

2 participants