webiny / webiny-js

Open-source serverless enterprise CMS. Includes a headless CMS, page builder, form builder, and file manager. Easy to customize and expand. Deploys to AWS.
https://www.webiny.com
Other
7.22k stars 589 forks source link

fix(app-admin): allow users to adjust the SplitView columns width across all apps #4178

Closed leopuleo closed 1 week ago

leopuleo commented 2 weeks ago

Changes

With this PR, we are updating the SplitView, LeftPanel and RightPanel to allow users to adjust the columns' width.

There is no need to update the existing <SplitView>.

We include the autoSaveId prop for the ACO-powered applications to store the latest column width in localStorage.

The function generateAutoSaveId is exported from @webiny/app-admin to create a consistent localStorage key that tracks column width. The function receives the following params:

https://github.com/webiny/webiny-js/assets/2866531/f9352bed-9968-4f6a-a71e-58a10d658dc7

How Has This Been Tested?

Manually + Cypress

Documentation

@swapnilmmane, perhaps it would be beneficial for us to add an article to the user guide.

leopuleo commented 2 weeks ago

/cypress

github-actions[bot] commented 2 weeks ago

Cypress E2E tests have been initiated (for more information, click here). :sparkles: