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

chore: upgrade storybook 7.6.3 + use @storybook/nextjs #12673

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Conversation

ThyMinimalDev
Copy link
Contributor

@ThyMinimalDev ThyMinimalDev commented Dec 4, 2023

What does this PR do?

Upgrade storybook to latest version + use @storybook/nextjs + fix breaking changes

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • Chore (refactoring code, technical debt, workflow improvements)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How should this be tested?

  • run storybook in local

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Copy link

vercel bot commented Dec 4, 2023

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

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 10:49am
cal 🔄 Building (Inspect) Visit Preview 💬 Add feedback Dec 4, 2023 10:49am
dev ❌ Failed (Inspect) Dec 4, 2023 10:49am
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
ai ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 10:49am
cal-demo ⬜️ Ignored (Inspect) Dec 4, 2023 10:49am
qa ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 10:49am
ui ⬜️ Ignored (Inspect) Visit Preview Dec 4, 2023 10:49am

Copy link
Contributor

github-actions bot commented Dec 4, 2023

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

Copy link
Contributor

github-actions bot commented Dec 4, 2023

📦 Next.js Bundle Analysis for @calcom/web

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

Thirteen 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)
/apps/[slug]/[...pages] 543.89 KB 707.49 KB 202.14% (🟡 +0.32%)
/org/[orgSlug] 228.23 KB 391.83 KB 111.95% (🟡 +0.38%)
/org/[orgSlug]/[user] 234.77 KB 398.37 KB 113.82% (🟡 +0.38%)
/org/[orgSlug]/[user]/embed 234.79 KB 398.39 KB 113.83% (🟡 +0.38%)
/org/[orgSlug]/embed 228.24 KB 391.84 KB 111.95% (🟡 +0.39%)
/org/[orgSlug]/team/[slug] 228.23 KB 391.83 KB 111.95% (🟡 +0.39%)
/settings/organizations/teams/other/[id]/profile 458.3 KB 621.9 KB 177.68% (🟡 +0.39%)
/settings/security/sso 261.94 KB 425.54 KB 121.58% (🟡 +0.32%)
/settings/teams/[id]/profile 459.12 KB 622.72 KB 177.92% (🟡 +0.38%)
/settings/teams/[id]/sso 262.46 KB 426.06 KB 121.73% (🟡 +0.32%)
/team/[slug] 228.19 KB 391.79 KB 111.94% (🟡 +0.38%)
/team/[slug]/embed 228.23 KB 391.83 KB 111.95% (🟡 +0.38%)
/video/[uid] 245.86 KB 409.46 KB 116.99% (🟡 +0.38%)
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.

Copy link

deploysentinel bot commented Dec 4, 2023

Current Playwright Test Results Summary

✅ 348 Passing - ⚠️ 10 Flaky

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

(Last updated on 12/04/2023 10:15:40am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 982f315

Started: 12/04/2023 10:07:45am UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.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
Event Types tests user -- future Different Locations Tests Can remove location from multiple locations that are saved
Retry 1Initial Attempt
0% (0) 0 / 322 runs
failed over last 7 days
2.48% (8) 8 / 322 runs
flaked over last 7 days
Event Types tests user -- legacy enabling recurring event comes with default options
Retry 2Retry 1Initial Attempt
0.62% (2) 2 / 321 runs
failed over last 7 days
10.59% (34) 34 / 321 runs
flaked over last 7 days

📄   apps/web/playwright/teams.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
Teams - NonOrg Can create a private team
Retry 1Initial Attempt
0% (0) 0 / 330 runs
failed over last 7 days
24.24% (80) 80 / 330 runs
flaked over last 7 days
Teams - Org Can create teams via Wizard
Retry 1Initial Attempt
3.33% (11) 11 / 330 runs
failed over last 7 days
11.82% (39) 39 / 330 runs
flaked over last 7 days

📄   apps/web/playwright/team/team-invitation.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Team Invitation (non verified)
Retry 1Initial Attempt
1.83% (6) 6 / 328 runs
failed over last 7 days
28.96% (95) 95 / 328 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 login flow user & logout using dashboard
Retry 1Initial Attempt
0% (0) 0 / 318 runs
failed over last 7 days
5.97% (19) 19 / 318 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.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
Popup Tests should be able to reschedule
Retry 1Initial Attempt
5.72% (19) 19 / 332 runs
failed over last 7 days
90.96% (302) 302 / 332 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
2.41% (8) 8 / 332 runs
failed over last 7 days
76.81% (255) 255 / 332 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Organization should be able to create an organization and complete onboarding
Retry 1Initial Attempt
14.46% (48) 48 / 332 runs
failed over last 7 days
66.27% (220) 220 / 332 runs
flaked over last 7 days

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

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking With Phone Question and Each Other Question Booking With Phone Question and Address Question Phone required and Address not required
Retry 1Initial Attempt
1.55% (5) 5 / 322 runs
failed over last 7 days
4.04% (13) 13 / 322 runs
flaked over last 7 days

View Detailed Build Results


@ThyMinimalDev ThyMinimalDev added ⬆️ dependencies Pull requests that update a dependency file ui area: UI, frontend, button, form, input and removed core area: core, team members only admin devops labels Dec 4, 2023
@@ -1,4 +1,7 @@
import { TooltipProvider } from "@radix-ui/react-tooltip";
import {
Tooltip,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

import was missing

Comment on lines +30 to +34
parameters={{
nextjs: {
appDirectory: true,
},
}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

specify that this component uses features from next.js 13+ imported from next/navigation

Comment on lines +25 to +29
parameters={{
nextjs: {
appDirectory: true,
},
}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

specify that this component uses features from next.js 13+ imported from next/navigation

Comment on lines +56 to +60
parameters={{
nextjs: {
appDirectory: true,
},
}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

specify that this component uses features from next.js 13+ imported from next/navigation

@@ -74,13 +70,15 @@ export const Template = (args) => <Calendar {...args} />;
},
}}>
{({ ...args }) => (
<TooltipProvider>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

calendar uses tooltips

Comment on lines +27 to +31
parameters={{
nextjs: {
appDirectory: true,
},
}}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

specify that this component uses features from next.js 13+ imported from next/navigation

userEvent.type(colorInput, newColorValue);
});

await act(async () => userEvent.type(colorInput, newColorValue));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fix flaky test

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this wasn't awaiting properly for the typing event to be over

Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Looks good to me, nice improvement over what was.

@emrysal emrysal merged commit 80b92b5 into main Dec 4, 2023
41 of 42 checks passed
@emrysal emrysal deleted the upgrade-storybook branch December 4, 2023 11:06
jakazzy pushed a commit to jakazzy/cal.com that referenced this pull request Dec 5, 2023
* chore: upgrade storybook 7.6.3 + use @storybook/nextjs

* fix: color picker tests
hbjORbj pushed a commit to codemod-com/cal.com-demo that referenced this pull request Dec 21, 2023
* chore: upgrade storybook 7.6.3 + use @storybook/nextjs

* fix: color picker tests
haranrk pushed a commit to haranrk/cal.com that referenced this pull request Jan 4, 2024
* chore: upgrade storybook 7.6.3 + use @storybook/nextjs

* fix: color picker tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⬆️ dependencies Pull requests that update a dependency file ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants