-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Add copilot section to security page and add copilot #47353
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!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's do it!
✋ 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry i don't understand. OfflineWithFeedback should be passed key
as a prop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused this bug. We need to replace the route instead of pushing the new route to the top of the stack.
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 menu
won't be usable at this moment.Add copilot
button.Add copilot
Offline add copilot
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.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
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