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

Update global date picker #1219

Merged
merged 14 commits into from
Nov 20, 2018
Merged

Conversation

cchaos
Copy link
Contributor

@cchaos cchaos commented Sep 27, 2018

Summary

Altered global date/time picker to use buttons instead of date inputs and adds the update button. The component just needed a few adjustments, mostly on the pattern side.

Still needs:

  • Updated doc description
  • This stuff (cc @snide)

---

Includes a fix for #1207 (don’t shrink date picker icon)


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 (different PR for that)

@cchaos
Copy link
Contributor Author

cchaos commented Nov 5, 2018

@snide Ready for a look through. I've incorporated the extra stuff.

@snide
Copy link
Contributor

snide commented Nov 5, 2018

I'll scan this tonight. Thanks!

@snide
Copy link
Contributor

snide commented Nov 6, 2018

Hmm. Either my local got messed or I think you forgot to commit. 😈

@cchaos
Copy link
Contributor Author

cchaos commented Nov 6, 2018

Yeah... I forgot to push....

Copy link
Contributor

@snide snide left a comment

Choose a reason for hiding this comment

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

This is great. All minor comments.

Might want to set a min-width on the button to avoid the jumpy grid?

Might want to add an isLoading state when it's in live update mode? Right now that Kibana Pink Bar Line of Death handles this, so it's not 100% necessary.

image

@cchaos cchaos force-pushed the update-global-date-picker branch from 3e949bd to 9e44a7e Compare November 16, 2018 19:16
@cchaos cchaos changed the title [WIP] Update global date picker Update global date picker Nov 16, 2018
@cchaos
Copy link
Contributor Author

cchaos commented Nov 16, 2018

Ok, this is now done. @chandlerprall can you do a real quick pass at the code (esp the TS defs?)

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

couple type changes

src/components/button/index.d.ts Outdated Show resolved Hide resolved
src/components/button/index.d.ts Outdated Show resolved Hide resolved
src/components/button/index.d.ts Outdated Show resolved Hide resolved
src/components/button/index.d.ts Outdated Show resolved Hide resolved
chandlerprall and others added 4 commits November 20, 2018 11:46
Co-Authored-By: cchaos <549577+cchaos@users.noreply.github.com>
Co-Authored-By: cchaos <549577+cchaos@users.noreply.github.com>
Co-Authored-By: cchaos <549577+cchaos@users.noreply.github.com>
Co-Authored-By: cchaos <549577+cchaos@users.noreply.github.com>
@cchaos
Copy link
Contributor Author

cchaos commented Nov 20, 2018

@chandlerprall , I've committed your TS def fixes

Copy link
Contributor

@chandlerprall chandlerprall left a comment

Choose a reason for hiding this comment

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

Also need to import HTMLAttributes in button/index.d.ts (this is causing the CI build failure) - add HTMLAttributes to the list of imports from React in that file.

@cchaos
Copy link
Contributor Author

cchaos commented Nov 20, 2018

Ahh youp, thx. Updated

@cchaos cchaos merged commit 1eee787 into elastic:master Nov 20, 2018
@snide snide mentioned this pull request Nov 30, 2018
1 task
@cchaos cchaos deleted the update-global-date-picker branch February 28, 2019 15:16
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.

3 participants