-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
47 changed files
with
165 additions
and
535 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
20 changes: 6 additions & 14 deletions
20
web-client/src/presenter/sequences/disengageAppMaintenanceSequence.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,15 @@ | ||
import { clearModalSequence } from './clearModalSequence'; | ||
import { getUserAction } from '../actions/getUserAction'; | ||
import { isLoggedInAction } from '../actions/isLoggedInAction'; | ||
import { navigateToPathAction } from '../actions/navigateToPathAction'; | ||
import { navigateToPathSequence } from './navigateToPathSequence'; | ||
import { setMaintenanceModeAction } from '../actions/setMaintenanceModeAction'; | ||
import { setUserAction } from '../actions/setUserAction'; | ||
import { setUserPermissionsAction } from '../actions/setUserPermissionsAction'; | ||
|
||
export const disengageAppMaintenanceSequence = [ | ||
isLoggedInAction, | ||
{ | ||
isLoggedIn: [ | ||
getUserAction, | ||
setUserAction, | ||
setUserPermissionsAction, | ||
clearModalSequence, | ||
setMaintenanceModeAction, | ||
navigateToPathSequence, | ||
], | ||
unauthorized: [navigateToPathAction], | ||
}, | ||
getUserAction, | ||
setUserAction, | ||
setUserPermissionsAction, | ||
clearModalSequence, | ||
setMaintenanceModeAction, | ||
navigateToPathSequence, | ||
]; |
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
26 changes: 10 additions & 16 deletions
26
web-client/src/presenter/sequences/gotoAddDeficiencyStatisticsSequence.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,21 @@ | ||
import { clearConfirmationTextAction } from '../actions/clearConfirmationTextAction'; | ||
import { clearFormAction } from '../actions/clearFormAction'; | ||
import { getCaseAction } from '../actions/getCaseAction'; | ||
import { isLoggedInAction } from '../actions/isLoggedInAction'; | ||
import { navigateToLoginSequence } from '@web-client/presenter/sequences/Login/navigateToLoginSequence'; | ||
import { setCaseAction } from '../actions/setCaseAction'; | ||
import { setDefaultFormForAddDeficiencyStatisticsAction } from '../actions/setDefaultFormForAddDeficiencyStatisticsAction'; | ||
import { setupCurrentPageAction } from '../actions/setupCurrentPageAction'; | ||
import { startWebSocketConnectionSequenceDecorator } from '../utilities/startWebSocketConnectionSequenceDecorator'; | ||
import { stopShowValidationAction } from '../actions/stopShowValidationAction'; | ||
|
||
export const gotoAddDeficiencyStatisticsSequence = [ | ||
isLoggedInAction, | ||
{ | ||
isLoggedIn: startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
clearConfirmationTextAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setDefaultFormForAddDeficiencyStatisticsAction, | ||
setupCurrentPageAction('AddDeficiencyStatistics'), | ||
]), | ||
unauthorized: [navigateToLoginSequence], | ||
}, | ||
startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
clearConfirmationTextAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setDefaultFormForAddDeficiencyStatisticsAction, | ||
setupCurrentPageAction('AddDeficiencyStatistics'), | ||
]), | ||
]; |
22 changes: 8 additions & 14 deletions
22
web-client/src/presenter/sequences/gotoAddOtherStatisticsSequence.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import { clearFormAction } from '../actions/clearFormAction'; | ||
import { getCaseAction } from '../actions/getCaseAction'; | ||
import { isLoggedInAction } from '../actions/isLoggedInAction'; | ||
import { navigateToLoginSequence } from '@web-client/presenter/sequences/Login/navigateToLoginSequence'; | ||
import { setCaseAction } from '../actions/setCaseAction'; | ||
import { setupCurrentPageAction } from '../actions/setupCurrentPageAction'; | ||
import { startWebSocketConnectionSequenceDecorator } from '../utilities/startWebSocketConnectionSequenceDecorator'; | ||
import { stopShowValidationAction } from '../actions/stopShowValidationAction'; | ||
|
||
export const gotoAddOtherStatisticsSequence = [ | ||
isLoggedInAction, | ||
{ | ||
isLoggedIn: startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setupCurrentPageAction('AddOtherStatistics'), | ||
]), | ||
unauthorized: [navigateToLoginSequence], | ||
}, | ||
startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setupCurrentPageAction('AddOtherStatistics'), | ||
]), | ||
]; |
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
24 changes: 9 additions & 15 deletions
24
web-client/src/presenter/sequences/gotoAddPetitionerToCaseSequence.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,19 @@ | ||
import { clearFormAction } from '../actions/clearFormAction'; | ||
import { getCaseAction } from '../actions/getCaseAction'; | ||
import { isLoggedInAction } from '../actions/isLoggedInAction'; | ||
import { navigateToLoginSequence } from '@web-client/presenter/sequences/Login/navigateToLoginSequence'; | ||
import { setCaseAction } from '../actions/setCaseAction'; | ||
import { setDefaultAddPetitionerToCaseFormAction } from '../actions/setDefaultAddPetitionerToCaseFormAction'; | ||
import { setupCurrentPageAction } from '../actions/setupCurrentPageAction'; | ||
import { startWebSocketConnectionSequenceDecorator } from '../utilities/startWebSocketConnectionSequenceDecorator'; | ||
import { stopShowValidationAction } from '../actions/stopShowValidationAction'; | ||
|
||
export const gotoAddPetitionerToCaseSequence = [ | ||
isLoggedInAction, | ||
{ | ||
isLoggedIn: startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setDefaultAddPetitionerToCaseFormAction, | ||
setupCurrentPageAction('AddPetitionerToCase'), | ||
]), | ||
unauthorized: [navigateToLoginSequence], | ||
}, | ||
startWebSocketConnectionSequenceDecorator([ | ||
setupCurrentPageAction('Interstitial'), | ||
stopShowValidationAction, | ||
clearFormAction, | ||
getCaseAction, | ||
setCaseAction, | ||
setDefaultAddPetitionerToCaseFormAction, | ||
setupCurrentPageAction('AddPetitionerToCase'), | ||
]), | ||
]; |
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.