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

feat(corel): virtualize content releases plugin lists #7301

Merged
merged 12 commits into from
Aug 8, 2024
Merged

Conversation

pedrobonamin
Copy link
Contributor

@pedrobonamin pedrobonamin commented Aug 2, 2024

Description

This branch introduces virtualization for lists in the releases plugin.

  • Virtualizes the releases summary and the release detail screen lists.

  • Lifts the preview values, for the documents displayed in the release detail screen , to the useBundleDocuments hook. This is necessary because we are using the title generated in the preview values to filter the list.
    With the list virtualization, we need to filter the list before exposing it to the virtualizer, previously, we were not filtering the list, we were just returning null if the row title didn't match the filter criteria.

  • Removes the Row prop from the Table, given it's not necessary anymore and adds extra complexity.

  • Refactors the uses from the data obtained from the useBundleDocuments hook to avoid unnecessary transformations, like creating the Validation map.

  • Removes packages/sanity/src/core/releases/tool/detail/bundleDocumentsValidation.ts given it's not used.

TODO

  • Remove double scroll in releases detail screen.

What to review

Is this correct?
Is there other way to lift the preview values which would be more convenient?

Testing

Existing tests are updated, that should be sufficient to cover the changes introduced.

Notes for release

Copy link

vercel bot commented Aug 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
page-building-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 3:52pm
performance-studio ✅ Ready (Inspect) Visit Preview Aug 7, 2024 3:52pm
test-compiled-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 3:52pm
test-next-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 3:52pm
test-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 7, 2024 3:52pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
studio-workshop ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 3:52pm

Copy link
Contributor

github-actions bot commented Aug 2, 2024

No changes to documentation

@pedrobonamin pedrobonamin merged commit f296171 into corel Aug 8, 2024
42 of 43 checks passed
@pedrobonamin pedrobonamin deleted the corel-90 branch August 8, 2024 07:33
bjoerge pushed a commit that referenced this pull request Aug 16, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
bjoerge pushed a commit that referenced this pull request Aug 20, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
bjoerge pushed a commit that referenced this pull request Aug 20, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
bjoerge pushed a commit that referenced this pull request Aug 20, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
RitaDias pushed a commit that referenced this pull request Aug 23, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
RitaDias pushed a commit that referenced this pull request Aug 26, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
juice49 pushed a commit that referenced this pull request Sep 3, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
RitaDias pushed a commit that referenced this pull request Oct 3, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
juice49 pushed a commit that referenced this pull request Oct 4, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
juice49 pushed a commit that referenced this pull request Oct 7, 2024
* feat(core): virtualise the content releases lists

* feat(corel): lift preview values state to useBundles hook

* fix(core): update corel sort actions

* fix(core): update useBundleDocuments return value

* fix(core): rename BundleDocumentResult to DocumentInBundleResult

* fix(corel): remove Row prop from releases Table

* fix(core): update how preview is calculated in useBundleDocuments, reuse the fetched document

* feat(core): update corel summary and overview virtual tables

* fix(core): update release summary types import

* feat(core): virtualize review changes screen - corel-91
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