Add delegate access restriction checks to search page actions#75821
Add delegate access restriction checks to search page actions#75821Gonals merged 13 commits intoExpensify:mainfrom
Conversation
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.
|
|
@DylanDylann 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] |
|
@DylanDylann |
trjExpensify
left a comment
There was a problem hiding this comment.
Did we get @jamesdeanexpensify eyes on this copy?
As it's specific to the limited access type, I feel like that should be explained.
Suggestion:
Not so fast...
As a copilot with limited access, you can't take this action. Sorry!
|
That sounds good to me! |
|
@trjExpensify The copy in the modal isn't the new copy, It was added here. Should we update it again in this PR? |
|
Oh right hm, so this same modal shows for a restricted action for a full access Copilot as well? |
|
Yeah, we use the same modal |
|
resolved conflicts with main branch here. fyi cc @DylanDylann @trjExpensify |
Reviewer Checklist
Screenshots/VideosAndroid: HybridAppScreen.Recording.2025-12-08.at.16.11.14.movAndroid: mWeb ChromeScreen.Recording.2025-12-08.at.16.05.51.moviOS: HybridAppScreen.Recording.2025-12-08.at.16.07.26.moviOS: mWeb SafariScreen.Recording.2025-12-08.at.16.05.14.movMacOS: Chrome / SafariScreen.Recording.2025-12-08.at.16.03.28.mov |
|
@mukhrr The code change looks fine. But there is one place that doesn't work for me. Could you please check? Screen.Recording.2025-12-01.at.15.00.05.mov |
|
The similar case (with another action) Screen.Recording.2025-12-01.at.15.11.14.mov |
|
@DylanDylann this is ready |
|
We have some conflicts |
|
@Gonals done |
|
✋ 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/Gonals in version: 9.2.78-0 🚀
|
[CP Staging] Revert "Merge pull request #75821 from mukhrr/fix/75171"
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.78-8 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.79-0 🚀
|
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.2.81-0 🚀
|
|
@nlemma @yuwenmemon I am a bit confused here. Now should I create a regression PR that fixes failing issue #77609?! |
|
Addressed your question here: https://expensify.slack.com/archives/C01GTK53T8Q/p1765983210912239?thread_ts=1765635425.854359&cid=C01GTK53T8Q You can open a new PR that re-introduces your PR with the additional bug fixes on top of it. Thanks again! |
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.2.81-5 🚀
|
Explanation of Change
Fixed Issues
$ #75171
PROPOSAL: #75171 (comment)
Tests
Precondition:
User A has added User B as copilot with Limited access level.
→ Verify Copilot is presented with "Not so fast" modal because copilot with Limited access level cannot perform approval, payment, reject and hold action on the expenses.
→ Verify Copilot is presented with "Not so fast" modal
→ Verify Copilot is presented with "Not so fast" modal
→ Verify Copilot is presented with "Not so fast" modal
Offline tests
QA Steps
The same as tests.
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_native.mp4
Android: mWeb Chrome
android_mWeb.mp4
iOS: Native
ios_native.mp4
iOS: mWeb Safari
ios_mWeb.mp4
MacOS: Chrome / Safari
web.mp4
MacOS: Desktop
desktop.mp4