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

Switching from React -> AngularJS #3933

Closed
mantariksh opened this issue Jun 1, 2022 · 0 comments
Closed

Switching from React -> AngularJS #3933

mantariksh opened this issue Jun 1, 2022 · 0 comments
Assignees
Labels

Comments

@mantariksh
Copy link
Contributor

mantariksh commented Jun 1, 2022

While React is being rolled out, form admins and public respondents will be able to opt out of React and revert back to the AngularJS app. When they do so, we should collect feedback as to why they are switching.

Public respondent flow

  • Design here
  • Copy for info box tbc but we can start work first
  • When user clicks on link in infobox, feedback modal opens
  • When feedback is submitted, the following should happen:
  1. A FormSG form (PM me for the link) should be submitted programmatically. The form has three fields: URL (this can be grabbed programmatically at the point of submission), email (optional field, leave it blank for public users) and the feedback content itself.
  2. User's cookie should switch them to AngularJS so they see AngularJS when accessing forms in future. This cookie expiry should be set to 2 months so that they don't see React again until we are sure it is stable. We don't want the same user to encounter errors multiple times even after explicitly opting out.
  3. Page should refresh and revert to AngularJS
  • Note that we will remove this infobox once React rollout for public form respondents goes above 10%. This is because we expect the most issues to happen in the first 10%, and beyond that we are likely to get a lot of noise.

Admin flow

  • Design here
  • Again, exact copies tbc
  • Floating action button is visible in all admin pages
  • Clicking on button opens feedback modal. Upon submitting feedback, the same FormSG form should be submitted programmatically, together with the admin user's email which can be grabbed from session storage.
  • After feedback is submitted, user has the option to switch to AngularJS or continue using React. Again, if they switch to AngularJS, their cookie expiry should be set to 2 months so they don't see React until we are sure it is stable.
  • This button will be available for form admins until rollout hits 100%
@mantariksh mantariksh changed the title React bug report collection React-Angular version switching Jul 5, 2022
@mantariksh mantariksh changed the title React-Angular version switching Switching from React -> AngularJS + bug report Jul 5, 2022
@karrui karrui changed the title Switching from React -> AngularJS + bug report Switching from React -> AngularJS Jul 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants