In this PR one can now go to the profile page and delete their account.
Changes
Added a "delete account" button with a popup massage.
Also added a simple localStorage.setItem("id", res.data.userInfo.id) in the login page so it is possible to fetch the users id when calling the delete route.
Related Issues
Checklist
[x] Code has been tested locally and passes all relevant tests.
[x] Documentation has been updated to reflect the changes, if applicable.
[x] Code follows the established coding style and guidelines of the project.
[x] All new and existing tests related to the changes have passed.
[x] Any necessary dependencies or new packages have been properly documented.
[x] Pull request title and description are clear and descriptive.
[x] Reviewers have been assigned to the pull request.
[x] Any potential security implications have been considered and addressed.
[x] Performance impact of the changes has been evaluated, if relevant.
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
This should work with the dev and staging backend since the delete route is implemented in both.
However, there is some dependency related to the correctness of the login functionality.
Notes for Reviewers
Designed approved by Luiza.
Api route have been tested.
@PrometheusBork, yes, as per now I can see that the linting does not work on any PRs for the web/frontEnd. I will talk with the integration team and the other web teams and fix it for the next sprint
Description
In this PR one can now go to the profile page and delete their account.
Changes
Added a "delete account" button with a popup massage. Also added a simple localStorage.setItem("id", res.data.userInfo.id) in the login page so it is possible to fetch the users id when calling the delete route.
Related Issues
Checklist
Screenshots (if applicable)
If mobile/frontend pull request, what version of the backend is it stable, and running on?
This should work with the dev and staging backend since the delete route is implemented in both. However, there is some dependency related to the correctness of the login functionality.
Notes for Reviewers
Designed approved by Luiza. Api route have been tested.