Closed kbecciv closed 8 months ago
Triggered auto assignment to @joekaufmanexpensify (Bug
), see https://stackoverflow.com/c/expensify/questions/14418 for more details.
Platforms
in OP are ✅)My initial thought is this is not a bug, and should be a new feature issue. Confirming here.
Assign Task field does not have limit on length
We don't have maxLength
defined for the input here.
We should add a maxLength
attribute with the required length that we want to restrict the users to here.
None
The problem not only exists on New task
page we need to modify this all files NewTaskDetailsPage.js
, NewTaskTitlePage.js
, NewTaskTitlePage.js
, TaskTitlePage.js
, NewTaskDescriptionPage.js
, TaskDescriptionPage.js
To fix the problem we have 2 ways to solve
We can add maxLength
(need to define limit) to both the field title
and description
which are inputID="taskTitle”
and inputID="description"
on all the above mentioned pages that are affected by infinite character limit
Since we are using <Form>
on validate()
function we can just check length of the both field and based on that we can direct display error
None
Still getting confirmation that this should be a new feature issue, and not a bug.
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.
Current assignee @joekaufmanexpensify is eligible for the NewFeature assigner, not assigning anyone new.
Next steps here are to:
This is a minor polish issue, so will get to it in the next few weeks.
@joekaufmanexpensify we can add this one here also https://github.com/Expensify/App/issues/18891
Sounds good!
Will prioritize this soon.
OOO next week, but then will pick this back up.
This can be added here https://github.com/Expensify/App/issues/19821#issue-comment-box
another potential GH to add it here https://github.com/Expensify/App/issues/20137 @joekaufmanexpensify
Was OOO last week, going to look into this soon
Going to focus on this this week!
Started a discussion with proposed limits here.
Discussion is still ongoing!
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!
Yep, we're considering workspace name limits
Did some research on why we selected existing limits last week. Going to bring to slack today!
Ran out of time for this last week. But going to post an update today.
we can probably add this one https://github.com/Expensify/App/issues/22201
I posted an update on this in the slack discussion today!
Still discussing in Slack thread after last week's update!
We agreed on limit thresholds in Slack! Next step is for me to identify where we're going to change the limits this week
Posting an update to the slack thread today!
Updated the new expected result in OP based on where the slack discussion landed. We're not all set to work on this!
Job added to Upwork: https://www.upwork.com/jobs/~018a42c5fcacc50150
Current assignee @joekaufmanexpensify is eligible for the External assigner, not assigning anyone new.
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Santhosh-Sellavel (External
)
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!
CONST.js
we need to modify WORKSPACE_NAME_CHARACTER_LIMIT
from 80
to 100
TASK_NAME_LIMIT
and set to 100
maxLength
prop to <TextInput>
inside 3 pages NewTaskDetailsPage.js
, NewTaskTitlePage.js
, TaskTitlePage.js
CONST.js
we need to modify MAX_ROOM_NAME_LENGTH
from 79
to 100
MONEY_REQUEST_DESCRIPTION_LIMIT
and set to 500
maxLength
prop to <TextInput>
inside 2 pages MoneyRequestDescriptionPage.js
and EditRequestDescriptionPage.js
WELCOME_MESSAGE_LIMIT
and set to 500
ReportWelcomeMessagePage.js
here we are using wrong limit as MAX_COMMENT_LENGTH
WorkspaceInviteMessagePage.js
here as well to be consistency TASK_NAME_LIMIT
and set to 100
maxLength
prop to <TextInput>
inside 3 pages NewTaskDescriptionPagejs
, NewTaskDetailsPage.js
, TaskDescriptionPage.js
Since we are using <Form>
on validate()
function we can just check length of the both field and based on that we can direct display error based on above lengths
At the time of adding proposal, non of the proposal includes a new requirement
Left a comment here for volunteers to take over
Taking this over.
Sounds great, thanks!
📣 @mananjadhav Please request via NewDot manual requests for the Contributor role ($1000)
@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
Triggered auto assignment to @youssef-lr, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
Quick bump on this one @youssef-lr.
@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
Pending review of proposal by @youssef-lr
Bumped Youssef 1:1.
Youssef's been OOO, but is going to review this one soon!
Still pending input from @youssef-lr
📣 @mananjadhav Please request via NewDot manual requests for the Reviewer role ($1000)
📣 @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 📖
LGTM @mananjadhav, we can decide on the details in the PR I think.
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:
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