Repository navigation
Closed
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsApply this label when an issue is open to proposals by contributors
Description
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: 9.2.47-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail: #74424
Issue reported by: Applause - Internal Team
Action Performed:
Precondition: user with Display First and Last name (both at least 8 characters). Create expense in workspace.
- Open Expense
- Submit > Approve > Paid
- Click on expense header
Expected Result:
Title subheader - From <...> in is fully visible
Actual Result:
Title subheader - From <...> in is truncated
Workaround:
Unknown
Platforms:
Select the officially supported platforms where the issue was reproduced:
- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Platforms Tested:
On which of our officially supported platforms was this issue tested:- Android: App
- Android: mWeb Chrome
- iOS: App
- iOS: mWeb Safari
- iOS: mWeb Chrome
- Windows: Chrome
- MacOS: Chrome / Safari
- MacOS: Desktop
Screenshots/Videos
Add any screenshot/video evidence
Bug6997960_1762602373493.Screen_Recording_2025-11-08_at_13.40.11.mp4
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021990915883638621782
- Upwork Job ID: 1990915883638621782
- Last Price Increase: 2025-11-18
Issue Owner
Current Issue Owner: @rojiphilMetadata
Metadata
Assignees
Labels
BugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsApply this label when an issue is open to proposals by contributors
Type
Projects
- StatusShow more project fieldsDone
Activity
melvin-bot commentedon Nov 8, 2025
Triggered auto assignment to @JmillsExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.ShridharGoel commentedon Nov 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid expense title subheader is truncated.
What is the root cause of that problem?
The subtitle
Textcomponent insideParentNavigationSubtitleis rendered withnumberOfLines={1}App/src/components/ParentNavigationSubtitle.tsx
Lines 127 to 166 in 5dc4f0c
This prop clamps the string to a single line even when there is horizontal space available, which inevitably truncates long names on both web and native.
What changes do you think we should make in order to solve the problem?
Remove the
numberOfLinesconstraint so the subtitle can wrap naturally. No other layout tweaks are needed, because the parent container already reserves vertical space for multiline text. The resulting component excerpt:Krishna2323 commentedon Nov 8, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Paid expense title subheader is truncated
What is the root cause of that problem?
styles.mw100on the main container inParentNavigationSubtitle.App/src/components/ParentNavigationSubtitle.tsx
Line 128 in 5dc4f0c
What changes do you think we should make in order to solve the problem?
styles.mw100on the main container inParentNavigationSubtitle.flex1if needed and also apply the same styles here and here.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)
Result
dmkt9 commentedon Nov 9, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Title subheader - From <...> in is truncated
What is the root cause of that problem?
We previously fixed a similar issue in #73285, but that only addressed the case where
MenuItemWithTopDescriptionwas used:App/src/pages/ReportDetailsPage.tsx
Lines 766 to 804 in 2087489
However, we also have cases where the report title is rendered without
MenuItemWithTopDescription.App/src/pages/ReportDetailsPage.tsx
Lines 681 to 728 in 2087489
This issue occurs because
ParentNavigationSubtitleis wrapped in aViewwithdisplay: flex.App/src/pages/ReportDetailsPage.tsx
Line 682 in 2087489
What changes do you think we should make in order to solve the problem?
Since all
DisplayNamesinnameSectionExpenseIOUare already center-aligned, usingdisplay: flexhere is unnecessary.App/src/pages/ReportDetailsPage.tsx
Line 682 in 2087489
<View style={[styles.flex1, styles.mw100]}>App/src/pages/ReportDetailsPage.tsx
Line 724 in 2087489
pressableStyles={[styles.mt1, styles.mw100]} + textStyles={[styles.textAlignCenter]}What alternative solutions did you explore? (Optional)
N/A
abbasifaizan70 commentedon Nov 9, 2025
Proposal: Fix Truncation Issue in Expense Header Subtitle
Problem
When viewing an expense header, the subtitle "From in " is being truncated, making the "in " part invisible. This occurs when the display name is long (8+ characters).
Root Cause
The
ParentNavigationSubtitlecomponent was wrapping the entire content in a singleTextcomponent withnumberOfLines={1}, causing the entire string to truncate when space was limited. This meant the trailing "in " text could be cut off.Solution
Reuse the existing truncation pattern from
TextWithEllipsiscomponent, which handles similar scenarios by:flexShrink1for the leading part (allows truncation)flexShrink0for the trailing part (always visible)File Changed:
src/components/ParentNavigationSubtitle.tsxChanges:
Textwrapper with aViewusingflexRowlayoutViewwithflexShrink1style (can truncate)ViewwithflexShrink0style (always visible)[-]Expense - Paid expense title subheader is truncated[/-][+][$250] Expense - Paid expense title subheader is truncated[/+]melvin-bot commentedon Nov 18, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021990915883638621782
melvin-bot commentedon Nov 18, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)JmillsExpensify commentedon Nov 18, 2025
Whoops, just seeing that comment above. I agree, that looks like the same core issue. I'm going to close and we can re-open this issue if needed.