fix(app-admin): allow users to adjust the SplitView columns width across all apps #4179
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
With this PR, we are updating the
SplitView
,LeftPanel
andRightPanel
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 inlocalStorage
.The function
useLayoutId
is included in all ACO-powered applications to create a consistent local storage key that tracks column width. The function receives theapplicationId
and generates thelayoutId
based on the currenttenantId
andlocalCode
.CleanShot.2024-06-21.at.12.23.30.mp4
How Has This Been Tested?
Manually + Cypress
Documentation
@swapnilmmane, perhaps it would be beneficial for us to add an article to the user guide.