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

Remove full reload of Preview (v4) #12534

Merged
merged 48 commits into from
Apr 5, 2024
Merged

Conversation

mlqn
Copy link
Contributor

@mlqn mlqn commented Mar 18, 2024

Description


  • Moved useSearchParamsState into shared
  • Removed layout from localStorage
  • Removed duplicated code by creating three new hooks: useSelectedFormLayoutName, useSelectedFormLayoutSetName and useSelectedTaskid

Related Issue(s)

Verification

  • Your code builds clean without any errors or warnings
  • Manual testing done (required)
  • Relevant automated test added (if you find this hard, leave it and we'll help out)

@mlqn mlqn linked an issue Mar 20, 2024 that may be closed by this pull request
@github-actions github-actions bot added the area/dashboard Area: Related to the dashboard application label Mar 20, 2024
@github-actions github-actions bot added the kind/dependencies Used for issues or pull requests that are dependency updates label Mar 21, 2024
@mlqn mlqn marked this pull request as draft March 25, 2024 21:20
@mlqn mlqn changed the title Remove full reload of Preview Remove full reload of Preview (v4) Mar 26, 2024
@mlqn mlqn marked this pull request as ready for review March 27, 2024 07:46
@mlqn mlqn linked an issue Apr 1, 2024 that may be closed by this pull request
@ghost ghost self-requested a review April 3, 2024 09:04
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

This is a lot of great work! 👏
A few comments added 😄

@mlqn mlqn requested a review from a user April 5, 2024 09:55
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

LGTM😄

@mlqn mlqn merged commit cd168f2 into main Apr 5, 2024
11 checks passed
@mlqn mlqn deleted the 12517-remove-full-reload-of-preview branch April 5, 2024 10:12
Jondyr pushed a commit that referenced this pull request Jun 10, 2024
* Invalidate queries of Preview instead of reloading it

* Revert v3 changes

* Refactor invalidate/refetch functions

* Move refetch to mutations

* Remove store & reducers

* Remove layout from storage

* New hook to handle selectedLayoutSetName

* Cleanup imports

* Refactoring

* Cleanup useSelectedFormLayoutSetName hook

* Remove warning

* Revert changes of useSelectedFormLayoutSetName

* Fix preview when updating layout name

* Remove redux

* Refactor preview path

* Fix tests

* Remove applicationMetadataSagas

* Fix unit tests

* Fix tests

* Fix tests

* Fix warnings

* Move useSelectedFromLayoutName in AppContext

* Cleanup

* Add tests for AppContext

* Add missing tests

* Add missing tests for AppContext

* Cleanup tests

* Fix Preview for v3

* Fix extra reloads

* Update landing page to open right layout

* Remove extra refetch

* Fix refetch/reload of preview when deleting a component

* Fix comments

* Remove removeSelectedFormLayoutSetName

* Fix unit tests

* Fix unit tests

* Changes after cr

* Add missing changes

* Add tests for TextResourceValueEditor
@mlqn mlqn mentioned this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dashboard Area: Related to the dashboard application area/ui-editor Area: Related to the designer tool for assembling app UI in Altinn Studio. kind/dependencies Used for issues or pull requests that are dependency updates solution/studio/designer Issues related to the Altinn Studio Designer solution.
Projects
None yet
1 participant