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

Added notifications and a clear button #434

Merged
merged 4 commits into from
Mar 28, 2024
Merged

Added notifications and a clear button #434

merged 4 commits into from
Mar 28, 2024

Conversation

epadams
Copy link
Contributor

@epadams epadams commented Mar 24, 2024

  • Added notifications for success and errors instead of alert
  • Added a clear button to empty the input of the bio field, was having issues adding an extra adornment to <DatePicker /> so I didn't add one there

Noticed an issue when clearing bio (even manually), it won't let me set a bio to be empty after it is set. If anyone can reproduce that this is the same on their machine, let me know. Fixed

@epadams epadams linked an issue Mar 24, 2024 that may be closed by this pull request
@epadams epadams self-assigned this Mar 25, 2024
@epadams epadams mentioned this pull request Mar 25, 2024
@evan-scales
Copy link
Collaborator

looks good

it won't let me set a bio to be empty after it is set

As for this, it's because we pass null to the api if the bio is empty. Api only updates the bio if its not null. I think its okay to pass the empty string to the api now
https://github.com/SCCapstone/PalmettoProgrammers/blob/main/FU.SPA/src/components/pages/ProfileSettings.jsx#L54

Copy link
Collaborator

@evan-scales evan-scales left a comment

Choose a reason for hiding this comment

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

looks good

@evan-scales evan-scales marked this pull request as draft March 28, 2024 18:42
@evan-scales evan-scales marked this pull request as ready for review March 28, 2024 18:42
@evan-scales evan-scales merged commit 4853a39 into main Mar 28, 2024
2 checks passed
@evan-scales evan-scales deleted the 336 branch March 28, 2024 18:45
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.

Profile settings better confirmation
2 participants