Skip to content

Expose prettyDuration and commonDurationRanges#2132

Merged
chandlerprall merged 12 commits intoelastic:masterfrom
chandlerprall:feature/2118-pretty-print
Jul 18, 2019
Merged

Expose prettyDuration and commonDurationRanges#2132
chandlerprall merged 12 commits intoelastic:masterfrom
chandlerprall:feature/2118-pretty-print

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

@chandlerprall chandlerprall requested a review from thompsongl July 17, 2019 17:26
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

chandlerprall and others added 4 commits July 17, 2019 13:00
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
Co-Authored-By: Caroline Horn <549577+cchaos@users.noreply.github.com>
@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