Skip to content

Fix 85553 rbr carousel sorting - #86477

Merged
grgia merged 16 commits into
Expensify:mainfrom
abelhailefen:fix-85553-rbr-carousel-sorting
May 7, 2026
Merged

grgia merged 16 commits into
Expensify:mainfrom
abelhailefen:fix-85553-rbr-carousel-sorting

Conversation

@abelhailefen

@abelhailefen abelhailefen commented Mar 26, 2026 •

Copy link
Copy Markdown

Explanation of Change

Prioritize RBR-flagged transactions in carousel and transaction list sorting

When an expense report contains transactions that require user attention (violations, holds, missing fields, receipt errors), those actionable items were buried in the middle of the list based on their creation date. Users had to scroll through all transactions to find the ones needing action.

This PR introduces RBR-aware sorting so that transactions with Red Brick Road (RBR) indicators are automatically surfaced to the top of both the carousel preview and the transaction list when using the default Date sort. This ensures users see actionable items first without additional clicks or scrolling.

How it works:

  1. A new lightweight transactionHasRBR() helper checks transaction-level signals (violations, hold status, missing merchant/amount, receipt errors) without requiring heavy report/policy context.
  2. Both the carousel (MoneyRequestReportPreviewContent) and the transaction list (MoneyRequestReportTransactionList) sorting logic now prioritize RBR-flagged transactions on the default sort only (Date/ASC). When the user explicitly changes the sort column, standard sorting applies — the RBR pinning deactivates to respect the user's intent.

Fixed Issues

$ #85553
PROPOSAL: #85553 (comment)

Tests

Precondition: Log in with an account that has a workspace. If you don't have one, click + Create > New Workspace and follow the setup flow.

Web test

  1. Open a workspace and create an expense report with at least 3 manual expenses (e.g., $10 Coffee, $20 Lunch, $30 Dinner — each with a valid merchant name).
  2. Open the Dinner expense and tap the Hold button. Enter any reason (e.g., "Awaiting receipt") and confirm. Go back to the report.
  3. Click + Create > Submit expense > Scan tab and upload any random image. This creates a "Scanning..." transaction with missing fields.
  4. Navigate to the Report view (click on the report name).
  5. Verify that with the default sort (Date ↓), the held expense and the scanning expense appear at the top of the list, above the normal completed expenses.
  6. Navigate to the chat thread containing the report preview.
  7. Verify that the carousel shows the RBR-flagged expenses as the first items.
  8. Back in the report's transaction list view, click on the Merchant column header to sort by merchant.
  9. Verify that the held and scanning expenses are now sorted alphabetically by merchant alongside normal expenses (RBR pinning is disabled when the user explicitly changes the sort).
  10. Click the Date column header to sort by date descending, then click it again to return to date ascending.
  11. Verify that:
    • Date descending shows normal chronological order without RBR pinning
    • Date ascending (default sort) re-activates RBR pinning

Mobile test

Same as web tests.

  • Verify that no errors appear in the JS console

Offline tests

Same as tests

QA Steps

Same as tests

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
      • If any non-english text was added/modified, I used JaimeGPT to get English > Spanish translation. I then posted it in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.ts or at the top of the file that uses the constant) are defined as such
  • I verified that if a function's arguments changed that all usages have also been updated correctly
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
video_2026-04-09_13-40-57.mp4
Android: mWeb Chrome
Screen_Recording_20260330_134802_Samsung.Internet.mp4
iOS: Native
iOS: mWeb Safari
video_2026-04-05_21-59-21.mp4
MacOS: Chrome / Safari
Screen.Recording.2026-03-30.at.15.28.00.mp4

@melvin-bot
melvin-bot Bot requested review from joekaufmanexpensify and removed request for a team March 26, 2026 18:21
@github-actions

github-actions Bot commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@melvin-bot
melvin-bot Bot requested review from Gonals and removed request for a team March 26, 2026 18:22
@melvin-bot

melvin-bot Bot commented Mar 26, 2026

Copy link
Copy Markdown

@Gonals Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

const [reportDetailsColumns] = useOnyx(ONYXKEYS.NVP_REPORT_DETAILS_COLUMNS);
const [introSelected] = useOnyx(ONYXKEYS.NVP_INTRO_SELECTED);
const [draftTransactionIDs] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_DRAFT, {selector: validTransactionDraftIDsSelector});
const [allTransactionViolations] = useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ PERF-11

useOnyx(ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS) subscribes to the entire transaction violations collection without a selector. This component will re-render whenever any transaction violation changes across the entire app, not just those belonging to the transactions in this report.

