Skip to content

fix: disable 2FA switch for non CAL auth identity providers#8021

Merged
PeerRich merged 5 commits intomainfrom
disable-2fa
Apr 2, 2023
Merged

fix: disable 2FA switch for non CAL auth identity providers#8021
PeerRich merged 5 commits intomainfrom
disable-2fa

Conversation

@G3root
Copy link
Copy Markdown
Contributor

@G3root G3root commented Mar 30, 2023

What does this PR do?

after:

Screenshot 2023-03-30 08:10:33

Type of change

  • Bug fix (non-breaking change which fixes an issue)

@G3root G3root requested a review from a team March 30, 2023 02:41
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
cal ❌ Failed (Inspect) Apr 2, 2023 10:22am
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 2, 2023 10:22am

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 30, 2023

📦 Next.js Bundle Analysis

This analysis was generated by the next.js bundle analysis action 🤖

🎉 Global Bundle Size Decreased

Page Size (compressed)
global 233.32 KB (-1 B)
Details

The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!

Three Pages Changed Size

The following pages changed size from the code in this PR compared to its base branch:

Page Size (compressed) First Load % of Budget (350 KB)
/booking/[uid] 123.63 KB 356.96 KB 101.99% (+/- <0.01%)
/event-types/[type] 383.09 KB 616.42 KB 176.12% (+/- <0.01%)
/settings/security/two-factor-auth 161.83 KB 395.15 KB 112.90% (🟡 +0.02%)
Details

Only the gzipped size is provided here based on an expert tip.

First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.

Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis

The "Budget %" column shows what percentage of your performance budget the First Load total takes up. For example, if your budget was 100kb, and a given page's first load size was 10kb, it would be 10% of your budget. You can also see how much this has increased or decreased compared to the base branch of your PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this. If you see "+/- <0.01%" it means that there was a change in bundle size, but it is a trivial enough amount that it can be ignored.

@deploysentinel
Copy link
Copy Markdown

deploysentinel bot commented Mar 30, 2023

Current Playwright Test Results Summary

✅ 66 Passing - ⚠️ 2 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 04/02/2023 10:30:53am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 4dff27b

Started: 04/02/2023 10:22:30am UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user can add multiple organizer address
Retry 2Retry 1Initial Attempt
2.03% (3) 3 / 148 runs
failed over last 7 days
32.43% (48) 48 / 148 runs
flaked over last 7 days

📄   apps/web/playwright/booking-pages.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
pro user Can cancel the recently created booking and rebook the same timeslot
Retry 1Initial Attempt
2.91% (5) 5 / 172 runs
failed over last 7 days
2.33% (4) 4 / 172 runs
flaked over last 7 days

View Detailed Build Results


{!isCalProvider && (
<Alert
severity="neutral"
message="Two-Factor authentication can be enabled only for email and password authentication."
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

approved but we should really translate this :)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

done :)


if (isLoading) return <SkeletonLoader />;

const isCalProvider = user?.identityProvider === "CAL";
Copy link
Copy Markdown
Member

@PeerRich PeerRich Apr 2, 2023

Choose a reason for hiding this comment

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

NIT: will we need this in the future? maybe worth moving into lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants