-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Moved all of the show/hide toggles outside of ordered lists. #57163
Moved all of the show/hide toggles outside of ordered lists. #57163
Conversation
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
Could you please add screenshots? |
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.
@cuff-links thanks for addressing this issue! I have a couple UX suggestions for the toggle link.
- I don't think
EuiTitle
is necessary around the link anymore. - I think it might look a little nicer if we reduce the bottom margin on the
<ul>
so there is not as much of a gap between the list and the toggle link.
@elasticmachine merge upstream |
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.
@cuff-links The link looks better now, but I still see the gap between the list and the link. I also noticed a regression, when I hit click "Show x more indices", the full list renders but the bullet points are no longer present.
…e_Indices_Outside_List
…-links/kibana into Move_Show_Hide_Indices_Outside_List
This isn't done. I am coming across an error and I am really having a hard time tracking it down:
|
…d implemented the general component in the pages. Also made conditional for the i18n tags.
@alisonelizabeth I found the issue with the error and resolved it. Please take a look at this implementation as I have never built out a component in this fashion before. The regression you mentioned above has also been addressed as there is only one implementation of the list now. |
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.
@cuff-links this is a great start! Thanks for building out a common component.
I left a couple comments in the code. I also noticed while testing that the bullet points in the list are missing. Can you take a look?
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
x-pack/legacy/plugins/snapshot_restore/public/app/components/show_hide_indices.tsx
Outdated
Show resolved
Hide resolved
…e_Indices_Outside_List
…the bullet points. Updated the i18n tags to be more generic. Created 2 components for formatted message.
@elasticmachine merge upstream |
…e_Indices_Outside_List
…-links/kibana into Move_Show_Hide_Indices_Outside_List
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.
Great work @cuff-links! Latest changes LGTM.
I noticed the i18n
check is failing due to some unused translations. You should be able to run node scripts/i18n_check --fix
to resolve this.
…e_Indices_Outside_List
@elasticmachine merge upstream |
…e_Indices_Outside_List
…-links/kibana into Move_Show_Hide_Indices_Outside_List
💚 Build SucceededHistory
To update your PR or re-run it, just comment with: |
…#57163) * Moved all of the show/hide toggles outside of ordered lists. * Fixed styling issues for indice list. * Fixed i10n tag that I accidentally changed. * Added component to show/hide indices. * Abstracted out some of the common parts of the Show Hide component and implemented the general component in the pages. Also made conditional for the i18n tags. * Fixed changes per comments. Restored <EuiText> to fix the issue with the bullet points. Updated the i18n tags to be more generic. Created 2 components for formatted message. * Fixed internalization issues.. Co-authored-by: Elastic Machine <[email protected]>
* master: (136 commits) [Visualize] Remove legacy appState in visualize (elastic#57330) Use static time for tsvb rollup test (elastic#57701) [SIEM] Fix ResizeObserver polyfill (elastic#58046) [SIEM][Detection Engine] Fixes return codes where some were rule_id instead of id skip flaky suite (elastic#56816) skip flaky suite (elastic#58059) skip flaky suite (elastic#45348) migrates notification server routes to NP (elastic#57906) Moved all of the show/hide toggles outside of ordered lists. (elastic#57163) [APM] NP Migration - Moves plugin server files out of legacy (elastic#57532) [Maps][Telemetry] Migrate Maps telemetry to NP (elastic#55055) Embeddable add panel examples (elastic#57319) Fix useRequest to support query change (elastic#57723) Allow custom paths in plugin generator (elastic#57766) [SIEM][Case] Merge header components (elastic#57816) [ML] New Platform server shim: update job audit messages routes (elastic#57925) [kbn/optimizer] emit success event from reducer when all bundles cached (elastic#57945) [APM] Don’t include UI filters when fetching a specific transaction (elastic#57934) Upgrade yargs (elastic#57720) skip flaky suite (elastic#57762) (elastic#57997) (elastic#57998) ... # Conflicts: # src/plugins/advanced_settings/public/management_app/components/field/__snapshots__/field.test.tsx.snap # src/plugins/advanced_settings/public/management_app/components/field/field.tsx # x-pack/plugins/translations/translations/ja-JP.json # x-pack/plugins/translations/translations/zh-CN.json
Looks like this PR has a backport PR but it still hasn't been merged. Please merge it ASAP to keep the branches relatively in sync. |
…#58063) * Moved all of the show/hide toggles outside of ordered lists. * Fixed styling issues for indice list. * Fixed i10n tag that I accidentally changed. * Added component to show/hide indices. * Abstracted out some of the common parts of the Show Hide component and implemented the general component in the pages. Also made conditional for the i18n tags. * Fixed changes per comments. Restored <EuiText> to fix the issue with the bullet points. Updated the i18n tags to be more generic. Created 2 components for formatted message. * Fixed internalization issues.. Co-authored-by: Elastic Machine <[email protected]> Co-authored-by: Elastic Machine <[email protected]>
Fixes #44036