-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor/1508 rewrite page navigation (#1682)
* refactor: Add routes for pageLayouts. Show pages of a form with said routes. Navigation updated to use routes * refactor: Add taskId to url navigation * Add navigateToCurrentProcess button * refactor: get pageorder by using hook instead of redux * refactor: fix showing of confirmation, receipt, and feedback steps. Fix small bug with progress component * refactor: fix returnToView. Add state to context * Add returnToView and scrollPosition to PageNavigationContext * Add support for navigating users to the last visited page stored in local storage * Add UiConfigContext. Fix more tests after refactoring navigation * refactor: e2e-tests after refactoring to use router based page navigation * fix: bug with layouts becoming hidden with any expression * refactor: layoutsettings to custom context * refactor: adapt code after merging with new app-flow * refactor: add page routing for stateless apps * fix: remove keepScroll functionality until validation is in place * fix: issue with back to summary page being shown after navigating to next step * fix: bug with add items in sub group repeating groups * fix: bug with datamodel not being accessible during confirmation/receipt steps * fix: summary tests * fix: temporarily skip validation cypress tests while waiting for 1506 * fix: remove currentView from devtools * fix: remove use of redux based currentView in repGroupDeleteRow * fix: rewrite PresentationComponent to have prop stating whether to render navbar or not * fix: unit tests after refactor * fix: bug with mergeAndSort function * fix: issue with validation currentView in GenericComponent * refactor: remove unused sagas related to page navigation * fix: bug with navigating away from instantiation-selection * fix: bug with RepeatingGroupsLikertContainer tests * fix: issue with receipt redirecting * fix: redirect to page and processEnd. Use currentPage from url in ExprContext * Update process mutation data when navigating to next step * fix: bug with overwriting queryData in InstanceContext * fix: unit test for NavigationBar component * refactor: types on ProcessContext * refactor: use lang component for generic help page when navigating * refactor: remove uiconfig options that are available in UiConfigContext from redux * fix: redirect to start for stateless-apps on invalid pages * fix: add process task error messages for all types of process steps * fix: remove unnecessary routes in stateless apps * fix: use enums to represent fixed routes * fix: issue with useLayoutQuery * refactor: move LayoutProvider, UiConfigProvider and LayoutSettingsProvider to renderWithInstanceAndLayout * docs: add comment about useTaskType * refactor: add test for bug with validation and new page navigation * fix: remove unnecessary redirect to confirmation page from receipt page * refactor: remove duplicate import --------- Co-authored-by: Ole Martin Handeland <git@olemartin.org>
- Loading branch information
Showing
96 changed files
with
1,471 additions
and
1,368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.