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(avatarChooser): Handle submit without selecting file #38190 #38191

Merged
merged 5 commits into from Sep 27, 2022
Merged

fix(avatarChooser): Handle submit without selecting file #38190 #38191

merged 5 commits into from Sep 27, 2022

Conversation

growupanand
Copy link
Contributor

Gracefully handle when a user has not selected any file and tries to save Avatar.
While it is handled in backend but also there is need to display error message at frontend.

Fixes #38190

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

Gracefully handle when a user has not selected any file and tries to save Avatar.
While it is handled in backend but also there is need to display error message at frontend.

Fixes #38190
@growupanand growupanand requested a review from a team as a code owner August 28, 2022 17:22
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Aug 28, 2022
@evanpurkhiser
Copy link
Member

How about instead we make it so the button is just disabled if you haven't selected anything?

#38190

Gracefully handle when a user has not selected any file and save Avatar button will be disable.
Once user select any file save Avatar button will be enabled.

Fixes #38190
@growupanand
Copy link
Contributor Author

How about instead we make it so the button is just disabled if you haven't selected anything?

Now save avatar button will disabled if user has not selected any file.

Gracefully handle when a user has not selected any file and tries to save Avatar.
While it is handled in backend but also there is need to disable save button at frontend.

8038494#r968967137

Fixes #38190
@evanpurkhiser
Copy link
Member

/gcbrun

@evanpurkhiser
Copy link
Member

This looks good, let me make sure all the test are passing and I think we're good to go!

@evanpurkhiser evanpurkhiser added the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Sep 13, 2022
@github-actions github-actions bot removed the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Sep 14, 2022
@growupanand
Copy link
Contributor Author

@evanpurkhiser looks like merging is blocked, can you please suggest if something pending from my side ?

@evanpurkhiser evanpurkhiser added the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Sep 20, 2022
@evanpurkhiser
Copy link
Member

/gcbrun

@growupanand
Copy link
Contributor Author

@evanpurkhiser , can you please merge if everything is ok.

@evanpurkhiser
Copy link
Member

Sorry again for the delay! Will get this merged today!

@evanpurkhiser evanpurkhiser self-assigned this Sep 27, 2022
@github-actions github-actions bot removed the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Sep 27, 2022
@evanpurkhiser evanpurkhiser added the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Sep 27, 2022
@evanpurkhiser
Copy link
Member

/gcbrun

@evanpurkhiser evanpurkhiser merged commit fe53e46 into getsentry:master Sep 27, 2022
ryan953 pushed a commit that referenced this pull request Oct 3, 2022
Co-authored-by: Utkarsh Anand <utkarsh.anand@greendeck.co>
Co-authored-by: Evan Purkhiser <evanpurkhiser@gmail.com>
@github-actions github-actions bot locked and limited conversation to collaborators Oct 13, 2022
@chadwhitacre chadwhitacre removed the Trigger: getsentry tests once code is reviewed: apply label to PR to trigger getsentry tests label Mar 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

In settings > avatarChooser , no error message display at frontend for file not selected while saving avatar
3 participants