-
Notifications
You must be signed in to change notification settings - Fork 843
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
[EUI+] Reorganize Forms category #8184
Conversation
4cab393
to
46c82bd
Compare
packages/website/docs/components/forms/form_layouts/prepend_append.mdx
Outdated
Show resolved
Hide resolved
- Remove top level link/doc and add more sublevel items - give described form group its own page - move compressed forms to this section - remove "in a popover" example from form rows - compressed forms already have this example and explicitly state non-compressed forms should not be used in popovers - remove guideline CTA to its own page??
I gave up on git history, sorry :|||
- was previously at the top of a single page with basic controls, will need to spread it out a bit more now - there are more components that can take EuiFormRow (and some that can't), we probably need to audit which at some point. this is not meant to be a perfect solution
- they fit under the general layout guideline text, so might as well move them here?
+ add a demo for nativate invalidation checking
+ some copy/link updates
+ updates etc
+ remove various callouts/links to it - in theory now that the components are grouped together, it should be easy to decide which to use - (opinionated, feel free to revert) remove images of various components, not sure how useful it is on the actual docs site
…o its own section + move EuiFormFieldset to the label section (feels like that's where it makes more sense)
6642ca2
to
667bfa0
Compare
@tkajtoch @mgadewoll @acstll I'd appreciate your review and let me know what you think about the changes, maybe you have some more suggestions 🙏🏻 @mgadewoll I had a conflict in color picker docs, I was able to boil the changes down to this PR. Could you take a look whether I resolved the conflicts correctly and all is as expected? Testing notesI was:
Form layouts ✅
Form validation ✅Text controls ✅
All of these redirections do not work as expected. Numeric controls ❌
The Selection controls ❌
I feel this alert from the old docs belongs on the main "Selection controls" page.
The
I feel that the structure for checkboxes and radios is not logical. They are packed in the main page, and as a subpage there's "Switches" (although originally, they're all on the same page. Additionally, I don't see the need for distinguishing this subcategory of "Checkboxes and Radios", and how Switches fall into that (they're neither Checkbox or Radio). I would suggest to put all the pages on the same level.
The
The
The
There's quite a lot of headers on the same level. I think some can be grouped into higher level, e.g. "Selection" headers. Additionally, some content is missing from the old docs, like the alert and:
This alert seems repetitive? We could say this about all controls, right? Not ComboBox specifically.
The
The redirections: (The whole Utilities section is missing, it will be added on: #8190) Search and filter controls ✅
The Date and time controls ❌
Feels to me like
This section seems to belong in
The Other controls ✅
The |
There are few issues I left, either I don't know how to fix it or I believe it should not be fixed on this PR:
Those are decisions I don't feel confident making on my own. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked the forms docs: The new structure works well and from what I can tell almost all content is there (just missing latest changes to color picker docs for appended titles)
/docs/...
or /#/
) does not work in the PR environment as we are on different sub directories.
I guess we might want to update to relative paths to ensure links work in any environment 🤔
List of links I found for forms:
- https://github.com/elastic/eui/pull/8184/files#diff-37a7151946a7ea47aaa2795e230874f34386ffea9d9897fe40b8940dd46543daR13
- https://github.com/elastic/eui/pull/8184/files#diff-d505440c8c9d468735af3b887c0cfae1b2d67b810e8ce96627cd5b0a8fb53de0R9
- https://github.com/elastic/eui/pull/8184/files#diff-1e93d6b153c8513ed0b8224f405d83ed99b6e8c76b4c8eafda12302bae3eadb6R365
- https://github.com/elastic/eui/pull/8184/files#diff-d505440c8c9d468735af3b887c0cfae1b2d67b810e8ce96627cd5b0a8fb53de0R855
- https://github.com/elastic/eui/pull/8184/files#diff-d505440c8c9d468735af3b887c0cfae1b2d67b810e8ce96627cd5b0a8fb53de0R693
- https://github.com/elastic/eui/pull/8184/files#diff-2bab9ca102b6d76e5e5cf45c235f4e71daa0b8ca211d687a64ef9f4c136924b7R65
- https://github.com/elastic/eui/pull/8184/files#diff-bb66c37fe3182300bbb2a63eabd6b99ea05894306a41ada14bd8f97b11d4538bR16
- https://github.com/elastic/eui/pull/8184/files#diff-bb66c37fe3182300bbb2a63eabd6b99ea05894306a41ada14bd8f97b11d4538bR166
- https://github.com/elastic/eui/pull/8184/files#diff-ae0dd11ad4b10306fc55ffdc1816bea33bcaeb6940c7f234a3018c0964de0476R41
- https://github.com/elastic/eui/pull/8184/files#diff-9ed0952ddf330d3eefcd17d0e48e1e5b5c83d58f5c76f89783b546935b3ba7c5R799
- https://github.com/elastic/eui/pull/8184/files#diff-9ed0952ddf330d3eefcd17d0e48e1e5b5c83d58f5c76f89783b546935b3ba7c5R1925
packages/website/docs/components/forms/form_layouts/described_form_group.mdx
Show resolved
Hide resolved
packages/website/docs/components/forms/form_layouts/form_label.mdx
Outdated
Show resolved
Hide resolved
buildkite test this |
@mgadewoll Docs deployed, the latest color palette picker changes are there: Could you take a look again, compare to this PR? Thanks! |
@acstll @mgadewoll I updated all links in the Forms category:
To find all Markdown links I used this regexp: Additionally, I added a section about the links to README.md (to document our decision; ADR would be an overkill). I'll merge the latest changes because I have merged another EUI+ PR and I'll trigger the build on this one. I'd like to ask you to do a quick sanity check, pretty please 🙏🏻 |
buildkite test this |
Preview staging links for this PR:
|
💚 Build Succeeded
History
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 🐈⬛ Thanks for the updates!
The changes look good to me and the links in forms work as expected 🎉
Summary
#8163
I was crunched for time, so sadly the git commit history on this PR is something of a tragedy. Apologies! Feel free to chop up/take and use this PR for whatever you want. I categorized the various form controls into sections based primarily on usage type:
Overall sections:
Individual subcategories:
Selection components overview
The biggest thing I really wanted to add to this PR (other than shuffling pages around) was to convert #7049 into an actual page on our docs site instead of needing a separate wiki for it:
And I think this PR succeeds fairly well at that! 🤞 (although there are some TODO comments in the mdx file that I did not have time to improve on)
QA
Forms
category of component docs: https://eui.elastic.co/pr_8184/new-docs/docs/forms/layouts/guidelines/General checklist
N/A, docs changes only