Skip to content

Commit

Permalink
ATO-387: Remove share-info
Browse files Browse the repository at this point in the history
Not needed as was reliant on consentRequired
  • Loading branch information
hannah-leong committed Mar 11, 2024
1 parent a93082e commit 2189c6d
Show file tree
Hide file tree
Showing 12 changed files with 0 additions and 440 deletions.
1 change: 0 additions & 1 deletion src/app.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const PATH_NAMES = {
CREATE_ACCOUNT_ENTER_PHONE_NUMBER: "/enter-phone-number",
CREATE_ACCOUNT_SUCCESSFUL: "/account-created",
CHECK_YOUR_PHONE: "/check-your-phone",
SHARE_INFO: "/share-info",
UPDATED_TERMS_AND_CONDITIONS: "/updated-terms-and-conditions",
ENTER_MFA: "/enter-code",
SECURITY_CODE_INVALID: "/security-code-invalid",
Expand Down
2 changes: 0 additions & 2 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ import {
getSessionIdMiddleware,
initialiseSessionMiddleware,
} from "./middleware/session-middleware";
import { shareInfoRouter } from "./components/share-info/share-info-routes";
import { updatedTermsConditionsRouter } from "./components/updated-terms-conditions/updated-terms-conditions-routes";
import { signInOrCreateRouter } from "./components/sign-in-or-create/sign-in-or-create-routes";
import { accountNotFoundRouter } from "./components/account-not-found/account-not-found-routes";
Expand Down Expand Up @@ -123,7 +122,6 @@ function registerRoutes(app: express.Application) {
app.use(resendMfaCodeAccountCreationRouter);
app.use(resendEmailCodeRouter);
app.use(signedOutRouter);
app.use(shareInfoRouter);
app.use(updatedTermsConditionsRouter);
app.use(resetPasswordRouter);
if (support2FABeforePasswordReset()) {
Expand Down
1 change: 0 additions & 1 deletion src/assets/javascript/cookies.js
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ var cookies = function (trackingId, analyticsCookieDomain) {
"sign in",
"middle"
),
"/share-info": generateSessionJourney("sign in", "middle"),
"/reset-password-check-email": generateSessionJourney(
"password reset",
"start"
Expand Down
5 changes: 0 additions & 5 deletions src/components/common/state-machine/state-machine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,11 +450,6 @@ const authStateMachine = createMachine(
],
},
},
[PATH_NAMES.SHARE_INFO]: {
on: {
[USER_JOURNEY_EVENTS.CONSENT_ACCEPTED]: [PATH_NAMES.AUTH_CODE],
},
},
[PATH_NAMES.RESET_PASSWORD_REQUEST]: {
on: {
[USER_JOURNEY_EVENTS.PASSWORD_RESET_REQUESTED]: [
Expand Down
64 changes: 0 additions & 64 deletions src/components/share-info/index.njk

This file was deleted.

69 changes: 0 additions & 69 deletions src/components/share-info/share-info-controller.ts

This file was deleted.

27 changes: 0 additions & 27 deletions src/components/share-info/share-info-routes.ts

This file was deleted.

16 changes: 0 additions & 16 deletions src/components/share-info/share-info-validation.ts

This file was deleted.

89 changes: 0 additions & 89 deletions src/components/share-info/tests/share-info-controller.test.ts

This file was deleted.

Loading

0 comments on commit 2189c6d

Please sign in to comment.