nishiki-tech / nishiki-frontend

Nishiki is an app for tracking and sharing food inventories within groups for better pantry management.
https://nishiki.tech
MIT License
16 stars 5 forks source link

Feat: Implement "Delete account" UI #344

Closed kanta1207 closed 3 months ago

kanta1207 commented 4 months ago

Overview

Implement the UI of "Delete account" feature in Profile page.

Changes

Screen Captures

LogoutDialog and DeleteAccountDialog in Profile page

https://github.com/nishiki-tech/nishiki-frontend/assets/99339182/523d6e7a-7907-470e-98c9-12750597687b

16px align offset of DropdownMenu in GroupSinglePage header

Screenshot 2024-03-09 at 7 48 25

Assignee Checklist:

Reviewer Checklist:

kanta1207 commented 3 months ago

@nick-y-ito Thank you for the reviews! I fixed the points you mentioned, and also left a comment on the points I wasn't so sure about.

About the refactoring, I did the renaming of Logout to SignOut. (I used camel case because signout cause an spelling caution in the editor.) I didn't do much on the directory structure, so enter or space key doesn't work in the delete or sign out dialog, although it might not be necessary for these two tho.

Please take a look anytime when you have a moment!

kanta1207 commented 3 months ago

@nick-y-ito Thank you for your suggestions! I added comments and refactor the variable/variant names following your suggestions, please have a look when you have a moment 🙏

kanta1207 commented 3 months ago

@nick-y-ito

What I meant here was to name them as danger and danger-outline instead of error and error-outline.

Sorry, it's just an excuse but I thought I left a comment like "changing all of error variant to danger would be too big, so I chose to align it error & error-outline for now", but it was pending and couldn't deliver to you. Just wanted to let you know I didn't mean to ignore your suggestion or anything 🙏 And, at the end I aligned all of them into danger & danger-outline. I just changed my mind 😅 .

Also, sorry for missing the build error! I just fixed them. Please take a look when you have a time again, kindly 🙏

kanta1207 commented 3 months ago

@nick-y-ito I renamed the log out to sign out! Please have a look when you have a moment, again 🙏

kanta1207 commented 3 months ago

Thank you for all of your reviews! I'm gonna merge this PR 👍