-
Notifications
You must be signed in to change notification settings - Fork 3k
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-08-07] [$1000] The #announce is hidden for a long workspace name (works fine with small workspace name) #19359
Comments
Triggered auto assignment to @sophiepintoraetz ( |
This comment was marked as duplicate.
This comment was marked as duplicate.
ProposalPosting proposal early as per new guidelines Please re-state the problem that we are trying to solve in this issue.The #announce is hidden for a long workspace name (works fine with small workspace name) What is the root cause of that problem?Workspace name rendered as subtitle via code below: App/src/components/QRShare/index.js Lines 80 to 90 in 7378626
We restrict it with What changes do you think we should make in order to solve the problem?Within {this.props.subtitle && (
<Text
...
// numberOfLines={1} // *** Remove this ***
// style={{marginTop: 4}} // *** Old Code ***
style={[styles.mt1, styles.textAlignCenter, styles.breakAll]} // *** Updated Code ***
...
>
...
</Text>
)} This will solve the issue as shown in result. What alternative solutions did you explore? (Optional)None |
ProposalPlease re-state the problem that we are trying to solve in this issue.The #announce is hidden for a long workspace name (works fine with small workspace name) What is the root cause of that problem?App/src/components/QRShare/index.js Lines 80 to 90 in 8180113
We only display subTitles in one line. So the long workspace name will be truncated What changes do you think we should make in order to solve the problem?We can move the workspace name to the beginning of subTitle and still truncate subTitle. Lines 488 to 508 in 8180113
We add one more params in getChatRoomSubtitle function called shouldDisplayRoomNameFirst (default is false) Then updating Line 507 in 8180113
to
and pass shouldDisplayRoomNameFirst is true in here App/src/pages/ShareCodePage.js Line 40 in 8180113
What alternative solutions did you explore? (Optional) |
Triggered auto assignment to @joekaufmanexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
Apologies Joe - I'm going OOO today for the week and didn't get a chance to try and replicate this - I'll keep myself assigned so that if it needs movement when I'm back, I'll catch up then! |
I can reproduce this, but I don't think this is a bug, and am not sure we should do anything to change this. Here is the language from the threads design doc discussing how we truncate the workspace name and root report. It looks like we applied this same logic to QR codes:
cc @stitesExpensify Curious if you agree this is not a bug? It seems like we just did not optimize for workspace name longer than 30 characters so the root report is cut off on a QR code if the workspace name is longer than that (which is fair, since names this long shouldn't be common). |
hm maybe we should just wrap in the QR code case? CC @JmillsExpensify |
Could you clarify what you mean by wrap here? Would that mean truncating the workspace name to make sure the root report is always shown? |
As in the bottom portion below the qr code would expand, and have multiple lines. Some alternatives would be:
|
Got it. Personally, I am not opposed to doing nothing here. Since we're allowing users to navigate from thread back to parent room soon, it doesn't seem super realistic to me that users will end up confused about the root report of a thread. Further, we are going to add limits on lengths of room names soon. Which will further reduce the likelihood of anyone running into this. |
Brought question to Slack |
I see Stites is out of the office through the weekend. So going to add the external label to get more eyes on this. |
Job added to Upwork: https://www.upwork.com/jobs/~01a124a19ae3e3c33f |
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 - @rushatgabhane ( |
Let's definitely center it. As for truncating after 2 lines or not, what's our current thinking/rules for this? No truncation via ellipsis, but perhaps we just prevent super long room names/workspace names upon creation? |
so we're allowing up to 100 chars for each right now as per the work being done in #18647 |
Cool, works for me. So I guess we don't worry about truncation here, and just center everything up. |
🎯 ⚡️ Woah @rushatgabhane / @varshamb, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.47-6 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-08-07. 🎊 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.
For reference, here are some details about the assignees on this issue:
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:
|
Payouts due: Issue Reporter: $250 @priya-zha Eligible for 50% #urgency bonus? Y |
Hey @sophiepintoraetz. Seems like you have sent me an offer for this issue now. Melvin had already sent me an offer earlier. I accepted it and I'm just waiting for you to send the payment and end the contract. You can withdraw the contract that you've sent me now. |
@priya-zha FYI, you could also reject the offer on upwork |
|
created a manual request - https://staging.new.expensify.com/r/3749561052279859 |
@priya-zha - please can you just accept the offer as it appears the original has timed out. |
@varshamb - I believe I sent you an offer via Upwork, can you please confirm you have received it?| |
Okay. Accepted the offer that you sent me today. If the original has timed out, can you withdraw the offer that Melvin sent me earlier . I accepted that offer (melvin's) but the payment has not been done for that. Thanks |
Thank you! Accepted the offer. |
Reviewed details for @rushatgabhane. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
Payments done here! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
The #announce should not be hidden for a long workspace name since it's the name of the room
Actual Result:
The #announce is hidden for a long workspace name (works fine with small workspace name)
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.16-6
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
error-2023-05-18_10.05.04.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684383597774089
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: