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 #4179

Closed leopuleo closed 1 week ago

leopuleo commented 1 week 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 layoutId prop for the ACO-powered applications to store the latest column width in localStorage.

The function useLayoutId is included in all ACO-powered applications to create a consistent local storage key that tracks column width. The function receives the applicationId and generates the layoutId based on the current tenantId and localCode.

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.