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

fix: added error checks on account routes #231

Merged
merged 2 commits into from
Oct 31, 2023

Conversation

m4-droid
Copy link
Contributor

@m4-droid m4-droid commented Oct 29, 2023

fixes #211
: added loader on every route like /account
: added success notification on some routes
: added specific notification message upon deletion success
: added extra checks for routes
: added more descriptive variable names
: added redirect to /signout upon account deletion
: added general timeout of 2.5s on success notification
: other fixes
-- : error: isLoggedIn: true was dispatched due to delay in clearing cookie & calling getCookie() in useEffect() of Header
-- : fix: added await for async call of signOut() in useEffect() of SignOut component

@m4-droid m4-droid requested a review from bjarneo as a code owner October 29, 2023 16:36
@m4-droid
Copy link
Contributor Author

I am not sure error mentioned in other fixes is general or specific to me (used chrome browser).

@m4-droid
Copy link
Contributor Author

I am working on this code duplication issue in SonarCloud Quality Gate test.
If anything else is concerning in code or any suggestion related to reducing code duplication or adding something in code, let me know.

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 14 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@bjarneo
Copy link
Member

bjarneo commented Oct 30, 2023

Thank you. I will look into this PR as soon as I have some spare time :)

@m4-droid
Copy link
Contributor Author

It would be great if you could review this before Hacktoberfest ends.

Copy link
Member

@bjarneo bjarneo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Really great PR! Thank you for this cleanup :)

We have to remove the prevalidation for the :id/burn route as everyone should be able to burn their secret. I will just commit that directly to the main branch.

@bjarneo bjarneo merged commit c8630da into HemmeligOrg:main Oct 31, 2023
@m4-droid m4-droid deleted the account-no-login branch October 31, 2023 09:46
bjarneo pushed a commit that referenced this pull request Jun 8, 2024
* fix: added error checks on account routes

* added ErrorBox and SuccessBox
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Blank screens for "Secrets" and "Users", even on hemmelig.app
2 participants