-
Notifications
You must be signed in to change notification settings - Fork 3.2k
[CP Staging] Align primary/search action logic #62237
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
Conversation
@hoangzinh 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] |
Somehow, the unit test and prettier are failing @luacmartins |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-05-20.at.00.21.55.android.movAndroid: mWeb ChromeScreen.Recording.2025-05-20.at.00.24.53.android.chrome.moviOS: HybridAppiOS: mWeb SafariScreen.Recording.2025-05-20.at.00.32.15.ios.safari.movMacOS: DesktopScreen.Recording.2025-05-20.at.00.17.10.desktop.mov |
Can you test your fix again? @luacmartins It still shows "Submit" button for me, but it's gone when I turn on Workflow and turn off it. Screen.Recording.2025-05-17.at.16.32.10.mov |
I fixed tests and prettier. @hoangzinh the fix seems to be working for me Screen.Recording.2025-05-19.at.8.31.34.AM.mov |
Let me test again. Btw, there is a failed unit test |
@luacmartins I still see "Submit" button in reports view. I found that my workspace is auto created with Lines 493 to 496 in e65db2e
Screen.Recording.2025-05-19.at.21.57.02.mov |
Is it related to email domain? |
@hoangzinh ah yes, sorry that is still waiting a deploy. It should be deployed today. |
@hoangzinh the BE changes should be deployed. Please test again |
Was it deployed @luacmartins. I can see the "View" btn right now. |
Haha we just posted at the same time. Yes, the BE changes are deployed |
@luacmartins I tested on most platforms, but I had a problem with IOS build. However, I believe it's a cross-platform fix and given it's a DB fix. Thus, I will give a green light here. |
@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] |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Align primary/search action logic (cherry picked from commit e240fd8) (cherry-picked to staging by arosiclair)
🚀 Cherry-picked to staging by https://github.com/arosiclair in version: 9.1.46-10 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
Performance Comparison Report 📊 (1/3)Significant Changes To Duration
Show details
|
Performance Comparison Report 📊 (2/3)Meaningless Changes To Duration (1/2)Show entries
Show details
|
Performance Comparison Report 📊 (3/3)Meaningless Changes To Duration (2/2)Show entries
Show details
|
@Expensify/mobile-deployers 📣 Please look into this performance regression as it's a deploy blocker. |
@luacmartins @hoangzinh @srikarparsi Original issue is not reproducible anymore, but now, the "View" button that is visible on expense preview on chat, is not seen on "Reports". No button at all, can be seen on preview of the expense on "Reports". Is this expected fix? Button.mp4 |
@mvtglobally yes, that's expected. We don't show the View button on mobile |
Explanation of Change
The logic in
getAction
for Search will eventually be replaced bygetReportPreviewAction
. In the meantime though, we need to align the logic in both functions so they behave similarly. This PR adds a check for manual submit being enabledFixed Issues
$ #62152
Tests
Offline tests
N/A
QA Steps
Same as tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectioncanBeMissing
param foruseOnyx
toggleReport
and notonIconClick
)src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Screen.Recording.2025-05-16.at.1.06.57.PM.mov
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop