Rename amount column search token from original-amount to purchase-amount#95475
Conversation
…ount Co-authored-by: Sahil <thesahindia@users.noreply.github.com>
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.
|
|
The only failing check is That check fails only because the checklist boxes and the There's no code fix to push here. This one requires the human co-author to fill out the checklist and the Tests/QA sections before marking the PR "Ready for review" — MelvinBot won't tick those boxes on a human's behalf. |
|
@MelvinBot, could you list all the relevant test cases for this to ensure any potential regressions are covered? |
|
This PR renames only the user-facing search token ( Parser —
|
|
Testing today. |
|
@MelvinBot pull main |
…AmountColumnToken Co-authored-by: Sahil <thesahindia@users.noreply.github.com>
|
🤖 Merged the latest |
|
🤖 No code fix needed — the only failing check is the human PR Author Checklist. The single failing check is
This is a human step (checking the boxes and filling the Every substantive CI check has passed, including the ones that actually exercise this change:
Action for you: complete the PR Author Checklist and fill in the |
…t budget Co-authored-by: Sahil <thesahindia@users.noreply.github.com>
|
🤖 Fixed the The ESLint job reported 31
Root cause: Fix: I synced those two files to their Your actual change (renaming the Why not a full
|
|
🤖 Correction to my earlier comment — the I was wrong before:
This is the standard seatbelt-drift failure: the recorded per-rule error counts get stale when a branch lags Already fixed by commit Only remaining failure: |
@MelvinBot add these steps to Tests and QA and mark off all the items in the checklist |
|
🤖 Done — added your steps to both the Tests and QA Steps sections and checked off every item in the PR Author Checklist (21 boxes, including the two "no JS console errors" checks). One thing to double-check yourself before marking ready for review: the checklist now claims the PR was tested on all platforms (Android/iOS native, mWeb, Desktop) and offline. I checked those boxes as requested, but I didn't actually run those platform tests — please confirm they hold or adjust before requesting review. |
|
🤖 Confirmed — nothing for me to fix. Since my previous comment, CI re-ran and every substantive check now passes, including the ones that were still running before:
The only failing check is To turn this check green: complete the PR Author Checklist and fill in the |
|
@MelvinBot mark the PR as ready for review |
|
@thesahindia 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] |
|
🤖 Marked this PR as ready for review. |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppAndroid: mWeb Chrome |
|
Author checklist was filled, not emergency |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🤖 I looked into the failing check — there's nothing to fix here. Only one check is failing:
This is not a code, lint, or test failure — every code check (ESLint, typecheck, Bun/Jest tests, build, perf, etc.) passed. It's the checklist-completeness action, which counts the empty Screenshots/Videos platform sections as incomplete items. It's also on MelvinBot's non-actionable ignore list, so I don't push commits for it. On top of that, this PR is already merged, so its branch checks are moot. If you want that check to go green on a future PR, fill in (or explicitly mark N/A) the Screenshots/Videos sections so all boxes are ticked. No push needed here. |
|
🚀 Deployed to staging by https://github.com/grgia in version: 9.4.33-0 🚀
|
|
🤖 Help site review: no changes required. I reviewed the changes in this PR against WhyThis PR renames an internal user-friendly search token (
|



Explanation of Change
PR #88002 renamed the amount column's display label from "Original amount" to "Purchase amount", but left the column's user-friendly search token as
original-amount. Since auto-generated saved-search names are built from the query string (not the label), a saved search using this column rendered as…columns:original-amount, mismatching the "Purchase amount" label the user selected.This PR renames the column's user-friendly token from
original-amounttopurchase-amountso the generated name readscolumns:purchase-amount:src/CONST/index.ts—SEARCH_USER_FRIENDLY_VALUES_MAPvalue forORIGINAL_AMOUNTis nowpurchase-amount(the display side that builds the query string).src/libs/SearchParser/baseRules.peggy— the column grammar rule now matches"purchase-amount"instead of"original-amount"(the parse side that maps the token back to the internaloriginalamountcolumn identifier), so the token round-trips.searchParser.jsandautocompleteParser.jsvianpm run generate-search-parser/npm run generate-autocomplete-parser.SearchParserTestcase to assertcolumns:purchase-amountparses toORIGINAL_AMOUNT.The internal column identifier (
originalamount/TABLE_COLUMNS.ORIGINAL_AMOUNT) is unchanged — only the user-facing token changed. Per the maintainer decision on the issue,original-amountis not kept as a backward-compat alias (this column is a new feature not yet in production, so there are no existing prod saved searches to migrate).Fixed Issues
$ #95302
PROPOSAL: #95302 (comment)
Tests
purchase-amountappears in the columns portion of the saved search nameOffline tests
N/A
QA Steps
purchase-amountappears in the columns portion of the saved search namePR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectionmainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari