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

Expose prettyDuration and commonDurationRanges #2132

Merged
merged 12 commits into from
Jul 18, 2019

Conversation

chandlerprall
Copy link
Contributor

Summary

Closes #2118. Exports prettyDuration and commonDurationRanges for use outside the super date picker. I wanted to pull the functionality from super_date_picker and into services, but it's so connected I decided to leave it in place.

Added documentation for prettyDuration.

prettyDuration docs

Checklist

  • This was checked in mobile
  • This was checked in IE11
  • This was checked in dark mode
  • Any props added have proper autodocs
  • Documentation examples were added
  • A changelog entry exists and is marked appropriately
  • This was checked for breaking changes and labeled appropriately
  • Jest tests were updated or added to match the most common scenarios
  • This was checked against keyboard-only and screenreader scenarios
  • This required updates to Framer X components

Copy link
Contributor

@nreese nreese left a comment

Choose a reason for hiding this comment

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

lgtm
code review, reviewed EUI doc changes in chrome

quickRanges: [],
dateFormat: 'MMMM Do YYYY, HH:mm:ss.SSS',
},
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Same example as above. Can remove this copy

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 dateFormat is altered slightly in the second example.

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

Just the one update. Looks good otherwise

CHANGELOG.md Outdated Show resolved Hide resolved
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.

There are several console errors that need fixing

Screen Shot 2019-07-17 at 13 58 10 PM

src-docs/src/views/pretty_duration/pretty_duration.js Outdated Show resolved Hide resolved
src-docs/src/views/pretty_duration/pretty_duration.js Outdated Show resolved Hide resolved
@chandlerprall
Copy link
Contributor Author

Thanks @cchaos! Took your suggestions and cleaned up the console warnings.

Copy link
Contributor

@thompsongl thompsongl left a comment

Choose a reason for hiding this comment

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

LGTM

The CI failure is just a lint error

@chandlerprall chandlerprall merged commit 647d946 into elastic:master Jul 18, 2019
@chandlerprall chandlerprall deleted the feature/2118-pretty-print branch July 18, 2019 14:09
@snide snide mentioned this pull request Jul 22, 2019
7 tasks
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.

Expose pretty print date range functionality
5 participants