-
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
[Infra] Add collapsible sections #176048
[Infra] Add collapsible sections #176048
Conversation
…d-collapsible-sections-in-the-overview-tab
… there are no alerts
🤖 GitHub commentsExpand to view the GitHub comments
Just comment with:
|
/ci |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
x-pack/plugins/infra/public/components/asset_details/links/link_to_alerts.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/components/asset_details/tabs/common/popover.tsx
Show resolved
Hide resolved
x-pack/plugins/infra/public/components/asset_details/tabs/overview/alerts.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics_section.tsx
Outdated
Show resolved
Hide resolved
x-pack/plugins/infra/public/components/asset_details/tabs/overview/metrics/metrics_section.tsx
Outdated
Show resolved
Hide resolved
.../plugins/infra/public/components/asset_details/tabs/overview/section/collapsible_section.tsx
Outdated
Show resolved
Hide resolved
.../plugins/infra/public/components/asset_details/tabs/overview/section/collapsible_section.tsx
Outdated
Show resolved
Hide resolved
onClick={(e) => { | ||
e.stopPropagation(); | ||
toggleAlertFlyout(); | ||
}} |
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.
onClick={(e) => { | |
e.stopPropagation(); | |
toggleAlertFlyout(); | |
}} | |
onClick={toggleAlertFlyout} |
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.
...fra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx
Outdated
Show resolved
Hide resolved
...fra/public/components/asset_details/tabs/overview/metadata_summary/metadata_summary_list.tsx
Outdated
Show resolved
Hide resolved
@cauemarcondes Thank you for reviewing the PR! I added comments related to the |
c3f0b87
to
9dca91a
Compare
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.
LGTM
<EuiFlexItem grow={false}> | ||
<LinkToAlertsRule | ||
onClick={(e) => { | ||
// e.stopPropagation(); |
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.
Maybe you can remove this?
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.
Fixed, thanks :)
💛 Build succeeded, but was flaky
Failed CI StepsTest FailuresMetrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
Closes elastic#175558 ## Summary This PR makes all asset details overview sections collapsible. All sections will be always open by default and the user should be able to expand/collapse a section. <img width="300" alt="Screenshot 2024-02-01 at 12 04 24" src="https://github.com/elastic/kibana/assets/14139027/b91a190a-eaec-4031-8591-f11a3a04f201"> <img width="300" alt="Screenshot 2024-02-01 at 12 03 50" src="https://github.com/elastic/kibana/assets/14139027/9d8c20fc-3a27-481c-89ad-1fd7f0e6df47"> ## Testing 1. Open Host view 2. Open the hosts flyout and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/27a6df67-c560-42d6-9166-a8f45880cf8e 3. Open the asset details page and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/f7225ddd-c2a3-4a7b-b520-22acb41e9080
Closes elastic#175558 ## Summary This PR makes all asset details overview sections collapsible. All sections will be always open by default and the user should be able to expand/collapse a section. <img width="300" alt="Screenshot 2024-02-01 at 12 04 24" src="https://github.com/elastic/kibana/assets/14139027/b91a190a-eaec-4031-8591-f11a3a04f201"> <img width="300" alt="Screenshot 2024-02-01 at 12 03 50" src="https://github.com/elastic/kibana/assets/14139027/9d8c20fc-3a27-481c-89ad-1fd7f0e6df47"> ## Testing 1. Open Host view 2. Open the hosts flyout and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/27a6df67-c560-42d6-9166-a8f45880cf8e 3. Open the asset details page and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/f7225ddd-c2a3-4a7b-b520-22acb41e9080
Closes elastic#175558 ## Summary This PR makes all asset details overview sections collapsible. All sections will be always open by default and the user should be able to expand/collapse a section. <img width="300" alt="Screenshot 2024-02-01 at 12 04 24" src="https://github.com/elastic/kibana/assets/14139027/b91a190a-eaec-4031-8591-f11a3a04f201"> <img width="300" alt="Screenshot 2024-02-01 at 12 03 50" src="https://github.com/elastic/kibana/assets/14139027/9d8c20fc-3a27-481c-89ad-1fd7f0e6df47"> ## Testing 1. Open Host view 2. Open the hosts flyout and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/27a6df67-c560-42d6-9166-a8f45880cf8e 3. Open the asset details page and go to the overview tab - All sections should be collapsible - All section buttons should be clickable https://github.com/elastic/kibana/assets/14139027/f7225ddd-c2a3-4a7b-b520-22acb41e9080
Closes #175558
Summary
This PR makes all asset details overview sections collapsible. All sections will be always open by default and the user should be able to expand/collapse a section.
Testing
Screen.Recording.2024-02-01.at.12.07.53.mov
Screen.Recording.2024-02-01.at.12.23.38.mov