-
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
Copilot - No countdown and code requested message on magic code page when changing access level #55718
Comments
Triggered auto assignment to @JmillsExpensify ( |
🚨 Edited by proposal-police: This proposal was edited at 2025-01-24 13:48:38 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Copilot - No countdown and code requested message on magic code page when changing access level What is the root cause of that problem?We have not implemented the timer feature in BaseValidateCodeForm.tsx as we are doing here Lines 169 to 172 in 95cc648
What changes do you think we should make in order to solve the problem?
App/src/components/ValidateCodeActionModal/ValidateCodeForm/BaseValidateCodeForm.tsx Lines 238 to 240 in 95cc648
Lines 114 to 118 in 95cc648
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A as it is a UI change What alternative solutions did you explore? (Optional)We can create hook that returns remainingTime and a function that resets the timer following the same logic as the existing timer implementation.
And use Tests
|
🚨 Edited by proposal-police: This proposal was edited at 2025-01-24 17:25:44 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.There’s no countdown and "Code Requested" message displayed on the Magic Code page when changing the access level. What is the root cause of that problem?In UpdateDelegateMagicCodePage Component App/src/pages/settings/Security/AddDelegate/UpdateDelegateRole/UpdateDelegateMagicCodePage.tsx Line 22 in 264728f
We are using an independent ValidateCodeForm (src/pages/settings/Security/AddDelegate/UpdateDelegateRole/ValidateCodeForm/index.tsx), but the code to display the countdown timer has not been implemented App/src/pages/settings/Security/AddDelegate/UpdateDelegateRole/UpdateDelegateMagicCodePage.tsx Line 61 in 264728f
What changes do you think we should make in order to solve the problem?Note: In all other instances, we consistently use the ValidateCodeActionModal. Therefore, I suggest that in the UpdateDelegateMagicCodePage component, we also use ValidateCodeActionModal, as we’ve done in other places like DelegateMagicCodeModal, etc. What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?I believe this section is unnecessary What alternative solutions did you explore? (Optional)No |
|
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.89-2
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught on HybridApp, is this reproducible on New Expensify Standalone?: N/A
If this was caught during regression testing, add the test name, ID and link from TestRail: N/A
Email or phone of affected tester (no customers): applausetester+100106kh@applause.expensifail.com
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: User Settings
Action Performed:
Expected Result:
On magic code page when changing access level for existing copilot, it should display a countdown and "Code requested. Please check your device." message.
Actual Result:
On magic code page when changing access level for existing copilot, it does not display a countdown and "Code requested. Please check your device." message, which is not consistent with the magic code page in Step 6.
Workaround:
Unknown
Platforms:
Screenshots/Videos
bug.mp4
View all open jobs on GitHub
The text was updated successfully, but these errors were encountered: