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

Manage layout persistence via interface #40

Conversation

pling-scottlogic
Copy link

Description

Refactors the layout persistence mechanism to work through an interface. We are currently saving layouts to the browser's local storage, but these changes will allow us to easily introduce other methods of persistence, such as a remote database.

Change List

  • Add LayoutPersistenceManager interface
  • Implement new interface with LocalLayoutPersistenceManager
  • Redirect useLayoutManagement hook to make use of new interface
  • Remove props from Dialog (in NewTheme) and LeftNav (fixes from previous rebase)
  • Pass persistence manager in from NewTheme

Notes

  • We should only need to load metadata when browsing layouts, but this change will probably make more sense after doing the JSON refactor in Refactor layout JSON structure #26.
  • Target branch is currently set to the one created recently to merge into the Finos fork. We may need to sync the layout-management-feature and change the target branch here.

Closes #20

vferraro-scottlogic

This comment was marked as resolved.

@pling-scottlogic
Copy link
Author

Replaced by #55, with appropriate target branch.

@cfisher-scottlogic cfisher-scottlogic deleted the feature/layout-management/VUU20-layoutPersistence branch October 16, 2023 11:22
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.

Create service for persisting layouts
3 participants