App: [Awaiting Payment 23rd April] [$250] Account Settings - When legal name change there is not reflect in other device

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: v1.4.59-0 Reproducible in staging?: Y Reproducible in production?: Y Email or phone of affected tester (no customers): alexzamora1487+01042024@gmail.com Logs: https://stackoverflow.com/c/expensify/questions/4856 Issue reported by: Applause-Internal team

Action Performed:

  1. On deviceA go to settings > profile > personal details > legal first name
  2. Enter a name that’s 100+ characters long i.e gfkfkfkfkfkfkkfkfkfkfkfkfkfkfkfkffkkfkgkgkgkkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkgkkgkgkgkgkgkkggkk
  3. Observe the error that the 100 character field length is exceeded
  4. Now enter a name that’s 10 characters long i.e gkgkgkgkgk
  5. Switch to deviceB, observe that the legal first name updates
  6. On deviceA, enter a name that’s 41 characters long i.e gfkfkfkfkfkfkkfkfkfkfkfkfkfkfkfkffkkfkfka
  7. Switch to device B, observe that the legal first name doesn’t update
  8. On deviceA, enter a name that’s 40 characters long. i.e gfkfkfkfkfkfkkfkfkfkfkfkfkfkfkfkffkkfkfk
  9. On deviceB, observe that the legal first name does update.

Expected Result:

The frontend and backend character limit for the legal name field should be the same. Let’s update the character limit on the front-end to 40 to match the backend.

Actual Result:

The frontend character field limit is 100, but the backend character limit is 40 characters. As a result, there’s no error being displayed on the front-end when someone enters a value of 40+ characters and it doesn’t get saved either.

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

https://github.com/Expensify/App/assets/115492554/a0e95ad1-fe85-418f-b2d9-fb4a12674d13

Bug6434552_1711989970476!bug_-_other_devices1

Bug6434552_1711989970482!bug_-_other_devices

View all open jobs on GitHub

About this issue

  • Original URL
  • State: closed
  • Created 3 months ago
  • Comments: 43 (31 by maintainers)

Most upvoted comments

I was able to confirm in the marqeta docs that the last name character limit is 40 as well - docs. image

So yeah front end should be updated to match this.

PR ready for review . c.c. @parasharrajat

Sounds good! When I’d investigated a lot of the field length limits previously, we had just picked a number we thought made sense for a lot of them. But def curious to here if there was a specific reason for the 40 for this one. If there was, totally fine with me to stick with that too.

even though your proposal is correct but new contributors are only allowed to work on one job at a time. I see you have a few active issues/PR assigned.

only one of my PR’s is active, 14 have been merged 😃, so i think it would be unfair not to assign @parasharrajat 😃

I see you have a few active issues/PR assigned.

Those issues are due payment, PR’s were merged and deployed to production 😃

Can you please reconsider the assignment, thanks

c.c. @chiragsalian

I think the right course of action here is to update the character limit to 40 for this field to match the backend. CC: @joekaufmanexpensify

@trjExpensify is there a reason we wouldn’t update the BE to match the FE limit of 100? There’s no hard and fast rule here, but 100 for a field like this is the standard we had landed on. So unless there’s some specific benefit to 40, I feel like it could make sense to standardize on 100 personally.

I am confirming the requirements before reviewing the proposals.