-
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
[Due for payment 2025-03-05] [$250] Company card name is cut off at the end. #56716
Comments
Triggered auto assignment to @alexpensify ( |
This has been labelled "Needs Reproduction". Follow the steps here: https://stackoverflowteams.com/c/expensify/questions/16989 |
Proposal by @hungvu193 ProposalPlease re-state the problem that we are trying to solve in this issue.Company card name is cut off at the end. What is the root cause of that problem?We're using flex row here:
But we forgot to add the style for the View here:
This makes the What changes do you think we should make in order to solve the problem?
We should also check other places in the App that used (Noting that the above solution fixes the RCA of the issue, but still might need additional changes to match the expected design, ie adding What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)N/A |
Go to Workspace > Company Card > Add a card that has long card name. @alexpensify Please assign me here as C+ as per:
|
@allgandalf - Let's confirm if this proposal will fix this issue. Thanks! |
@alexpensify can you put up external label here? i guess we need that to get the automation to kick in |
Job added to Upwork: https://www.upwork.com/jobs/~021890070956830857932 |
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new. |
@allgandalf we should be all set now. Thanks for your help here. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Company card name is cut off at the end. What is the root cause of that problem?We use flexRow to wrap the text.
And the View here doesn’t have flex: 1, and CaretWrapper doesn’t have flex: 1 either, which causes the text to be cut off: Without flex: 1, the container doesn’t expand to fill available space, causing the text to be cut off when there’s insufficient room.
What changes do you think we should make in order to solve the problem?To fix this issue, we need to add a new style as outlined in the steps below:
![]()
<PressableWithFeedback
onPress={() => Navigation.navigate(ROUTES.WORKSPACE_COMPANY_CARDS_SELECT_FEED.getRoute(policyID))}
style={[styles.flexRow, styles.alignItemsCenter, styles.gap3, shouldChangeLayout && styles.mb3]}
accessibilityLabel={formattedFeedName ?? ''}
wrapperStyle={[styles.flex1, !isLargeScreenWidth && styles.pr1]}
>
2 Add
update to: <View style={styles.flex1}>
<CaretWrapper customStyle={styles.flex1}> App/src/components/CaretWrapper.tsx Line 17 in 5a15892
<View style={[styles.flexRow, styles.gap1, styles.alignItemsCenter, customStyle]}> 4.
<Text style={[styles.flexShrink1, styles.textStrong]}> Test branchScreen.Recording.2025-02-14.at.15.38.36.mp4What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?None What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. If we cut the text and add ..., then we use the numberOfLines prop for the Text |
@alexpensify, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick! |
reviewing the proposals today |
@hungvu193 's proposal LGTM 🎀👀🎀 C+ reviewed |
Triggered auto assignment to @marcochavezf, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@allgandalf The proposal you selected causes the bug and is not sufficient to fix this issue. Could you review my proposal? |
|
@huult I think proposal from @hungvu193 was the first to point out RCA and outline a solution, these points are generally covered during PR phase, and imo, proposals need to outline a basic idea of the changes required and details can be looked at during the PR phase . Thanks for understanding 😄 |
In fact, that case will never happen, I believe you inspected the element to change the title, the card name has 100 characters limit. I also note in my proposal that, additional changes might be needed and my proposal only fixed the RCA of the issue. |
Because I saw this case was the same as this ticket (#55218), I pointed it out, identified the correct RCA, and resolved the issue. However, another contributor proposed a different case, and their proposal was selected. I feel it is the same as this case, so I am confused and asking for clarification. Anyway, I agree with @allgandalf. Thanks, @hungvu193 |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
not overdue, pending assignment, deeds here |
Thanks for the collaboration guys, and apologies for the delay here. I agree with @allgandalf's decision, assigning @hungvu193 Also thanks @huult for bringing up the clarification, I'm confident you will find success in the next issue 🚀 |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.6-1 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 2025-03-05. 🎊 For reference, here are some details about the assignees on this issue:
|
@hungvu193 / @allgandalf @alexpensify @hungvu193 / @allgandalf The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button] |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number:
Reproducible in staging?: needs reproduction
Reproducible in production?: needs reproduction
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?:
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
Expensify/Expensify Issue URL:
Issue reported by: @hungvu193
Slack conversation (hyperlinked to channel name): expensify-bugs
Action Performed:
Expected Result:
The card name shouldn't be cut off
Actual Result:
The card name is cut off
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Screen.Recording.2025-02-11.at.22.36.32.mov
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @alexpensifyThe text was updated successfully, but these errors were encountered: