accounts-frontend/packages/app/components/auth
2020-05-20 19:59:43 +03:00
..
acceptRules Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
activation Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
appInfo Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace 2019-12-07 21:06:42 +02:00
authError Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
chooseAccount Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
finish Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
forgotPassword Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
login Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
mfa Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace 2019-12-07 21:06:42 +02:00
password Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
permissions Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
recoverPassword Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
register Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
resendActivation Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
actions.test.ts Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
actions.ts Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
auth.scss Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace 2019-12-07 21:06:42 +02:00
AuthTitle.tsx Some more minor fixes 2019-12-30 10:57:52 +02:00
BaseAuthBody.tsx Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
Context.tsx Migrate auth components to new Context api 2019-12-13 09:39:05 +02:00
factory.tsx Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
helpLinks.scss Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace 2019-12-07 21:06:42 +02:00
index.ts Fix babel warnings about ts types re-export 2019-12-25 12:54:05 +02:00
PanelTransition.tsx Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
README.md Create app namespace for all absolute requires of app modules. Move all packages under packages yarn workspace 2019-12-07 21:06:42 +02:00
reducer.test.ts Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
reducer.ts Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00
RejectionLink.tsx Implemented strict mode for the project (broken tests, hundreds of @ts-ignore and new errors are included) [skip ci] 2020-05-20 19:59:43 +03:00

How to add new auth panel

To add new panel you need to:

  • create panel component at components/auth/[panelId]
  • add new context in components/auth/PanelTransition
  • connect component to router in pages/auth/AuthPage
  • add new state to services/authFlow and coresponding test to tests/services/authFlow
  • connect state to authFlow. Update services/authFlow/AuthFlow.test and services/authFlow/AuthFlow.functional.test (the last one for some complex flow)
  • add new actions to components/auth/actions and api endpoints to services/api
  • whatever else you need

Commit id with example implementation: f4d315c