-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[HOLD for payment 2023-05-23] [HOLD for payment 2023-05-16] [$1000] Editing workspace name to 1to3 characters adding extra line in the optional message when inviting users in Spanish #17202
Comments
Triggered auto assignment to @michaelhaxhiu ( |
Bug0 Triage Checklist (Main S/O)
|
@michaelhaxhiu Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Job added to Upwork: https://www.upwork.com/jobs/~0108698f1d6f776495 |
Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @fedirjh ( |
Triggered auto assignment to @techievivek ( |
Going external, this is reproducible. Should be a very easy fix. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Changing the name of a workspace to 1-3 characters in Spanish preferences creates an extra space at the last line of the personal message. What is the root cause of that problem?The root cause is here Line 2208 in 615a31c
What changes do you think we should make in order to solve the problem?We need to set the message text input height according to the content of the message. We can apply the same logic that we're already doing for the App/src/components/Composer/index.android.js Line 101 in 393efe1
If we want to limit the maximum/minimum number of lines to 3/4 for example (currently the height is always around 4.5 lines), we can also modify that logic to accept that maximum/minimum. Since the logic is reused between 2 components, we can extract it our to a common HOC for reuse. What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.When Workspace name is less then 3 characters invite text is 3 lines instead of 4 What is the root cause of that problem?The root cause of the problem is static setting of App/src/pages/workspace/WorkspaceInvitePage.js Lines 342 to 352 in 42bea4b
This settings works for RNTextInput component if height isn't set in style also we have minHeight set here: Line 2208 in 615a31c
both of this settings affect the height of the component What changes do you think we should make in order to solve the problem?We could just add a new line after Line 1044 in 42bea4b
Also I think we should make it consistent with en.js and also add a newline here: Line 1043 in 42bea4b
also we could delete this style setting: Line 2208 in 615a31c
What alternative solutions did you explore? (Optional)We could dynamically adjust numberOfLines with onChange handler as it's done here: App/src/libs/ComposerUtils/index.js Lines 11 to 15 in 6e6adb0
|
@tienifr Thanks for the proposal. Your RCA is correct. However your solution is not clear , do you suggest that we update the height style or the number of lines ? I don't think updating number of lines will fix the problem |
@alexxxwork Thanks for the proposal. I don't think your RCA is correct. |
@fedirjh Well, I thought the same for some time, but then I tried to reduce minHeight in style - it changes nothing. You could see this in Expo in RN docs, but expo seems to be down right in the time |
@alexxxwork React native web supports |
@fedirjh Well, I'm a bit inaccurate - minHeight actually set minimum height but not less then the height of lines in numberOfLines. Updated proposal |
@fedirjh sorry for the confusion, I meant to update the |
@tienifr I don't entirely agree with that. If we set
@tienifr On Web, your proposed solution of dynamically changing the Additionally, could you please update your proposal accordingly ? @alexxxwork Thank you for the update. Your solution appears to be a workaround to me, as it does not address the root cause of the issue, nor it does solve the problem for wider screens. Screen.Recording.2023-04-14.at.9.44.22.PM.mov |
@fedirjh For this case I propose changing numberOfRows dynamically (alternative) |
@alexxxwork That's basically what @tienifr has suggested in his proposal. |
You either make a workaround or make it automatically adaptive, not much to invent here. It's not the same, I propose to calculate rows, not height. |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.12-0 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2023-05-16. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
There is a regression from this issue #18566 cc: @michaelhaxhiu One more regression #18525. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.14-14 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2023-05-23. 🎊 After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.
As a reminder, here are the bonuses/penalties that should be applied for any External issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
@michaelhaxhiu As this is a new feature it does not require BZ checklist. I would suggest adding a regression test :
Regression Test Proposal
Do we agree 👍 or 👎 |
The regression test looks simple and good to me! I'm trying to make sense of the payments owed right now. Seems like we had a few regressions that likely disqualify the speed bonus? - but please correct me if I'm wrong as @Ollyws rose some points about the page being refactored around the same time as his PR being ready for review/merge. I'd love a bud check from @Ollyws @fedirjh or @techievivek bug reporter -- $250 @ayazhussain79 |
@michaelhaxhiu Yeah had a couple of regressions we fixed promptly. Looks good to me. |
Thanks for your input. It's a bummer :( I can see ya'll worked hard on it but seems like we'll stick to the default pricing (no speed / regression free bonus this time). Next time!! |
Yes we have two regression which, I guess, should reduce the C+ payment to 250$.
Actually @Ollyws raised that for the (- 50% penalty) as the PR got affected by other refactoring which made it surpasses the 9 days timeline penalty So I think payment should :
|
It never surpassed the 9 days in the end, it was just a precaution. |
That would mean just one 50% docking, so payments would be:
👍 |
Old job link expired (thanks upwork... 😒 ) New job link - https://www.upwork.com/jobs/~01b18ce261bbb93719 Offered a contract to all 3 at the aforementioned price points. |
@michaelhaxhiu accepted, thanks. |
@michaelhaxhiu offer accepted |
All payments issued. |
All set. Closing. |
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:
workspace name with 1-3 characters should not create an extra space at the last line of the personal message
Actual Result:
Changing the name of a workspace to 1-3 characters in Spanish preferences creates an extra space at the last line of the personal message
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.2.97-2
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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
Recording.177.mp4
2023-04-08-22-06-39_phQPjLnl.mp4
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680974868488639
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: