Fix header border color when items are selected#89353
Fix header border color when items are selected#89353JS00001 merged 10 commits intoExpensify:mainfrom
Conversation
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Codecov Report✅ Changes either increased or maintained existing code coverage, great job!
|
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
| styles.mh0, | ||
| isPendingDelete && styles.cursorDisabled, | ||
| isLargeScreenWidth ? StyleUtils.getSearchTableRowPressableStyle(!!isLastItem, item.isSelected, {vertical: variables.tableRowPaddingVertical}) : styles.noBorderRadius, | ||
| !isLargeScreenWidth && !isLastItem && {...styles.borderBottom, borderColor: item.isSelected ? theme.buttonHoveredBG : theme.border}, |
There was a problem hiding this comment.
❌ CONSISTENCY-3 (docs)
The inline style {...styles.borderBottom, borderColor: item.isSelected ? theme.buttonHoveredBG : theme.border} is duplicated across multiple list item components (ExpenseReportListItem, TransactionListItem, TransactionGroupListItem, TransactionGroupListExpanded, TransactionItemRow, MoneyRequestReportTransactionList). The same borderColor conditional logic already exists in getSearchTableRowPressableStyle in src/styles/utils/index.ts.
Extract a shared style utility (e.g., getSelectedBorderColor(isSelected) or getBottomBorderStyle(isSelected)) in StyleUtils and reuse it across all these components instead of duplicating the conditional border color logic inline.
Reviewed at: b4afeb9 | Please rate this suggestion with 👍 or 👎 to help us improve! Reactions are used to monitor reviewer efficiency.
There was a problem hiding this comment.
shared style utility added.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b4afeb94b2
ℹ️ 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".
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
🚧 @shawnborton has triggered a test Expensify/App build. You can view the workflow run here. |
This comment has been minimized.
This comment has been minimized.
bump ^ |
PR ReviewOverall: This PR looks solid. The approach of extracting What the PR doesWhen table rows are selected, borders between rows now change color from Observations
CI StatusThe only failing check is |
|
@Krishna2323 can you fix those two issues? Then we can merge this |
|
Codex Review: Didn't find any major issues. 🎉 ℹ️ About Codex in GitHubCodex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
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". |
Possible RegressionsI investigated four areas of this PR for potential regressions. Two are clean, two deserve attention. 1.
|
|
conflicts too @Krishna2323 |
|
|
5bb6245 to
e350b5b
Compare
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
Conflicts resolved and checklist completed. Failing test isn't related. |
Signed-off-by: krishna2323 <belivethatkg@gmail.com>
|
🚧 @JS00001 has triggered a test Expensify/App build. You can view the workflow run here. |
|
🧪🧪 Use the links below to test this adhoc build on Android, iOS, and Web. Happy testing! 🧪🧪
|
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/JS00001 in version: 9.3.66-0 🚀
|
|
No help site changes required. This PR (#89353) is a UI-only fix that corrects the border color between table rows when transactions are selected on the Search page and Report details page. The changes are purely visual/styling (adding a |
|
Deploy Blocker ##89527 was identified to be related to this PR. |

Explanation of Change
Fixed Issues
$ #89066
PROPOSAL:
Tests
Offline tests
QA Steps
Same as tests
Verify that no errors appear in the JS console
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectioncanBeMissingparam foruseOnyxtoggleReportand notonIconClick)src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))npm run compress-svg)Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch 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_hybrid.mp4
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_hybrid.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web_chrome.mp4