Skip to content
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

[Seedless Onboarding] QA fixes #2721

Merged
merged 11 commits into from
Nov 1, 2023
Merged

[Seedless Onboarding] QA fixes #2721

merged 11 commits into from
Nov 1, 2023

Conversation

usame-algan
Copy link
Member

What it solves

Part of #2452

How this PR fixes it

  • Adjusts wording of the tooltip if social login is not supported
  • Removes the overview widget on the review screen of safe creation
  • Shows a loading state when enabling all notifications
  • Doesn't navigate back to the welcome page if there is a pending safe
  • Adds the Security&Login page to the global preferences navigation
  • Adds an orange indicator to the account center if mfa is not enabled
  • Fixes the padding issue in the header

Screenshots

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

Copy link

github-actions bot commented Oct 31, 2023

Branch preview

⏳ Deploying a preview site...

Copy link

github-actions bot commented Oct 31, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link

github-actions bot commented Oct 31, 2023

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements
75.2% (-0.01% 🔻)
9990/13284
🔴 Branches
49.65% (-0.02% 🔻)
2036/4101
🔴 Functions 57.68% 1487/2578
🟡 Lines
76.75% (-0.02% 🔻)
9035/11772
Show files with reduced coverage 🔻
St.
File Statements Branches Functions Lines
🟡
... / index.tsx
72.55% (-1.68% 🔻)
58.33% (-3.57% 🔻)
53.33%
73.2% (-1.8% 🔻)
🟢
... / index.tsx
100%
30% (-3.33% 🔻)
100% 100%

Test suite run success

1094 tests passing in 152 suites.

Report generated by 🧪jest coverage report action from 8a40409

// Jump to connect wallet step if there is no wallet and no pending Safe
if (!wallet) {
// Jump to the welcome page if there is no wallet and no pending Safe
if (!wallet && !pendingSafe) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has no effect because the above condition returns if pendingSafe is defined.
The new test case also passes without this.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this also doesn't fix the original issue when reloading the page since both wallet and pendingSafe are undefined at the start so the user always gets redirected back.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After discussion I have reverted this change again. We could also remove the hook from the status screen but I think currently it does no harm.

@@ -39,6 +39,20 @@ describe('useSyncSafeCreationStep', () => {
expect(mockPushRoute).toHaveBeenCalledWith({ pathname: AppRoutes.welcome.index, query: undefined })
})

it('should not go to the first step if no wallet is connected but there is a pending safe', async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test case is a duplicate of "should go to the fourth step if there is a pending safe"
We could add the expectation not to call mockPushRoute to that test case.

Copy link
Member

@schmanu schmanu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@usame-algan usame-algan merged commit f262276 into web3authcoresdk Nov 1, 2023
2 of 6 checks passed
@usame-algan usame-algan deleted the qa-fixes branch November 1, 2023 14:36
@github-actions github-actions bot locked and limited conversation to collaborators Nov 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants