-
Notifications
You must be signed in to change notification settings - Fork 3.9k
fix: Show editable Amount by default in report view #94929
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
Merged
cristipaval
merged 12 commits into
Expensify:main
from
x-dev90:fix/93014-default-report-amount-column
Jul 10, 2026
+69
−23
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
5f8b434
fix: default report view to editable amount column
x-dev90 47d4efe
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 afaa60a
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 ef1bf95
fix: adjust column order for total and total amount
x-dev90 22ac0f6
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 fb77db8
fix: simplify comments placement and preserve custom report columns
x-dev90 d6c3ebe
fix: update column visibility logic to include TOTAL in custom report
x-dev90 cf1eff0
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 8d45c37
fix: remove redundant comments
x-dev90 6e367f0
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 14883b7
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 a19cf78
Merge branch 'main' into fix/93014-default-report-amount-column
x-dev90 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did you reorder the columns here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reordered it to keep
Commentsimmediately before the money columns, consistent with the behavior from #90301.Without this change, same-currency reports render as
Amount | Comments, while multi-currency reports render asAmount | Comments | Total. MovingCOMMENTSbeforeTOTAL_AMOUNTkeeps the layout consistent:Comments | AmountComments | Amount | TotalThis also preserves the latest design feedback that
Totalshould remain afterAmountwhen both are visible.Please let me know if you think we should handle this differently.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without the reordering, Amount was already to the left of Total.
The
Commentscolumn reordering is already done manually:App/src/libs/SearchUIUtils.ts
Lines 5927 to 5934 in c8d6035
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The manual
Commentsinsertion handles the custom-columns path, but it does not run for the default path whenvisibleColumnsis empty. In the default path, the order comes fromObject.keys(columns).So if we keep the previous order, default reports with comments render as
Amount | Comments/Amount | Comments | Total.Since the expected layout is
Comments | AmountandComments | Amount | Total, I think we still need to moveCOMMENTSbeforeTOTAL_AMOUNTin the default map as well.