You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$250] Expense preview - Disabled list report field value is displayed on expense preview #59355
Version Number: v9.1.21-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A If this was caught during regression testing, add the test name, ID and link from TestRail:#57923 Email or phone of affected tester (no customers):expensify416+da2@gmail.com Issue reported by: Applause Internal Team Device used: MacOS Chrome, Desktop App Component: Money Requests
Action Performed:
Enable report fields
Go to Report fields > Add field > Add name > select list type > Add list values > select initial value
Go offline > Click Save
Go to the workspace chat
Create expense
Return to the workspace Report field
Select the list report field > List values > disable all added values
Return to the workspace chat > open the expense
Apply online mode
Expected Result:
Report field on the expense preview shouldn't be displayed
Actual Result:
Report field on the expense preview shows the report fields initial value
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI bug.
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.
⚠️@nkdengineer Thanks for your proposal. Please update it to follow the proposal template, as proposals are only reviewed if they follow that format (note the mandatory sections).
What changes do you think we should make in order to solve the problem?
We need to only avoid hiding the field only if it has a previously set value (defaultValue shouldn't matter) so we should remove the reportField.defaultValue from here
changed the title [-]Expense preview - Disabled list report field value is displayed on expense preview[/-][+][$250] Expense preview - Disabled list report field value is displayed on expense preview[/+]on Apr 1, 2025
Activity
melvin-bot commentedon Mar 31, 2025
Triggered auto assignment to @kadiealexander (
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.nkdengineer commentedon Mar 31, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Report field on the expense preview shows the report fields initial value
What is the root cause of that problem?
We only hide the report field if the
fieldValueis not empty. In our casereportField.defaultValueis not empty then this returnsfalse.App/src/components/ReportActionItem/MoneyReportView.tsx
Lines 100 to 104 in 045a3ba
What changes do you think we should make in order to solve the problem?
I think we can remove
!fieldValuecheck hereApp/src/components/ReportActionItem/MoneyReportView.tsx
Lines 100 to 104 in 045a3ba
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
UI bug.
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.
github-actions commentedon Mar 31, 2025
FitseTLT commentedon Mar 31, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense preview - Disabled list report field value is displayed on expense preview
What is the root cause of that problem?
We won't hide the field if we the list report field has a defaultValue
App/src/components/ReportActionItem/MoneyReportView.tsx
Lines 100 to 104 in 045a3ba
What changes do you think we should make in order to solve the problem?
We need to only avoid hiding the field only if it has a previously set value (defaultValue shouldn't matter) so we should remove the
reportField.defaultValuefrom hereApp/src/components/ReportActionItem/MoneyReportView.tsx
Line 101 in 045a3ba
This is exactly the logic we use for other list fields like category in other places as here
App/src/components/ReportActionItem/MoneyRequestView.tsx
Line 218 in 1c74508
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?
Not needed
What alternative solutions did you explore? (Optional)
[-]Expense preview - Disabled list report field value is displayed on expense preview[/-][+][$250] Expense preview - Disabled list report field value is displayed on expense preview[/+]melvin-bot commentedon Apr 1, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021906953766885392501
melvin-bot commentedon Apr 1, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @Pujan92 (
External)16 remaining items
melvin-bot commentedon Apr 23, 2025
@Pujan92 12 days overdue now... This issue's end is nigh!
Pujan92 commentedon Apr 24, 2025
@kadiealexander Let's close this issue based on #59355 (comment)
melvin-bot commentedon Apr 28, 2025
@Pujan92 @kadiealexander this issue is now 4 weeks old, please consider:
Thanks!
melvin-bot commentedon Apr 28, 2025
@Pujan92 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Apr 29, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon Apr 30, 2025
@Pujan92 Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon May 2, 2025
@Pujan92 6 days overdue. This is scarier than being forced to listen to Vogon poetry!
melvin-bot commentedon May 6, 2025
@Pujan92 10 days overdue. I'm getting more depressed than Marvin.
melvin-bot commentedon May 6, 2025
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
melvin-bot commentedon May 8, 2025
@Pujan92 12 days overdue. Walking. Toward. The. Light...