fix undelete button background in selection mode#88076
Conversation
|
@srikarparsi 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] |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 4b8139216e
ℹ️ 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".
|
|
||
| const text = translate(actionTranslationsMap[action]); | ||
|
|
||
| const buttonInnerStyles = isSelected ? styles.buttonDefaultSelected : {}; |
There was a problem hiding this comment.
Preserve success styling for selected action buttons
This applies buttonDefaultSelected for every selected row, not just UNDELETE, which changes the visual state of other actions (e.g., submit/approve/done/export) from their semantic success style to the neutral selected background. In Button, innerStyles are merged after success/danger styles, so the new selected style wins and overrides the green success background in multi-select scenarios. This introduces a UI regression for non-undelete actions whenever isSelected is true.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
so the new selected style wins and overrides the green success background in multi-select scenarios.
@jnowakow Yeah.. That's a genuine concern. Not sure if it is discussed somewhere but did we agree somewhere not to use success style for undelete?
There was a problem hiding this comment.
There was discussion about it: https://github.com/Expensify/Expensify/issues/608639#issuecomment-4035114542 and I think conclusion was not to treat undelete as success action. cc @trjExpensify
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.
|
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppTested ios hybrid version. Android: mWeb ChromeTested mweb safari iOS: HybridApp88076-ios-hybrid-001.mp4iOS: mWeb Safari88076-mweb-safari-001.mp4MacOS: Chrome / Safari88076-web-chrome-001.mp4 |
rojiphil
left a comment
There was a problem hiding this comment.
Thanks @jnowakow for the update to PR.
@luacmartins Changes LGTM and works well.
All yours now.
|
🚧 @luacmartins 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/luacmartins in version: 9.3.61-0 🚀
Bundle Size Analysis (Sentry): |
|
No help site changes required. This PR is a visual bug fix that corrects the background color of the "Undelete" button when in bulk-selection mode. It doesn't change any user-facing features, workflows, terminology, or navigation paths that would be documented on the help site. |
|
🚀 Deployed to production by https://github.com/marcaaron in version: 9.3.61-4 🚀
|

Explanation of Change
Fix undelete button background in selection mode
Fixed Issues
$ #88037
PROPOSAL: N/A
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari