-
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
[App Search] Add accordion lists for Domains, Seed URLs, and Sitemap URLs to Crawl Details Flyout #119682
[App Search] Add accordion lists for Domains, Seed URLs, and Sitemap URLs to Crawl Details Flyout #119682
Conversation
Can we set a max width on that fly out? I'm on my phone right now, but I believe that the medium size is appropriate. |
@elasticmachine merge upstream |
hasBorder?: boolean; | ||
initialIsOpen?: boolean; |
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.
hasBorder
allows the accordion to be rendered with or without a border and padding. I've got some designs in the works that will use be making use of this component in both scenarios.initialIsOpen
allows the accordion to be expanded. In this case specifically, we set the prop totrue
when items exist in the list.
pagination={{ | ||
pagination={ items.length > 10 ? { | ||
hidePerPageOptions: true, | ||
}} | ||
} : false} |
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'm hiding pagination when there's only one page of items.
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.
To me it looks like we have a lot of borders:
We could either increase the whitespace between the sections or it might help to remove the bottom border on the tables.
Also, it says "No items found" which reads a bit weird. But it looks like EuiInMemoryTable
has that built-in somehow, so I'm not sure if we have control over that message.
...app_search/components/crawler/components/crawl_details_flyout/crawl_details_preview.test.tsx
Outdated
Show resolved
Hide resolved
...app_search/components/crawler/components/crawl_details_flyout/crawl_details_preview.test.tsx
Outdated
Show resolved
Hide resolved
...pplications/app_search/components/crawler/components/crawl_details_flyout/accordion_list.tsx
Outdated
Show resolved
Hide resolved
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
History
To update your PR or re-run it, just comment with: |
…URLs to Crawl Details Flyout (elastic#119682) * New AccordionList component * Add a domains accordion list to the CrawlDetailsPreview * Add seedUrls to CrawlConfig * Add a seed urls accordion list to the CrawlDetailsPreview * Add sitemapUrls to CrawlConfig * Add a sitemap urls accordion list to the CrawlDetailsPreview * Disable arrow in AccordionList when items are empty * Add spacers to CrawlDetailsPreview * Type fix * Sets a maxWidth on the flyout. * Allows the raw JSON to be copied. * Visual updates to the accordions. * Linting * Review and linting fixes. * Styles the tables in the accordion list. * Uses a subdued color for count badges when the count is zero. Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Davey Holler <[email protected]>
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
…URLs to Crawl Details Flyout (#119682) (#120160) * New AccordionList component * Add a domains accordion list to the CrawlDetailsPreview * Add seedUrls to CrawlConfig * Add a seed urls accordion list to the CrawlDetailsPreview * Add sitemapUrls to CrawlConfig * Add a sitemap urls accordion list to the CrawlDetailsPreview * Disable arrow in AccordionList when items are empty * Add spacers to CrawlDetailsPreview * Type fix * Sets a maxWidth on the flyout. * Allows the raw JSON to be copied. * Visual updates to the accordions. * Linting * Review and linting fixes. * Styles the tables in the accordion list. * Uses a subdued color for count badges when the count is zero. Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Davey Holler <[email protected]> Co-authored-by: Byron Hulcher <[email protected]> Co-authored-by: Davey Holler <[email protected]>
…URLs to Crawl Details Flyout (elastic#119682) * New AccordionList component * Add a domains accordion list to the CrawlDetailsPreview * Add seedUrls to CrawlConfig * Add a seed urls accordion list to the CrawlDetailsPreview * Add sitemapUrls to CrawlConfig * Add a sitemap urls accordion list to the CrawlDetailsPreview * Disable arrow in AccordionList when items are empty * Add spacers to CrawlDetailsPreview * Type fix * Sets a maxWidth on the flyout. * Allows the raw JSON to be copied. * Visual updates to the accordions. * Linting * Review and linting fixes. * Styles the tables in the accordion list. * Uses a subdued color for count badges when the count is zero. Co-authored-by: Kibana Machine <[email protected]> Co-authored-by: Davey Holler <[email protected]>
Summary
AccordionList
componentAccordionList
to the existingCrawlDetailsFlyout
component)Screenshots
Checklist