Skip to content
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

web: add pagination to resource list tables in Table View to mirror Detail View #5511

Merged
merged 1 commit into from
Feb 17, 2022

Conversation

lizzthabet
Copy link
Contributor

This PR adds a ...Show More button to each table in Table View when the resource list exceeds twenty items. It pulls out the shared code from Detail View into its own component. These changes will help mitigate the performance issues we're seeing with displaying many resources (#5495) while we investigate root causes.

Screen Shot 2022-02-16 at 3 26 28 PM

Screen Shot 2022-02-16 at 3 14 07 PM

There may be some subtleties in how we want the list truncation to work, but for now, I took the easiest approach. A couple examples I can think of:

  • When you collapse and expand a resource group, does list truncation reset? (It currently does not.)
  • If you view disabled resources, click "show more" in a table with many resources, hide disabled resources, and then show them again, does the list truncation reset? (It currently does not.)

Closes ch13307

@lizzthabet lizzthabet requested review from nicks and landism February 16, 2022 20:29
@lizzthabet lizzthabet self-assigned this Feb 16, 2022
@shortcut-integration
Copy link

web/src/SidebarResources.tsx Outdated Show resolved Hide resolved
web/src/OverviewTable.tsx Outdated Show resolved Hide resolved
web/src/OverviewTable.tsx Outdated Show resolved Hide resolved
@lizzthabet lizzthabet force-pushed the lizz/fix/add-pagination-to-table-view branch from e0fbaa2 to a65faab Compare February 17, 2022 18:04
@lizzthabet lizzthabet merged commit 74ac7ab into master Feb 17, 2022
@lizzthabet lizzthabet deleted the lizz/fix/add-pagination-to-table-view branch February 17, 2022 18:26
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.

2 participants