Expensify / App

Welcome to New Expensify: a complete re-imagination of financial collaboration, centered around chat. Help us build the next generation of Expensify by sharing feedback and contributing to the code.
https://new.expensify.com
MIT License
2.99k stars 2.5k forks source link

[HOLD for payment 2024-02-20] [$1000] [Polish] Add limit on length of task names, room names, etc. #18647

Closed kbecciv closed 2 months ago

kbecciv commented 1 year ago

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


Action Performed:

  1. Go to URL https://staging.new.expensify.com/
  2. Login with any Expensifail account
  3. Go to FAB -> Assign task
  4. Start typing the title and note that there is no symbol limit

Expected Result:

After discussion in Slack, we want to make the following field limit updates:

Titles (100 characters):

Supporting messages (500 characters):

Actual Result:

There is no limit on the length of the title. Same behavior for Description

Workaround:

Unknown

Platforms:

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

Version Number: 1.3.12.0

Reproducible in staging?: Yes

Reproducible in production?: yes

If this was caught during regression testing, add the test name, ID and link from TestRail:

Email or phone of affected tester (no customers):

Logs: https://stackoverflow.com/c/expensify/questions/4856

Notes/Photos/Videos: Any additional supporting documentation

https://github.com/Expensify/App/assets/93399543/05b9957a-b07e-4625-9e73-3b720dea6b93

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~018a42c5fcacc50150
  • Upwork Job ID: 1686014963280871424
  • Last Price Increase: 2023-07-31
  • Automatic offers:
    • dhairyasenjaliya | Contributor | 26010517
melvin-bot[bot] commented 1 year ago

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

melvin-bot[bot] commented 1 year ago

Bug0 Triage Checklist (Main S/O)

joekaufmanexpensify commented 1 year ago

My initial thought is this is not a bug, and should be a new feature issue. Confirming here.

allroundexperts commented 1 year ago

Proposal

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

Assign Task field does not have limit on length

What is the root cause of that problem?

We don't have maxLength defined for the input here.

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

We should add a maxLength attribute with the required length that we want to restrict the users to here.

What alternative solutions did you explore? (Optional)

None

dhairyasenjaliya commented 1 year ago

Proposal

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

What is the root cause of that problem?

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

joekaufmanexpensify commented 1 year ago

Still getting confirmation that this should be a new feature issue, and not a bug.

joekaufmanexpensify commented 1 year ago

Okay, we discussed this in Slack here, and I confirmed this is not a bug. We just didn't build this.

While it prob makes sense to add a limit at some point, we decided we don't need to prioritize this and it can be polish. Particularly because:

When we do ultimately decide to do this, we'll want to consider all of the areas that don't have a limit, like task name, room name, etc. and add a limit to all of them.

melvin-bot[bot] commented 1 year ago

Current assignee @joekaufmanexpensify is eligible for the NewFeature assigner, not assigning anyone new.

joekaufmanexpensify commented 1 year ago

Next steps here are to:

  1. identify anywhere in the app that needs a name limit.
  2. Figure out what we think that limit should be.
  3. Implement the limit in all of those places.

This is a minor polish issue, so will get to it in the next few weeks.

dhairyasenjaliya commented 1 year ago

@joekaufmanexpensify we can add this one here also https://github.com/Expensify/App/issues/18891

joekaufmanexpensify commented 1 year ago

Sounds good!

joekaufmanexpensify commented 12 months ago

Will prioritize this soon.

joekaufmanexpensify commented 11 months ago

OOO next week, but then will pick this back up.

dhairyasenjaliya commented 11 months ago

This can be added here https://github.com/Expensify/App/issues/19821#issue-comment-box

dhairyasenjaliya commented 11 months ago

another potential GH to add it here https://github.com/Expensify/App/issues/20137 @joekaufmanexpensify

joekaufmanexpensify commented 11 months ago

Was OOO last week, going to look into this soon

joekaufmanexpensify commented 11 months ago

Going to focus on this this week!

