Add copilot section to security page and add copilot#47353
Add copilot section to security page and add copilot#47353dangrous merged 105 commits intoExpensify:mainfrom
Conversation
|
@dangrous all done ✅ |
|
Awesome, I will look shortly once my internet is better and I can play around more! @fedirjh can you give it another look as well? |
|
@dangrous Can we make backend return Onyx data when we have an error? Currently we display this error when the request fails
|
|
it should be merged to account {
delegatedAccess {
delegates: [
{
email: abc@xyz.com,
errorFields: {addDelegate: "error message"},
}
]
}
} |
|
but definitely shouldn't block this PR |
Agree, apart from that, it looks good to me. |
|
@dangrous all yours!! |
dangrous
left a comment
There was a problem hiding this comment.
one outstanding issue with non-contact delegates, the modal doesn't close - but other than that we're good to go on my end! (And we can sort out any remaining bugs in the remaining PRs since it's still behind the beta.)
I will look into that backend error update, too, but agree that it shouldn't block.
src/pages/settings/Security/AddDelegate/DelegateMagicCodePage.tsx
Outdated
Show resolved
Hide resolved
@dangrous resolved! i ditched Screen.Recording.2024-09-10.at.23.54.15.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
| disabled={!!menuItemProps.disabled || isExecuting} | ||
| onPress={shouldUseSingleExecution ? singleExecution(menuItemProps.onPress) : menuItemProps.onPress} | ||
| /> | ||
| <OfflineWithFeedback |
There was a problem hiding this comment.
You forgot to move the key prop to this component so it prints an error in console now
There was a problem hiding this comment.
sorry i don't understand. OfflineWithFeedback should be passed key as a prop?
There was a problem hiding this comment.
nice catch, let me send a PR
| title={translate('delegate.role', role)} | ||
| description={translate('delegate.accessLevel')} | ||
| helperText={translate('delegate.roleDescription', role)} | ||
| onPress={() => Navigation.navigate(ROUTES.SETTINGS_DELEGATE_ROLE.getRoute(login, role))} |
There was a problem hiding this comment.
This caused this bug. We need to replace the route instead of pushing the new route to the top of the stack.
| onSelectRow={(option) => { | ||
| Navigation.navigate(ROUTES.SETTINGS_DELEGATE_CONFIRM.getRoute(login, option.value)); | ||
| }} |
There was a problem hiding this comment.
This caused
The checkmark should be displayed when back to access level page for the access level selected, see #55256


Details
Fixed Issues
$ #46925
PROPOSAL:
Tests
Pre-req: enable newDotCopilot beta on your account.
Pre-req: From other accounts, add your account as a copilot
Security page
three dot menuwon't be usable at this moment.Add copilotbutton.Add copilot
Offline add copilot
Offline tests
QA Steps
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))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
Screen.Recording.2024-09-06.at.02.27.55.mov
iOS: mWeb Safari
MacOS: Chrome / Safari
Screen.Recording.2024-09-06.at.21.25.37.mov
Screen.Recording.2024-08-29.at.16.07.27.mov
MacOS: Desktop