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: add missing title #13307

Merged
merged 25 commits into from
Feb 7, 2024
Merged

fix: add missing title #13307

merged 25 commits into from
Feb 7, 2024

Conversation

anikdhabal
Copy link
Contributor

@anikdhabal anikdhabal commented Jan 18, 2024

What does this PR do?

Fixes #13241
/claim #13241

Copy link

vercel bot commented Jan 18, 2024

@anikdhabal is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work 💎 Bounty A bounty on Algora.io labels Jan 18, 2024
Copy link
Contributor

github-actions bot commented Jan 18, 2024

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

@github-actions github-actions bot added 🙋🏻‍♂️help wanted Help from the community is appreciated 🧹 Improvements Improvements to existing features. Mostly UX/UI labels Jan 18, 2024
Copy link
Contributor

github-actions bot commented Jan 18, 2024

📦 Next.js Bundle Analysis for @calcom/web

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)
/settings/my-account/out-of-office 269.62 KB 457.76 KB 130.79% (🟢 -1.76%)
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.

@keithwillcode keithwillcode added the community Created by Linear-GitHub Sync label Jan 18, 2024
@keithwillcode keithwillcode added the ui area: UI, frontend, button, form, input label Jan 18, 2024
@@ -22,7 +22,8 @@ export default function AppsLayout({ children, actions, emptyStore, ...rest }: A

if (session.status === "loading") return <></>;
return (
<ShellMain {...rest} actions={actions?.("block")} hideHeadingOnMobile>
<ShellMain {...rest} actions={actions?.("block")} withoutSeo hideHeadingOnMobile>
<HeadSeo title="App Store" description="Connecting people, technology and the workplace." />
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we should use i18n here.

Copy link
Contributor

Choose a reason for hiding this comment

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

and other pages as well

Copy link
Contributor Author

@anikdhabal anikdhabal Jan 19, 2024

Choose a reason for hiding this comment

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

I was not using i18n, as @PeerRich suggested using English here.

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay

Copy link
Member

@hariombalhara hariombalhara Jan 20, 2024

Choose a reason for hiding this comment

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

I don't understand why we are passing withoutSeo to ShellMain? Doesn't ShellMain support for SEO work correctly?

It seems counterintuitive to me.

Copy link
Contributor Author

@anikdhabal anikdhabal Jan 21, 2024

Choose a reason for hiding this comment

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

yeah currently it is useless.

@@ -153,7 +153,8 @@ export default function Bookings() {
const [animationParentRef] = useAutoAnimate<HTMLDivElement>();

return (
<ShellMain hideHeadingOnMobile heading={t("bookings")} subtitle={t("bookings_description")}>
<ShellMain withoutSeo hideHeadingOnMobile heading={t("bookings")} subtitle={t("bookings_description")}>
Copy link
Member

Choose a reason for hiding this comment

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

It looks like ShellMain doesn't support adding HeadSeo at all(which seems like a bug that creeped in later). Shouldn't we simply support HeadSeo there and avoid import HeadSeo everywhere ShellMain is already used

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's pretty cool idea to support HeadSeo there and avoid import it everywhere.

Copy link
Member

@hariombalhara hariombalhara left a comment

Choose a reason for hiding this comment

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

Thanks @anikdhabal 🙏 Left some comments.

@anikdhabal
Copy link
Contributor Author

Thanks @anikdhabal 🙏 Left some comments.

Thanks for your review. Let me fix that quickly.

@keithwillcode keithwillcode added this to the v3.8 milestone Jan 20, 2024
@github-actions github-actions bot added the linear Sync Github Issue from community members to Linear.app label Jan 21, 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.

The title keeps changing back to Cal.com | Cal.com on other pages

Screen.Recording.2024-01-23.at.4.39.03.PM.mov

@anikdhabal
Copy link
Contributor Author

anikdhabal commented Jan 23, 2024

The title keeps changing back to Cal.com | Cal.com on other pages

Screen.Recording.2024-01-23.at.4.39.03.PM.mov

Thanks for the review. I've updated the code, and now everything is working fine.

@keithwillcode keithwillcode enabled auto-merge (squash) February 5, 2024 18:17
Copy link

vercel bot commented Feb 5, 2024

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 Feb 5, 2024 8:40pm

@keithwillcode
Copy link
Contributor

Looks like this one consistently fails tests

@anikdhabal
Copy link
Contributor Author

Looks like this one consistently fails tests

So what am I going to do now? Also, those tests are not related to the changes.

@keithwillcode
Copy link
Contributor

@anikdhabal No, no worries. We'll look into getting the tests fixed.

@anikdhabal
Copy link
Contributor Author

@anikdhabal No, no worries. We'll look into getting the tests fixed.

Thank you.

@Udit-takkar
Copy link
Contributor

this test "login flow user & logout using dashboard" is only failing in this PR. I see two sidebar when i run this E2E test locally on this branch.

Screenshot 2024-02-06 at 11 54 12 PM

@anikdhabal
Copy link
Contributor Author

this test "login flow user & logout using dashboard" is only failing in this PR. I see two sidebar when i run this E2E test locally on this branch.

Screenshot 2024-02-06 at 11 54 12 PM

Thanks for the review. I am on it.

@keithwillcode keithwillcode marked this pull request as draft February 7, 2024 00:00
auto-merge was automatically disabled February 7, 2024 00:00

Pull request was converted to draft

@anikdhabal
Copy link
Contributor Author

anikdhabal commented Feb 7, 2024

Hey @Udit-takkar @keithwillcode two Layout is visible in future version.

Screenshot 2024-02-08 002649
Screenshot 2024-02-08 002631

@anikdhabal
Copy link
Contributor Author

anikdhabal commented Feb 7, 2024

Screenshot 2024-02-08 010822
The reason for having two layouts in future mode is that we wrap the component with getLayout. Therefore, we either have to ensure that all components in future mode are wrapped with shellmain, or we have to make getLayout null there. So that we can use shell as a parent.

I will update the code by today and ensure that everything is perfect in both the default and future modes.

@anikdhabal
Copy link
Contributor Author

I've fixed the double layout issue.

@keithwillcode keithwillcode merged commit 97dcb2a into calcom:main Feb 7, 2024
30 of 37 checks passed
@anikdhabal
Copy link
Contributor Author

anikdhabal commented Feb 7, 2024

@keithwillcode finally. Thanks for your review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 Bounty claim 💎 Bounty A bounty on Algora.io community Created by Linear-GitHub Sync 🙋🏻‍♂️help wanted Help from the community is appreciated 🧹 Improvements Improvements to existing features. Mostly UX/UI linear Sync Github Issue from community members to Linear.app Low priority Created by Linear-GitHub Sync ⚡ Quick Wins A collection of quick wins/quick fixes that are less than 30 minutes of work ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-2974] Missing <title> on a bunch of pages.
4 participants