Consider using a selector that filters to only the relevant transaction IDs, or compute violations per-transaction inside the useMemo using the transaction IDs already available from the transactions prop.


Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ This is fine, we want to rerender whenever any violation changes across the app, not just those belonging to the transactions in this report.

}, [sortBy, sortOrder, transactions, localeCompare, report]);
return [...transactions].sort((a, b) => {
// When on default sort (Date/ASC), prioritize RBR-flagged transactions
if (isDefaultSort && allTransactionViolations) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ CONSISTENCY-3

The RBR-aware sort comparator logic (violation lookup + transactionHasRBR comparison) is duplicated nearly identically in both MoneyRequestReportTransactionList.tsx and MoneyRequestReportPreviewContent.tsx.

Extract a shared compareByRBR(a, b, violations) comparator into TransactionPreviewUtils.ts next to transactionHasRBR so both call sites can reuse it.


Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes sense, repeated code should be extracted to a shared utility function in TransactionPreviewUtils.ts.

@ikevin127 ikevin127 Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abelhailefen Mind addressing this valid refactoring concern ?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important, we should use the existing logic

@abelhailefen

Copy link
Copy Markdown
Author

I have read the CLA Document and I hereby sign the CLA

CLABotify added a commit to Expensify/CLA that referenced this pull request Mar 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

https://github.com/Expensify/App/blob/56394089d33b3c6b6d81eb52acc8fd8cfc555d2e/mkcert#L1
P1 Badge Remove accidental mkcert binary from repository

This commit adds a 4.7MB ELF executable at the repo root (mkcert), which is unrelated to the sorting fix and introduces an opaque binary artifact into source control. Keeping committed executables like this increases clone size, complicates audits/reproducibility, and can trigger security/compliance concerns in CI pipelines; this should be removed from the commit.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

}, [sortBy, sortOrder, transactions, localeCompare, report]);
return [...transactions].sort((a, b) => {
// When on default sort (Date/ASC), prioritize RBR-flagged transactions
if (isDefaultSort && allTransactionViolations) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Apply RBR sort even when violations collection is missing

The RBR prioritization is currently gated by allTransactionViolations, so if that collection is unavailable/undefined, the comparator skips transactionHasRBR() entirely and falls back to plain date sorting. In that state, transactions that should still be considered RBR via non-violation signals (hold, missing merchant/amount, receipt error) are not surfaced to the top, so the new behavior silently fails for reports without loaded violation entries.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the new behavior silently fails for reports without loaded violation entries.

This is expected.

@ikevin127

This comment was marked as resolved.

@abelhailefen

Copy link
Copy Markdown
Author

I have updated the PR to follow the Author Checklist

@joekaufmanexpensify joekaufmanexpensify left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good for product

@ikevin127

ikevin127 commented Mar 27, 2026 •

Copy link
Copy Markdown
Contributor

@abelhailefen Thanks for the update! Before I can start reviewing, can you please add the (After only) video proof for all other platforms (iOS/Android Native and mWeb - 4 videos in total) at the bottom of the PR Author Checklist ?

This is an absolute requitement for any contributor PR in order to prove you actually tested on all platforms - if you don't have that proof and did not test on those platforms, there could be regressions that are never caught on Web only (big layout) 🙌

@Gonals
Gonals requested a review from ikevin127 March 30, 2026 14:23
Comment thread mkcert Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be removed from the PR.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@abelhailefen Mind removing this file ? It's a new file being commited to the codebase which shouldn't.

@ikevin127

Copy link
Copy Markdown
Contributor

@abelhailefen How is it going with the PR Author Checklist completion (videos for native platforms) ? Asking since that's the only blocker left for me to be able to proceed with review and approve.

ℹ️ Note that's been about 1 week since my last comment without a response from you and this can be seen as abandoning the issue / PR, per our guidelines:

  1. Daily updates on weekdays are highly recommended. If you know you won’t be able to provide updates within 48 hours, please comment on the PR or issue stating how long you plan to be out so that we may plan accordingly. We understand everyone needs a little vacation here and there. Any issue that doesn't receive an update for 5 days (including weekend days) may be considered abandoned and the original contract terminated.

@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 hello sorry for the late response but since i don't have a mac i'm unable to build for ios native ive been trying to find a laptop i can work on but i was unsuccessful. I'm currently building for android native both my pc and phone are low spec so thats been a challenge but i will make that available as soon i can and ill let you know.

@abelhailefen

abelhailefen commented Apr 9, 2026 •

Copy link
Copy Markdown
Author

@ikevin127 hello I've just added the android native after video proof which is the 4th one. The only one missing now is the ios native I am still unable to provide the ios native one because i dont have my own iphone and mac.

@ikevin127

Copy link
Copy Markdown
Contributor

Understood, I'll pick things up from here and make sure to test on all platforms as part of the review ✅

⚠️ Note that moving forward this will most likely not be allowed anymore as you'll run the risk of getting multiple warnings that can lead to removal from the contributor program if you continue to submit proposals on issues without being able to test on all platforms, which is a requirement in the contributor guidelines and PR Author Checklist.

@abelhailefen

Copy link
Copy Markdown
Author

thank you for your understanding i wont apply for issues that require an ios and mac from here on out until i acquire those platforms

@ikevin127

ikevin127 commented Apr 9, 2026 •

Copy link
Copy Markdown
Contributor

Reviewer Checklist

  • I have verified the author checklist is complete (all boxes are checked off).
  • I verified the correct issue is linked in the ### Fixed Issues section above
  • I verified testing steps are clear and they cover the changes made in this PR
    • I verified the steps for local testing are in the Tests section
    • I verified the steps for Staging and/or Production testing are in the QA steps section
    • I verified the steps cover any possible failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
  • I checked that screenshots or videos are included for tests on all platforms
  • I included screenshots or videos for tests on all platforms
  • I verified tests pass on all platforms & I tested again on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • If there are any errors in the console that are unrelated to this PR, I either fixed them (preferred) or linked to where I reported them in Slack
  • I verified proper code patterns were followed (see Reviewing the code)
    • I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick).
    • I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method
    • I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
    • I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
    • I verified the JSDocs style guidelines (in STYLE.md) were followed
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I verified that this PR follows the guidelines as stated in the Review Guidelines
  • I verified other components that can be impacted by these changes have been tested, and I retested again (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar have been tested & I retested again)
  • I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
  • I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
  • If a new component is created I verified that:
    • A similar component doesn't exist in the codebase
    • All props are defined accurately and each prop has a /** comment above it */
    • The file is named correctly
    • The component has a clear name that is non-ambiguous and the purpose of the component can be inferred from the name alone
    • The only data being stored in the state is data necessary for rendering and nothing else
    • For Class Components, any internal methods passed to components event handlers are bound to this properly so there are no scoping issues (i.e. for onClick={this.submit} the method this.submit should be bound to this in the constructor)
    • Any internal methods bound to this are necessary to be bound (i.e. avoid this.submit = this.submit.bind(this); if this.submit is never passed to a component event handler like onClick)
    • All JSX used for rendering exists in the render method
    • The component has the minimum amount of code necessary for its purpose, and it is broken down into smaller components in order to separate concerns and functions
  • If any new file was added I verified that:
    • The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.
  • I have checked off every checkbox in the PR reviewer checklist, including those that don't apply to this PR.

Screenshots/Videos

Android: HybridApp
android.mp4
Android: mWeb Chrome
android-mweb.mp4
iOS: HybridApp
ios.mov
iOS: mWeb Safari
ios-mweb.mov
MacOS: Chrome / Safari
web.mov

@ikevin127

Copy link
Copy Markdown
Contributor

🔄 Review summary

🟢 Reviewer checklist completed.

Category Score Status
Code Quality 8/10 ✅ Approvable with fixes
Testing 10/10 ✅ Excellent
Performance 8/10 ✅ Good
Documentation 9/10 ✅ Very Good
Reusability 7/10 ⚠️ Needs DRY fix (here)
Overall 8.4/10 ✅ APPROVE with minor changes

Recommendation: This PR is well-architected and solves a real user problem. The implementation is clean, well-tested, and follows Expensify patterns. Address the HIGH priority item (DRY violation) before approval. The DRY refactoring and formatting fixes can be addressed either before merge or as fast-follow items.

@abelhailefen Before I can approve please address the following issues:

  • DRY refactoring (reference)
  • new file added that should not be, must remove (reference)
  • sync you branch with the main branch to resolve any conflicts and make sure the branch is up to date

Once you completed the remaining tasks, please tag me and I'll do a final pass before approval 👍

@abelhailefen

abelhailefen commented Apr 10, 2026 •

Copy link
Copy Markdown
Author

@ikevin127 i have addressed the issues i have merged with main, i have removed the mkcert file and i have made the RBR-aware sort comparator logic dry. I've push all the changes to the branch. I'd like to point out that once i merged there were some squiggly line errors but they weren't related to my code plus i verified its running and the sorting works and i have ran the tests as well

@ikevin127

Copy link
Copy Markdown
Contributor

Thanks for the updates! I'll do a final check on the PR soon.

You'll probably need to merge main again once CME allows the workflows to actually run (they require approval for first time contributors) which could reveal some failing workflows.

@abelhailefen In the meantime could you please remove the package-lock.json change you just pushed ? We shouldn't push such changes (just like that mkcert file) - you can usually just revert it locally once you installed the modules.

Also please try to not force-push changes in PRs as it messes with the branch history - it's mentioned in guidelines here:

  1. Please never force push when a PR review has already started (because this messes with the PR review history)

@abelhailefen

abelhailefen commented Apr 10, 2026 •

Copy link
Copy Markdown
Author

okay ive been i using rebase to merge the branches thats why i needed to force push ill just pull from main and merge from here on out but i do need to force push the revert for package-lock.json

@codecov

codecov Bot commented Apr 10, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Looks like you've decreased code coverage for some files. Please write tests to increase, or at least maintain, the existing level of code coverage. See our documentation here for how to interpret this table.

Files with missing lines Coverage Δ
...ReportPreview/MoneyRequestReportPreviewContent.tsx 63.50% <100.00%> (+0.95%) ⬆️
src/libs/TransactionPreviewUtils.ts 86.17% <100.00%> (+2.74%) ⬆️
...stReportView/MoneyRequestReportTransactionList.tsx 0.33% <0.00%> (-0.02%) ⬇️
... and 9 files with indirect coverage changes

@ikevin127

Copy link
Copy Markdown
Contributor

@abelhailefen Looks like the workflows were approved and we can see which ones are failing, all must pass before moving forward:

  • ❌ Verify signed commits: there's a guide for this here:

Before you begin writing any code, please be aware that we require all commits to be signed. The easiest way to do that is to generate a new GPG key and add it to your GitHub account. Once you've done that, you can automatically sign all your commits by adding the following to your .gitconfig:

[commit]
    gpgsign = true
[user]
    email = <Your GH account email>
    name = <Your Name>
    signingkey = <your_signing_key>
[gpg]
    program = gpg

basically all your commits need to be verified otherwise merge cannot occur - so for this one you'll need to force push again, I recommend: git reset --soft HEAD~2 (the 2 commits that exist now), then once you added the verified commit thing you should be able to push again - verified this time

  • ❌ Prettier check: this is related to formatting, like imports not having spaces like {ABC}, I recommend running npm run prettier as instructed in the workflow before you commit the changes as this will format all changes accordingly
  • ❌ Typecheck: click on the failed workflow and you'll see exactly what the type issues are that you must address

@grgia grgia left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ikevin127 would you please final review

@ikevin127 ikevin127 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 LGTM

@melvin-bot
melvin-bot Bot requested a review from grgia May 5, 2026 23:44
@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 @grgia hello I'm concerned another merge conflicts might happen if we wait too long if everything is good can it be merged to main?

@ikevin127

Copy link
Copy Markdown
Contributor

@grgia Approved once again, everything seems 🟢 on workflows - could you please merge ? 🙌

@grgia

grgia commented May 7, 2026

Copy link
Copy Markdown
Contributor

Yep, running now

@grgia
grgia merged commit 6a38bfc into Expensify:main May 7, 2026
42 checks passed
@github-actions

github-actions Bot commented May 7, 2026

Copy link
Copy Markdown
Contributor

🚧 @grgia has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

OSBotify commented May 7, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

@abelhailefen

abelhailefen commented May 7, 2026 •

Copy link
Copy Markdown
Author

@ikevin127 I haven't gotten an invite on upwork. I've sent a proposal but it hasn't been accepted

@ikevin127

Copy link
Copy Markdown
Contributor

Don't worry about it, as I mentioned in the issue: after merge, PR must deploy to stging first, then production, and 7 day after production deploy the payment is issued if no regressions occured in the meantime as a result of the PR.

Automations will add payment due date on the issue once PR is deployed to production - when payment is due, you will get the offer and get paid.

This being your first PR, it took unexpectedly long to merge - but next ones should go smoothly.

@OSBotify

OSBotify commented May 8, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/grgia in version: 9.3.69-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

Yes, help site changes are needed. The RBR sorting prioritization introduced in this PR affects two documented features:

  1. Report preview carousel (Getting-Started-with-the-Spend-Page.md) — now surfaces expenses needing attention first
  2. Expense table in reports (Managing-Expenses-in-a-Report.md) — default Date/ascending sort now prioritizes expenses with violations, holds, missing fields, or receipt errors

I've created a draft PR with the documentation updates: #90016

@lanitochka17

Copy link
Copy Markdown

Deploy Blocker ##90063 was identified to be related to this PR.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/Beamanator in version: 9.3.69-18 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 hello do i need to do anything?

@ikevin127

Copy link
Copy Markdown
Contributor

@abelhailefen Yes, the initial PR caused a regression issue here, please review the comments I posted there regarding next steps and proceed with another follow-up PR to fix the regression issue:

@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 I'm going to fix the regression issue I wasn't getting the notification till now

@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 do I open a new PR how do I proceed?

@ikevin127

Copy link
Copy Markdown
Contributor

@abelhailefen Yes, you go to the regression issue here, checkout the issue to understand the bug that was missed in the initial PR and note the clarifying solution comment (at bottom) and proceed to implement a fix and when ready open a PR for that issue like you did for the initial issue.

@abelhailefen

Copy link
Copy Markdown
Author

@ikevin127 okay thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants