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

Account nickname is always defined #4684

Merged
merged 8 commits into from
Aug 12, 2022

Conversation

tommasini
Copy link
Contributor

@tommasini tommasini commented Jul 18, 2022

Description
The issue is that when the nickname of the account would be empty, it would be non editable.

Proposed Solution
The proposed solution it is, when the name it's empty we will assume that the name of the account will be the last name of it.
Example:
If it was "Account 2" after confirm the empty string on the account name, it will come back to be "Account 2"

Also its proposed, for the users that already have no nickname on their accounts we set the default name "Account" when the user opens the app.

Code Impact
Low

Test Cases
Case1:

  • Notice the account nickname
  • Long press the account nickname
  • Edit the name to an empty string
  • Will came back to the last account nickname

Screenshots/Recordings

WhatsApp.Video.2022-07-18.at.6.54.45.PM.mp4

If applicable, add screenshots and/or recordings to visualize the before and after of your change

Issue

Progresses #4308

Checklist

  • There is a related GitHub issue
  • Tests are included if applicable
  • Any added code is fully documented

@tommasini tommasini requested a review from a team as a code owner July 18, 2022 17:55
@github-actions
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@jakehaugen
Copy link
Contributor

Looks great to me!

@tommasini tommasini added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Jul 19, 2022
Copy link
Member

@gantunesr gantunesr left a comment

Choose a reason for hiding this comment

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

LGTM. Good work, just a small comment

app/components/UI/AccountOverview/index.js Outdated Show resolved Hide resolved
@tommasini tommasini changed the title Account nickname will never be empty Account nickname is always defined Jul 21, 2022
@tommasini tommasini added needs-qa Any New Features that needs a full manual QA prior to being added to a release. Mobile QA board and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Aug 11, 2022
@cortisiko cortisiko added QA in Progress QA has started on the feature. and removed needs-qa Any New Features that needs a full manual QA prior to being added to a release. labels Aug 11, 2022
Copy link
Member

@cortisiko cortisiko left a comment

Choose a reason for hiding this comment

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

@tommasini I found a fun edge case:

If I were to:

  • long press to edit my account nickname
  • remove the current name
  • tap on the space bar to set ' ' as my account nickname
  • upon doing so, I still experience the bug where I am unable to edit my account nickname after setting it to ' '

see recording

@cortisiko cortisiko added QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed and removed QA in Progress QA has started on the feature. labels Aug 11, 2022
@tommasini
Copy link
Contributor Author

@cortisiko Really well catched, I was not considering the blank spaces!! Thank you Curtis! Awesome!!!

@gantunesr Could you give me another review please?

@tommasini tommasini added the needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) label Aug 11, 2022
@tommasini tommasini added needs-qa Any New Features that needs a full manual QA prior to being added to a release. and removed needs-dev-review PR needs reviews from other engineers (in order to receive required approvals) labels Aug 12, 2022
@cortisiko cortisiko removed the needs-qa Any New Features that needs a full manual QA prior to being added to a release. label Aug 12, 2022
@cortisiko cortisiko added QA Passed A successful QA run through has been done and removed QA'd - Issues Found QA has been complete, however issues have been discovered that need to be addressed labels Aug 12, 2022
Copy link
Member

@cortisiko cortisiko 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 @tommasini

@cortisiko cortisiko merged commit bf9b432 into main Aug 12, 2022
@cortisiko cortisiko deleted the fix/4308-account-nickname-never-empty branch August 12, 2022 15:14
@github-actions github-actions bot locked and limited conversation to collaborators Aug 12, 2022
@cortisiko cortisiko added the release-5.7.0 PRs for release 5.7.0 label Aug 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
QA Passed A successful QA run through has been done release-5.7.0 PRs for release 5.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants