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

Web - No limit message when add Message on Close account page #37642

Closed
2 of 6 tasks
lanitochka17 opened this issue Mar 1, 2024 · 12 comments
Closed
2 of 6 tasks

Web - No limit message when add Message on Close account page #37642

lanitochka17 opened this issue Mar 1, 2024 · 12 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 1, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: 1.4.46-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers): [email protected]
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:

Action Performed:

  1. Go to Profile> Security> Close account
  2. Add email address
  3. In message field add very long text

Expected Result:

There should be message that added text is very long

Actual Result:

No message about text limitation for Message field

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

Add any screenshot/video evidence

Bug6398767_1709324738374.Recording__2442.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 1, 2024
Copy link

melvin-bot bot commented Mar 1, 2024

Triggered auto assignment to @kevinksullivan (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

@kevinksullivan FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@neonbhai
Copy link
Contributor

neonbhai commented Mar 1, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

No limit message when add Message on Close account page

What is the root cause of that problem?

We are missing the maxLength prop here in CloseAccountPage:

<InputWrapper
InputComponent={TextInput}
inputID={INPUT_IDS.REASON_FOR_LEAVING}
autoGrowHeight
label={translate('closeAccountPage.enterMessageHere')}
aria-label={translate('closeAccountPage.enterMessageHere')}
role={CONST.ROLE.PRESENTATION}
containerStyles={[styles.mt5, styles.autoGrowHeightMultilineInput]}
/>

What changes do you think we should make in order to solve the problem?

Instead of showing error, we should have a character limit, like we do in other areas of the App.
We should add a maxLength prop to the TextInput here

We can set it to CONST.MAX_COMMENT_LENGTH as it used in other areas of the app:

maxLength={CONST.MAX_COMMENT_LENGTH}

Alternatively

  • We can set the limit to CONST.DESCRIPTION_LIMIT or define a new const for an arbitrary value.

@rayane-djouah
Copy link
Contributor

rayane-djouah commented Mar 1, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

No message limit when add Message on Close account page.

What is the root cause of that problem?

here we are not validating characters number limit.

What changes do you think we should make in order to solve the problem?

add this validation:

       if (values.reasonForLeaving.length > CONST.DESCRIPTION_LIMIT) {
           ErrorUtils.addErrorMessage(errors, 'reasonForLeaving', [
               'common.error.characterLimitExceedCounter',
               {length: values.reasonForLeaving.length, limit: CONST.DESCRIPTION_LIMIT},
           ]);
       }

we can use a different value than CONST.DESCRIPTION_LIMIT and add it to CONST file.
we should also and add a bottom margin to make the error looks good.

Copy link

melvin-bot bot commented Mar 5, 2024

@kevinksullivan Whoops! This issue is 2 days overdue. Let's get this updated quick!

Copy link

melvin-bot bot commented Mar 5, 2024

@kevinksullivan Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Mar 7, 2024

@kevinksullivan Huh... This is 4 days overdue. Who can take care of this?

Copy link

melvin-bot bot commented Mar 11, 2024

@kevinksullivan 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

Copy link

melvin-bot bot commented Mar 13, 2024

@kevinksullivan 10 days overdue. I'm getting more depressed than Marvin.

Copy link

melvin-bot bot commented Mar 15, 2024

@kevinksullivan this issue was created 2 weeks ago. Are we close to a solution? Let's make sure we're treating this as a top priority. Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!

Copy link

melvin-bot bot commented Mar 15, 2024

@kevinksullivan 12 days overdue. Walking. Toward. The. Light...

@kevinksullivan
Copy link
Contributor

I don't think this is worth prioritizing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
None yet
Development

No branches or pull requests

4 participants