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

WCMS-21498: Add fullscreen mode to dataset table tab #237

Merged
merged 10 commits into from
Aug 19, 2024

Conversation

brdunfield
Copy link
Contributor

@brdunfield brdunfield commented Aug 12, 2024

This PR heavily refactors the state management of the data table tab. React contexts are now used to pass data between components. The DatasetTable component (which is the main dataset tab component) has now been wrapped in a state manager. The DatasetTable component is also now rendered recursively when full screen mode is enabled (the same component is re-used with some minor changes based on whether the component is rendered with the isModal prop or not).

Major test updates included migrating relevant tests to use the new contexts, as well as adding new tests for new components. If there are any suggestions on how to increase the performance of the "State is synchronized between regular and full screen mode" test - please let me know. The amount of acts and awaits / asyncs in this test make it very long running.

@brdunfield brdunfield changed the title Scaffold out new component structure and state context and add fullscreen dialog WCMS-21498: Add fullscreen mode to dataset table tab Aug 12, 2024
@brdunfield brdunfield marked this pull request as ready for review August 19, 2024 14:19
Copy link
Contributor

@starsinmypockets starsinmypockets left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested locally. LGTM!

@brdunfield brdunfield merged commit 375dda0 into main Aug 19, 2024
1 check passed
@brdunfield brdunfield deleted the WCMS-21498-fullscreen-mode branch August 19, 2024 20:35
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