Skip to content

[DOCS] Sort props in docs in ascending order - #3944

Merged
thompsongl merged 7 commits into
elastic:masterfrom
ashikmeerankutty:sorting-props
Aug 25, 2020
Merged

thompsongl merged 7 commits into
elastic:masterfrom
ashikmeerankutty:sorting-props

Conversation

@ashikmeerankutty

@ashikmeerankutty ashikmeerankutty commented Aug 19, 2020 •

Copy link
Copy Markdown
Contributor

Summary

Makes progress on #3056

  • Sorted props in ascending order for better readability

Checklist

  • Check against all themes for compatibility in both light and dark modes
  • Checked in mobile
  • Checked in Chrome, Safari, Edge, and Firefox
  • Props have proper autodocs
  • Added documentation
  • Checked Code Sandbox works for the any docs examples
  • Added or updated jest tests
  • Checked for breaking changes and labeled appropriately
  • Checked for accessibility including keyboard-only and screenreader modes

- [ ] A changelog entry exists and is marked appropriately

@kibanamachine

Copy link
Copy Markdown
Contributor

Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually?

@thompsongl

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@cchaos

cchaos commented Aug 19, 2020

Copy link
Copy Markdown
Contributor

I have a suggestion for this. Lots of times we are writing the props in the component so that they're in an order where they relate to each other. For instance it's nice to keep prepend and append grouped together.

Is it possible, then to just hook up the sort ability of the table header to allow users to then sort it themselves into the alphabetical order?

@ashikmeerankutty

Copy link
Copy Markdown
Contributor Author

Is it possible, then to just hook up the sort ability of the table header to allow users to then sort it themselves into the alphabetical order?

Yes, For that I needed to add the props to the state so that I can update. I have done the changes, Can you please review it.

@cchaos

cchaos commented Aug 21, 2020

Copy link
Copy Markdown
Contributor

retest

@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall chandlerprall left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code changes LGTM; My only remark is that sorting in descending order isn't present, but I don't know how necessary that is, thoughts @cchaos ?

@cchaos

cchaos commented Aug 24, 2020

Copy link
Copy Markdown
Contributor

sorting in descending order isn't present

Playing with the current implementation it feels odd to me to not allow descending order.

@chandlerprall

Copy link
Copy Markdown
Contributor

Playing with the current implementation it feels odd to me to not allow descending order.

👍

@ashikmeerankutty let's toggle asc->desc->off, then this will be good to go!

@ashikmeerankutty

Copy link
Copy Markdown
Contributor Author

@chandlerprall Updated with asc->desc>off. Can you please review 😃

@chandlerprall

Copy link
Copy Markdown
Contributor

jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@chandlerprall

Copy link
Copy Markdown
Contributor

off->asc->desc->off works, re-kicking CI for a flaky unit test - jenkins test this

@kibanamachine

Copy link
Copy Markdown
Contributor

@thompsongl thompsongl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

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.

5 participants