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

WAITP-1466: Account Settings – Personal Details #5169

Merged
merged 303 commits into from
Feb 19, 2024

Conversation

jaskfla
Copy link
Contributor

@jaskfla jaskfla commented Nov 13, 2023

Issue WAITP-1466: Account Settings – Personal Details

Changes

New feature. Implemented form in DataTrak → Account Settings → Personal Details for editing the account details of the currently logged in user.

The fields are repopulated with the current values. Email associated with the account is not changeable by design (see Figma document).

See also #5225 and #5243

Shout out to @tcaiger for his tremendous help on this one 🙏

Known issues


Screenshots

Large size class

Screenshot 2023-11-20T164016

Small and medium size classes

tcaiger and others added 30 commits October 16, 2023 10:43
This reverts commit 7b612fb.
* tile component

* Show modal when exiting survey via home button

* Remove unused imports

* Stop menu re-rendering on change of survey screen

* Update button disabled state

* Fix build errors

* Fix tests

* Close side menu on screen change on mobile

* clean up code from another branch

* Update LandingPage.tsx

---------

Co-authored-by: Tom Caiger <caigertom@gmail.com>
* WAITP-1377 Forward signup route to web config server

* WAITP-1377 Fixup lint
* WIP visibility criteria

* Working survey visibility criteria

* Generate types

* Add tests

* Redirect user if survey screen is not visible

* Reset invisible answers

* Handle when value is not an array

* Remove only from test

* Fix tests

* Conditional questions working

* Get question fully updating

* Generate types

* Add tests and update types

* Update survey.json

* Fix types and build

* Fix tests

* Initial logic and separate out context

* Working arithmetic question

* Fix tests and build

* Generate types

* Fix types

* Add tests

* WIP

* WIP

* WIP

* WIP

* Working qr code

* Fix types

* Update test

* Fix tests

* PR fixes
* WIP

* Use built in functionality

* Add comment

* Fix build errors
* Update LandingPage.tsx

* update landing page

* data fetching layer

* fix console errors

* re organise landing page

* tooltips

* style tweaks

* update landing page layout

* horizontal scroll

* page limit
* Update LandingPage.tsx

* update landing page

* data fetching layer

* fix console errors

* re organise landing page

* tooltips

* style tweaks

* update landing page layout

* horizontal scroll

* page limit

* project select page

* menu ux

* Update useSubmitSurvey.ts

* gps question

* Update index.html

* Update ProjectsRoute.ts

* theming

* Update mui.d.ts

* Update useSubmitSurvey.test.ts
* no-issue: Add @tupaia/server-utils package (#5121)

* RN-1060: (task) Moved sendEmail to @tupaia/server-utils (#5126)

* RN-1060: (task) Added dashboards/:project/:entity/:dashboard/export route to tupaia-web (#5125)

* WAITP-1354: Leaderboard

* Update copyright

* Update internal email

* Update email filter

* Fix response type

* Update packages/datatrak-web/src/features/Leaderboard/LeaderboardTable.tsx

Co-authored-by: Tom Caiger <caigertom@gmail.com>

* Update background variable

* Update branch name validation script (#5136)

* Update to use new leaderboard model

* Revert "Merge branch 'dev' into waitp-1354-leaderboard"

This reverts commit c2acdbe, reversing
changes made to 747f182.

* Fix types

* Update packages/database/src/modelClasses/SurveyResponse.js

Co-authored-by: Rohan Port <59544282+rohan-bes@users.noreply.github.com>

* PR fixes

* Fix error

---------

Co-authored-by: Rohan Port <59544282+rohan-bes@users.noreply.github.com>
Co-authored-by: Tom Caiger <caigertom@gmail.com>
Co-authored-by: Ethan McQuarrie <69437175+EMcQ-BES@users.noreply.github.com>
* Update LandingPage.tsx

* update landing page

* data fetching layer

* fix console errors

* re organise landing page

* tooltips

* style tweaks

* update landing page layout

* horizontal scroll

* page limit

* Frontend layout

* Working request

* Refetch recent surveys on submit

* Fix recent survey request and styling

* Use grid and update heading element

* Remove unnecessary css

* PR fixes

---------

Co-authored-by: Tom Caiger <caigertom@gmail.com>
* WIP

* Account deletion

* Update component for section

* Update modals

* Remove forced open state

* Fix types

* fix build error

* Update packages/datatrak-web/src/api/mutations/useEditUser.ts

Co-authored-by: Tom Caiger <caigertom@gmail.com>

* Update packages/datatrak-web/src/api/mutations/useEditUser.ts

Co-authored-by: Tom Caiger <caigertom@gmail.com>

* Change format

* fix bad merge

* return zeros for rewards

---------

Co-authored-by: Tom Caiger <caigertom@gmail.com>
* WIP

* Use built in functionality

* Add comment

* Fix build errors

* Working file upload

* Fix build

* Remove unused vars

* Update format of file upload answers

* Update schemas.ts

* Update processSurveyResponse.test.ts

* Update upsertAnswers.js

---------

Co-authored-by: Tom Caiger <caigertom@gmail.com>
* fix rewards types

* update primary entity question name
@jaskfla jaskfla merged commit 7a7f619 into dev Feb 19, 2024
41 checks passed
@jaskfla jaskfla deleted the waitp-1466-settings-personal-details branch February 19, 2024 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants