FelipePSoares / EconoFlow

An easy system to help you control your personal or company budget.
https://econoflow.pt/
MIT License
3 stars 3 forks source link

[Frontend] User Account Deletion #267

Open FelipePSoares opened 4 days ago

FelipePSoares commented 4 days ago
  1. Danger Zone for Account Deletion:

    • On the User Settings page, add a danger zone styled in red to clearly differentiate it from other settings.
    • Position the danger zone below all existing configuration sections.
  2. Delete Account Button:

    • Include a Delete Account button inside the danger zone.
    • Clicking the button triggers a modal dialog.
  3. Confirmation Modal:

    • Display the following elements in the modal:

      • Warning Message: “This action is permanent and cannot be undone. Are you sure you want to delete your account?”

      • Administrator Warning (if applicable):

        • If the user is an administrator for any project, show:
        • "You are associated as an administrator with one or more projects. Please transfer the administration to another user before deleting your account. Otherwise, the project(s) will be deleted."
      • Confirmation Buttons:

        • A "Cancel" button to close the modal.
        • A "Confirm Deletion" button to call the backend endpoint.
  4. Error Handling and Feedback:

    • If the backend returns an error (e.g., unable to delete due to untransferred admin roles), display an appropriate message to the user.
saksham-malhotra-27 commented 13 hours ago

Hey @FelipePSoares is this issue still open? I find it interesting and would love to contribute !

FelipePSoares commented 12 hours ago

Hi @saksham-malhotra-27,

Yes, I really like if you started to contribute. You're welcome to help us.

saksham-malhotra-27 commented 12 hours ago

Sure! I'd be happy to contribute. I'll start with #220, and then move on to this one, or feel free to let me know if you'd prefer a specific order!

FelipePSoares commented 12 hours ago

Perfect, I agree with that, I need to finish the backend for this one also.