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

feat: Settings for dashboard theme that is separate from system #13779

Merged
merged 32 commits into from
Feb 21, 2024

Conversation

sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Feb 20, 2024

Took over from : #12633

Fixes: #11997 CAL-2761

Most of the credit goes to @swh00tw: I couldnt push changes to your PR #12633 so i just thought it'd be easier to push my own.

Loom: https://github.com/calcom/cal.com/assets/55134778/a3537270-654c-4370-a7f9-a9f9581e0381

@graphite-app graphite-app bot requested a review from a team February 20, 2024 10:34
Copy link
Contributor

github-actions bot commented Feb 20, 2024

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link.

Copy link

vercel bot commented Feb 20, 2024

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

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 21, 2024 0:41am
3 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 0:41am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 0:41am
qa ⬜️ Ignored (Inspect) Visit Preview Feb 21, 2024 0:41am

Copy link

graphite-app bot commented Feb 20, 2024

Graphite Automations

A Graphite automation took an action on this PR • (02/20/24)

1 reviewer was added based on Keith Williams's automation, 'Add consumer team as reviewer'

Copy link

deploysentinel bot commented Feb 20, 2024

Current Playwright Test Results Summary

✅ 447 Passing - ⚠️ 17 Flaky

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

(Last updated on 02/21/2024 01:00:52pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: b824845

Started: 02/21/2024 12:50:41pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking/selectQuestion.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Select Question and checkbox group Question Select required and checkbox group required
Retry 1Initial Attempt
0% (0) 0 / 235 runs
failed over last 7 days
6.38% (15) 15 / 235 runs
flaked over last 7 days
Booking With Phone Question and Each Other Question Booking With Select Question and Long text Question Select and Long text not required
Retry 1Initial Attempt
0.43% (1) 1 / 235 run
failed over last 7 days
8.94% (21) 21 / 235 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Collective event type Book a Collective event type
Retry 1Initial Attempt
0.45% (1) 1 / 220 run
failed over last 7 days
1.36% (3) 3 / 220 runs
flaked over last 7 days

📄   apps/web/playwright/login.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user can login & logout succesfully -- future login flow user & logout using dashboard
Retry 1Initial Attempt
0.43% (1) 1 / 230 run
failed over last 7 days
42.61% (98) 98 / 230 runs
flaked over last 7 days

📄   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 -- legacy user can add multiple organizer address
Retry 1Initial Attempt
0% (0) 0 / 236 runs
failed over last 7 days
3.81% (9) 9 / 236 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 8 Flakes

Top 1 Common Error Messages

null

8 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
-4.24% (-10) -10 / 236 runs
failed over last 7 days
58.90% (139) 139 / 236 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 1Initial Attempt
-113.08% (-121) -121 / 107 runs
failed over last 7 days
116.82% (125) 125 / 107 runs
flaked over last 7 days
Popup Tests should open Routing Forms embed on click
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when configured with 'auto' theme using Embed API
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe according to system theme when no theme is configured through Embed API
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Booker Profile Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days
Popup Tests Floating Button Popup Pro User - Configured in App with default setting of system theme should open embed iframe(Event Booking Page) with dark theme when configured with dark theme using Embed API
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days
Popup Tests prendered embed should be loaded and apply the config given to it
Retry 1Initial Attempt
-121.36% (-125) -125 / 103 runs
failed over last 7 days
121.36% (125) 125 / 103 runs
flaked over last 7 days

📄   apps/web/playwright/organization/across-org/across-org.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
user1NotMemberOfOrg1 is part of team1MemberOfOrg1 EventTypes listing should show correct link for user events and team1MemberOfOrg1's events
Retry 1Initial Attempt
0.42% (1) 1 / 238 run
failed over last 7 days
16.81% (40) 40 / 238 runs
flaked over last 7 days

📄   apps/web/playwright/profile.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Update Profile Can update a users email (verification enabled)
Retry 1Initial Attempt
15.79% (39) 39 / 247 runs
failed over last 7 days
48.99% (121) 121 / 247 runs
flaked over last 7 days
Update Profile Cannot update a users email when existing user has same email (verification enabled)
Retry 1Initial Attempt
1.63% (4) 4 / 246 runs
failed over last 7 days
50% (123) 123 / 246 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/inline.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Inline Iframe Inline Iframe - Configured with Dark Theme
Retry 1Initial Attempt
1.24% (3) 3 / 241 runs
failed over last 7 days
40.66% (98) 98 / 241 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Contributor

github-actions bot commented Feb 20, 2024

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

Seventy-eight 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)
/[user]/[type] 264.87 KB 453.11 KB 129.46% (🟢 -0.28%)
/[user]/[type]/embed 264.87 KB 453.11 KB 129.46% (🟢 -0.28%)
/apps 288.16 KB 476.4 KB 136.11% (🟡 +0.22%)
/apps/[slug] 306.18 KB 494.42 KB 141.26% (🟡 +0.30%)
/apps/[slug]/[...pages] 556.74 KB 744.97 KB 212.85% (🟡 +0.27%)
/apps/categories 266.05 KB 454.29 KB 129.80% (🟡 +0.25%)
/apps/categories/[category] 270.29 KB 458.53 KB 131.01% (🟡 +0.24%)
/apps/installed/[category] 290.04 KB 478.28 KB 136.65% (🟡 +0.30%)
/availability 435.88 KB 624.11 KB 178.32% (🟡 +0.22%)
/availability/[schedule] 362.39 KB 550.63 KB 157.32% (🟡 +0.23%)
/availability/troubleshoot 172.25 KB 360.49 KB 103.00% (🟢 -0.27%)
/bookings/[status] 325.91 KB 514.15 KB 146.90% (🟡 +0.22%)
/d/[link]/[slug] 264.7 KB 452.94 KB 129.41% (🟢 -0.28%)
/enterprise 266.43 KB 454.67 KB 129.90% (🟡 +0.26%)
/event-types 557.51 KB 745.75 KB 213.07% (🟡 +0.28%)
/event-types/[type] 433.65 KB 621.89 KB 177.68% (🟡 +0.21%)
/insights 484.96 KB 673.2 KB 192.34% (🟡 +0.23%)
/more 265.64 KB 453.88 KB 129.68% (🟡 +0.26%)
/org/[orgSlug]/[user]/[type] 265.06 KB 453.3 KB 129.51% (🟢 -0.27%)
/org/[orgSlug]/[user]/[type]/embed 265.08 KB 453.32 KB 129.52% (🟢 -0.28%)
/org/[orgSlug]/instant-meeting/team/[slug]/[type] 264.71 KB 452.95 KB 129.41% (🟢 -0.27%)
/org/[orgSlug]/team/[slug]/[type] 264.89 KB 453.13 KB 129.47% (🟢 -0.28%)
/settings/admin 272.36 KB 460.6 KB 131.60% (🟡 +0.25%)
/settings/admin/apps 284.29 KB 472.53 KB 135.01% (🟡 +0.30%)
/settings/admin/apps/[category] 284.25 KB 472.49 KB 135.00% (🟡 +0.30%)
/settings/admin/flags 276.29 KB 464.53 KB 132.72% (🟡 +0.30%)
/settings/admin/impersonation 272.66 KB 460.9 KB 131.68% (🟡 +0.26%)
/settings/admin/oAuth 284.33 KB 472.57 KB 135.02% (🟡 +0.24%)
/settings/admin/orgMigrations/_OrgMigrationLayout 266.59 KB 454.83 KB 129.95% (🟡 +0.68%)
/settings/admin/orgMigrations/moveTeamToOrg 274.25 KB 462.49 KB 132.14% (🟡 +0.24%)
/settings/admin/orgMigrations/moveUserToOrg 292.84 KB 481.08 KB 137.45% (🟡 +0.25%)
/settings/admin/orgMigrations/removeTeamFromOrg 274.02 KB 462.26 KB 132.07% (🟡 +0.25%)
/settings/admin/orgMigrations/removeUserFromOrg 274.03 KB 462.27 KB 132.08% (🟡 +0.24%)
/settings/admin/organizations 274.38 KB 462.62 KB 132.18% (🟡 +0.24%)
/settings/admin/organizations/[id]/edit 272.86 KB 461.1 KB 131.74% (🟡 +0.25%)
/settings/admin/users 275.06 KB 463.3 KB 132.37% (🟡 +0.25%)
/settings/admin/users/[id]/edit 366.88 KB 555.12 KB 158.61% (🟡 +0.30%)
/settings/admin/users/add 366.62 KB 554.86 KB 158.53% (🟡 +0.32%)
/settings/billing 272.7 KB 460.94 KB 131.70% (🟡 +0.29%)
/settings/developer/api-keys 276.9 KB 465.14 KB 132.90% (🟡 +0.22%)
/settings/developer/webhooks 276.82 KB 465.06 KB 132.87% (🟡 +0.23%)
/settings/developer/webhooks/[id] 277.85 KB 466.09 KB 133.17% (🟡 +0.21%)
/settings/developer/webhooks/new 277.9 KB 466.14 KB 133.18% (🟡 +0.22%)
/settings/my-account/appearance 288.63 KB 476.87 KB 136.25% (🟡 +0.27%)
/settings/my-account/calendars 283.93 KB 472.17 KB 134.90% (🟡 +0.31%)
/settings/my-account/conferencing 284.63 KB 472.87 KB 135.11% (🟡 +0.30%)
/settings/my-account/general 360.67 KB 548.91 KB 156.83% (🟡 +0.24%)
/settings/my-account/out-of-office 276.69 KB 464.93 KB 132.84% (🟡 +0.22%)
/settings/my-account/profile 409.57 KB 597.81 KB 170.80% (🟡 +0.32%)
/settings/organizations/[id]/about 151.82 KB 340.06 KB 97.16% (🟢 -0.25%)
/settings/organizations/[id]/add-teams 151.87 KB 340.11 KB 97.17% (🟢 -0.25%)
/settings/organizations/[id]/set-password 151.8 KB 340.04 KB 97.15% (🟢 -0.24%)
/settings/organizations/appearance 295.83 KB 484.07 KB 138.31% (🟡 +0.37%)
/settings/organizations/billing 272.74 KB 460.98 KB 131.71% (🟡 +0.29%)
/settings/organizations/general 353.21 KB 541.45 KB 154.70% (🟡 +0.24%)
/settings/organizations/members 445.91 KB 634.15 KB 181.19% (🟡 +0.26%)
/settings/organizations/new 151.83 KB 340.06 KB 97.16% (🟢 -0.25%)
/settings/organizations/profile 406.02 KB 594.25 KB 169.79% (🟡 +0.22%)
/settings/organizations/teams/other 273.41 KB 461.64 KB 131.90% (🟡 +0.24%)
/settings/organizations/teams/other/[id]/appearance 284.92 KB 473.15 KB 135.19% (🟡 +0.20%)
/settings/organizations/teams/other/[id]/members 279.87 KB 468.1 KB 133.74% (🟡 +0.23%)
/settings/organizations/teams/other/[id]/profile 478.14 KB 666.38 KB 190.39% (🟡 +0.32%)
/settings/security/impersonation 277.81 KB 466.05 KB 133.16% (🟡 +0.28%)
/settings/security/password 279.19 KB 467.43 KB 133.55% (🟡 +0.29%)
/settings/security/sso 282.85 KB 471.09 KB 134.60% (🟡 +0.31%)
/settings/security/two-factor-auth 281.39 KB 469.63 KB 134.18% (🟡 +0.21%)
/settings/teams 272.11 KB 460.35 KB 131.53% (🟡 +0.25%)
/settings/teams/[id]/appearance 284.9 KB 473.14 KB 135.18% (🟡 +0.21%)
/settings/teams/[id]/billing 272.74 KB 460.98 KB 131.71% (🟡 +0.29%)
/settings/teams/[id]/members 390.39 KB 578.63 KB 165.32% (🟡 +0.22%)
/settings/teams/[id]/profile 478.96 KB 667.2 KB 190.63% (🟡 +0.32%)
/settings/teams/[id]/sso 283.38 KB 471.61 KB 134.75% (🟡 +0.30%)
/team/[slug]/[type] 264.86 KB 453.1 KB 129.46% (🟢 -0.28%)
/team/[slug]/[type]/embed 264.89 KB 453.13 KB 129.46% (🟢 -0.27%)
/teams 265.85 KB 454.09 KB 129.74% (🟡 +0.26%)
/upgrade 266.08 KB 454.31 KB 129.80% (🟡 +0.26%)
/workflows 297.25 KB 485.49 KB 138.71% (🟡 +0.31%)
/workflows/[workflow] 410.24 KB 598.48 KB 170.99% (🟡 +0.30%)
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.

@github-actions github-actions bot added community Created by Linear-GitHub Sync Low priority Created by Linear-GitHub Sync osshack Submission for 2023 OSShack ui area: UI, frontend, button, form, input ✨ feature New feature or request 🙋🏻‍♂️help wanted Help from the community is appreciated labels Feb 20, 2024
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM. Great work @sean-brydon and @swh00tw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community Created by Linear-GitHub Sync consumer core area: core, team members only ✨ feature New feature or request 🙋🏻‍♂️help wanted Help from the community is appreciated Low priority Created by Linear-GitHub Sync ❗️ migrations contains migration files osshack Submission for 2023 OSShack ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-2761] select darkmode in app.cal.com without system settings
5 participants