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

fix: flash of grey in event types single page #8056

Merged
merged 3 commits into from
Apr 3, 2023
Merged

Conversation

G3root
Copy link
Contributor

@G3root G3root commented Apr 3, 2023

What does this PR do?

before:

Screencast.2023-04-03.14.08.22.webm

after:

Screencast.2023-04-03.14.06.39.webm

Type of change

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

@G3root G3root requested a review from a team April 3, 2023 08:42
@vercel
Copy link

vercel bot commented Apr 3, 2023

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

Name Status Preview Comments Updated (UTC)
cal ❌ Failed (Inspect) Apr 3, 2023 8:44am
ui ✅ Ready (Inspect) Visit Preview Apr 3, 2023 8:44am

} catch (err) {
throw err;
}
await ssr.viewer.eventTypes.get.prefetch({ id: typeParam });
Copy link
Contributor Author

Choose a reason for hiding this comment

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

prefetch query in serverSide props

@@ -366,9 +364,9 @@ const EventTypePage = (props: EventTypeSetupProps) => {
};

const EventTypePageWrapper = (props: inferSSRProps<typeof getServerSideProps>) => {
const { data, isLoading } = trpc.viewer.eventTypes.get.useQuery({ id: props.type });
if (isLoading || !data) return null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

data is present because we prefetch the query in the server side props.

description?: string | null;
}

const DescriptionEditor = (props: DescriptionEditorProps) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

to fix hydration errors

@github-actions
Copy link
Contributor

github-actions bot commented Apr 3, 2023

📦 Next.js Bundle Analysis

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

One Page Changed Size

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

Page Size (compressed) First Load % of Budget (350 KB)
/event-types/[type] 383.06 KB 616.41 KB 176.12% (🟡 +0.01%)
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

deploysentinel bot commented Apr 3, 2023

Current Playwright Test Results Summary

✅ 66 Passing - ⚠️ 1 Flaky

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

(Last updated on 04/03/2023 09:01:42am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: 14ae213

Started: 04/03/2023 08:56:49am UTC

⚠️ Flakes

📄   packages/app-store/routing-forms/playwright/tests/basic.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Routing Forms Seeded Routing Form Router URL should work
Retry 1Initial Attempt
0% (0) 0 / 145 runs
failed over last 7 days
8.28% (12) 12 / 145 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Member

@sean-brydon sean-brydon left a comment

Choose a reason for hiding this comment

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

Nice! That flash of grey really annoyed me.

Tested locally works well :)

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.

Checked it out on local and looks to work, nice work 🙏

@emrysal emrysal merged commit 53e52a0 into main Apr 3, 2023
@emrysal emrysal deleted the fix-flash-in-event-types branch April 3, 2023 12:33
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.

None yet

3 participants