joekaufmanexpensify commented 11 months ago

Started a discussion with proposed limits here.

joekaufmanexpensify commented 11 months ago

Discussion is still ongoing!

dangrous commented 11 months ago

Do we have a plan for workspace name limits too? I saw https://expensify.slack.com/archives/C01GTK53T8Q/p1686952259007779?thread_ts=1686863510.616919&cid=C01GTK53T8Q but wasn't sure if workspace names would be included in one of those categories as well. Asking due to https://github.com/Expensify/App/issues/19359 - thanks!

joekaufmanexpensify commented 11 months ago

Yep, we're considering workspace name limits

joekaufmanexpensify commented 10 months ago

Did some research on why we selected existing limits last week. Going to bring to slack today!

joekaufmanexpensify commented 10 months ago

Ran out of time for this last week. But going to post an update today.

dhairyasenjaliya commented 10 months ago

we can probably add this one https://github.com/Expensify/App/issues/22201

joekaufmanexpensify commented 10 months ago

I posted an update on this in the slack discussion today!

joekaufmanexpensify commented 10 months ago

Still discussing in Slack thread after last week's update!

joekaufmanexpensify commented 10 months ago

We agreed on limit thresholds in Slack! Next step is for me to identify where we're going to change the limits this week

joekaufmanexpensify commented 9 months ago

Posting an update to the slack thread today!

joekaufmanexpensify commented 9 months ago

Update here

joekaufmanexpensify commented 9 months ago

Updated the new expected result in OP based on where the slack discussion landed. We're not all set to work on this!

melvin-bot[bot] commented 9 months ago

Job added to Upwork: https://www.upwork.com/jobs/~018a42c5fcacc50150

melvin-bot[bot] commented 9 months ago

Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new.

melvin-bot[bot] commented 9 months ago

Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External)

joekaufmanexpensify commented 9 months ago

cc @allroundexperts @dhairyasenjaliya if you want to update your previous proposals to match the next expected behavior here, we're now all set to proceed!

dhairyasenjaliya commented 9 months ago

Proposal

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

What is the root cause of that problem?

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

Titles (100 characters):

Supporting message (500 characters):

At the time of adding proposal, non of the proposal includes a new requirement

Santhosh-Sellavel commented 9 months ago

Left a comment here for volunteers to take over

mananjadhav commented 9 months ago

Taking this over.

joekaufmanexpensify commented 9 months ago

Sounds great, thanks!

melvin-bot[bot] commented 9 months ago

📣 @mananjadhav Please request via NewDot manual requests for the Contributor role ($1000)

mananjadhav commented 9 months ago

@dhairyasenjaliya's proposal here. I was wondering if we should just have two constants TITLE_MAX_LENGTH and SUPPORTING_TEXT_MAX_LENGTH.

Will also take feedback form @youssef-lr on this one.

🎀 👀 🎀 C+ reviewed

melvin-bot[bot] commented 9 months ago

Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

mananjadhav commented 9 months ago

Quick bump on this one @youssef-lr.

dhairyasenjaliya commented 9 months ago

@mananjadhav @youssef-lr Also for WorkspaceName and RoomName we need to set the character limit to 100 as well currently both have 80 from the backend so this required backend changes as well

joekaufmanexpensify commented 9 months ago

Pending review of proposal by @youssef-lr

joekaufmanexpensify commented 9 months ago

Bumped Youssef 1:1.

joekaufmanexpensify commented 9 months ago

Youssef's been OOO, but is going to review this one soon!

joekaufmanexpensify commented 9 months ago

Still pending input from @youssef-lr

melvin-bot[bot] commented 9 months ago

📣 @mananjadhav Please request via NewDot manual requests for the Reviewer role ($1000)

melvin-bot[bot] commented 9 months ago

📣 @dhairyasenjaliya 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻 Keep in mind: Code of Conduct | Contributing 📖

youssef-lr commented 9 months ago

LGTM @mananjadhav, we can decide on the details in the PR I think.