Skip to content

feat: add sylaps into the app-store in video category#6728

Merged
hariombalhara merged 21 commits intocalcom:mainfrom
Sylaps:feat/app-store-sylaps
Apr 4, 2023
Merged

feat: add sylaps into the app-store in video category#6728
hariombalhara merged 21 commits intocalcom:mainfrom
Sylaps:feat/app-store-sylaps

Conversation

@hthetiot
Copy link
Copy Markdown
Contributor

@hthetiot hthetiot commented Jan 26, 2023

What does this PR do?

Add Sylaps (aka https://Sylaps.com) video conference service to the Apps.

Screenshot 2023-01-26 at 14 20 02

Type of change

  • New feature (non-breaking change which adds functionality)

How should this be tested?

  • Visit Apps
  • Install Sylaps
  • Create a event
  • Set location to Sylaps
  • Test the generated sylaps link

Changes by @hariombalhara

  • imageSrc was still being used for Location select images. Replaced that with logo.
  • Ensured that appMetaData.ts module itself derives dirName from slug.
  • Ensured that converting logo to absolute URL happens at a single place which is appMetaDeta.ts
  • Dynamic Video apps need not have video in their slug name now.
  • Removed _metadata.ts and added config.json. _metadata.ts is deprecated

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 26, 2023

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

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Jan 26, 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 2:49pm
cal-com-web ❌ Failed (Inspect) Apr 3, 2023 2:49pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 3, 2023 2:49pm
web ❌ Failed (Inspect) Apr 3, 2023 2:49pm

@hthetiot hthetiot changed the title add sylaps into the app-store in video category dadd sylaps into the app-store in video category Jan 26, 2023
@hthetiot hthetiot changed the title dadd sylaps into the app-store in video category feat - add sylaps into the app-store in video category Jan 26, 2023
@hthetiot hthetiot changed the title feat - add sylaps into the app-store in video category feat: add sylaps into the app-store in video category Jan 26, 2023
@hthetiot
Copy link
Copy Markdown
Contributor Author

I think codacy failure is wrong, i have checked other DESCRIPTION files they use 2 spaces.
Also they say, "remove 2 spaces" and "add 2 spaces" on the same line, so false positive i guess.

Screenshot 2023-01-26 at 14 55 11

@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Jan 26, 2023

I might need so also implement this changes in sylaps listing https://github.com/calcom/cal.com/pull/6712/files

@hthetiot hthetiot requested a review from a team February 22, 2023 11:10
@hthetiot
Copy link
Copy Markdown
Contributor Author

merged main to fix CI

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 22, 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.34 KB (-2 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!

Sixty-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)
/404 8.45 KB 241.79 KB 69.08% (+/- <0.01%)
/[user] 70.32 KB 303.67 KB 86.76% (🟡 +0.04%)
/[user]/[type] 92.06 KB 325.41 KB 92.97% (🟡 +0.04%)
/[user]/[type]/embed 92.09 KB 325.43 KB 92.98% (🟡 +0.03%)
/[user]/book 183.65 KB 417 KB 119.14% (🟡 +0.04%)
/[user]/embed 70.39 KB 303.73 KB 86.78% (🟡 +0.03%)
/apps 167.32 KB 400.67 KB 114.48% (🟡 +0.03%)
/apps/[slug] 191.04 KB 424.38 KB 121.25% (🟡 +0.04%)
/apps/[slug]/[...pages] 392.29 KB 625.64 KB 178.75% (🟡 +0.04%)
/apps/categories 152.22 KB 385.56 KB 110.16% (🟡 +0.03%)
/apps/categories/[category] 156.08 KB 389.43 KB 111.26% (🟡 +0.04%)
/apps/installed/[category] 197.07 KB 430.41 KB 122.97% (🟡 +0.04%)
/auth/error 19.24 KB 252.59 KB 72.17% (+/- <0.01%)
/auth/forgot-password 25.63 KB 258.98 KB 73.99% (+/- <0.01%)
/auth/forgot-password/[id] 32.83 KB 266.17 KB 76.05% (+/- <0.01%)
/auth/login 40.1 KB 273.45 KB 78.13% (+/- <0.01%)
/auth/logout 7.56 KB 240.9 KB 68.83% (+/- <0.01%)
/availability 155.53 KB 388.87 KB 111.11% (🟡 +0.03%)
/availability/[schedule] 272.28 KB 505.63 KB 144.46% (🟡 +0.04%)
/availability/troubleshoot 152.91 KB 386.25 KB 110.36% (🟡 +0.03%)
/booking/[uid] 123.75 KB 357.09 KB 102.03% (🟡 +0.03%)
/bookings/[status] 272.61 KB 505.95 KB 144.56% (🟡 +0.03%)
/d/[link]/[slug] 91.71 KB 325.06 KB 92.87% (🟡 +0.04%)
/d/[link]/[slug]/embed 91.74 KB 325.08 KB 92.88% (🟡 +0.03%)
/d/[link]/book 183.31 KB 416.65 KB 119.04% (🟡 +0.04%)
/event-types 349.25 KB 582.6 KB 166.46% (🟡 +0.03%)
/event-types/[type] 383.13 KB 616.48 KB 176.14% (🟡 +0.03%)
/getting-started/[[...step]] 303.22 KB 536.56 KB 153.30% (+/- <0.01%)
/insights 387.37 KB 620.71 KB 177.35% (🟡 +0.03%)
/more 151.84 KB 385.19 KB 110.05% (🟡 +0.04%)
/payment/[uid] 60.97 KB 294.32 KB 84.09% (🟡 +0.03%)
/settings/admin 157.3 KB 390.64 KB 111.61% (🟡 +0.04%)
/settings/admin/apps 165.98 KB 399.33 KB 114.09% (🟡 +0.04%)
/settings/admin/apps/[category] 165.97 KB 399.31 KB 114.09% (🟡 +0.03%)
/settings/admin/flags 160.19 KB 393.54 KB 112.44% (🟡 +0.03%)
/settings/admin/impersonation 157.58 KB 390.93 KB 111.69% (🟡 +0.04%)
/settings/billing 157.41 KB 390.75 KB 111.64% (🟡 +0.04%)
/settings/developer/api-keys 186.56 KB 419.91 KB 119.97% (🟡 +0.04%)
/settings/developer/webhooks 160.06 KB 393.41 KB 112.40% (🟡 +0.04%)
/settings/developer/webhooks/[id] 190.75 KB 424.1 KB 121.17% (🟡 +0.03%)
/settings/developer/webhooks/new 190.61 KB 423.96 KB 121.13% (🟡 +0.03%)
/settings/my-account/appearance 171.36 KB 404.7 KB 115.63% (🟡 +0.03%)
/settings/my-account/calendars 191.6 KB 424.94 KB 121.41% (🟡 +0.04%)
/settings/my-account/conferencing 163.22 KB 396.56 KB 113.30% (🟡 +0.04%)
/settings/my-account/general 266.56 KB 499.91 KB 142.83% (🟡 +0.03%)
/settings/my-account/profile 274.39 KB 507.73 KB 145.07% (🟡 +0.03%)
/settings/security/impersonation 159.45 KB 392.79 KB 112.23% (🟡 +0.03%)
/settings/security/password 192.74 KB 426.09 KB 121.74% (🟡 +0.03%)
/settings/security/sso 167.14 KB 400.49 KB 114.43% (🟡 +0.03%)
/settings/security/two-factor-auth 161.96 KB 395.31 KB 112.94% (🟡 +0.04%)
/settings/teams 157.04 KB 390.39 KB 111.54% (🟡 +0.03%)
/settings/teams/[id]/appearance 171.38 KB 404.72 KB 115.64% (🟡 +0.03%)
/settings/teams/[id]/billing 157.28 KB 390.62 KB 111.61% (🟡 +0.03%)
/settings/teams/[id]/members 297.38 KB 530.72 KB 151.63% (🟡 +0.04%)
/settings/teams/[id]/profile 269.6 KB 502.94 KB 143.70% (🟡 +0.03%)
/settings/teams/[id]/sso 167.24 KB 400.58 KB 114.45% (🟡 +0.03%)
/signup 25.5 KB 258.84 KB 73.95% (+/- <0.01%)
/team/[slug] 72.62 KB 305.96 KB 87.42% (+/- <0.01%)
/team/[slug]/[type] 91.71 KB 325.06 KB 92.87% (🟡 +0.04%)
/team/[slug]/[type]/embed 91.75 KB 325.09 KB 92.88% (🟡 +0.04%)
/team/[slug]/book 183.31 KB 416.65 KB 119.04% (🟡 +0.04%)
/team/[slug]/embed 72.68 KB 306.03 KB 87.44% (+/- <0.01%)
/teams 152.06 KB 385.4 KB 110.12% (🟡 +0.03%)
/video/meeting-ended/[uid] 14.67 KB 248.01 KB 70.86% (+/- <0.01%)
/video/meeting-not-started/[uid] 14.3 KB 247.64 KB 70.76% (+/- <0.01%)
/video/no-meeting-found 6.6 KB 239.95 KB 68.56% (+/- <0.01%)
/workflows 165.06 KB 398.41 KB 113.83% (🟡 +0.03%)
/workflows/[workflow] 294.18 KB 527.53 KB 150.72% (🟡 +0.03%)
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.

@PeerRich
Copy link
Copy Markdown
Member

bear with me, our CI is currently borked, just switched to a new Github workflows. I think your PR is fine, I just wanna wait for the green check marks to come back

zomars
zomars previously requested changes Feb 22, 2023
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

Just tested this locally and stumbled upon this case.

The success page says: "Sylaps: Meeting url is in the confirmation email"

image

But the the confirmation email just says "Sylaps":

image

No link is there whatsoever

@hariombalhara
Copy link
Copy Markdown
Member

hariombalhara commented Feb 23, 2023

Have fixed the issue reported by @zomars locally, but can't push the fix. @hthetiot can you allow edits on the PR from maintainers. See https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md#:~:text=Be%20sure%20to%20check%20the%20%22Allow%20edits%20from%20maintainers%22%20option%20while%20creating%20you%20PR.

The changes that I have done, I have already added in PR description.

@hthetiot
Copy link
Copy Markdown
Contributor Author

Have fixed the issue reported by @zomars locally, but can't push the fix. @hthetiot can you allow edits on the PR from maintainers. See https://github.com/calcom/cal.com/blob/main/CONTRIBUTING.md#:~:text=Be%20sure%20to%20check%20the%20%22Allow%20edits%20from%20maintainers%22%20option%20while%20creating%20you%20PR.

The changes that I have done, I have already added in PR description.

Will do, thx, keep you posted.

@PeerRich PeerRich marked this pull request as draft March 7, 2023 12:05
@PeerRich
Copy link
Copy Markdown
Member

PeerRich commented Apr 2, 2023

hey @hthetiot were the changes applied? happy to merge this week

@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Apr 2, 2023

hey @hthetiot were the changes applied? happy to merge this week

Sorry need more time, I will attempt to finish PR next week.

hthetiot added 2 commits April 3, 2023 13:57
…store/sylapsvideo: This package doesn't seem to be present in your lockfile; run yarn install to update the lockfile
@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Apr 3, 2023

Linting warnings

fixed

@hariombalhara
Copy link
Copy Markdown
Member

InstallAppButton.tsx file isn't needed now.

Does it mean in the future if we want to connect Sylaps Account it can be used? If so for now i d'like to leave it, alternatively let me know and i will delete, or pls feel free tp suggest like you did on lint.

Actually, having or not having that file makes no difference functionally. Every App automatically uses a common InstallAppButton component. It is a legacy file(wouldn't have come if you used App Store Cli to create the app) which probably came because you copied it from an old app(pre AppStore Cli)

@kodiakhq
Copy link
Copy Markdown
Contributor

kodiakhq bot commented Apr 3, 2023

This PR currently has a merge conflict. Please resolve this and then re-add the automerge label.

@kodiakhq kodiakhq bot removed the automerge label Apr 3, 2023
@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Apr 3, 2023

InstallAppButton.tsx file isn't needed now.

deleted

@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Apr 5, 2023

Thx @hariombalhara for merge.
Nice CI and environnement you have for this project.
Thx for open sourcing.

@hthetiot
Copy link
Copy Markdown
Contributor Author

@hariombalhara I can see the PR is deployed on cal.com via the file https://app.cal.com/app-store/sylapsvideo/icon.svg but I don't see Sylaps in the application store , would it be possible to enable it? Once done I will add Cal.com info on sylaps.com ;)

@hariombalhara
Copy link
Copy Markdown
Member

@hthetiot There is an issue at the moment in enabling the app. I would let you know once it resolves

@hthetiot
Copy link
Copy Markdown
Contributor Author

hthetiot commented Apr 14, 2023

@hthetiot There is an issue at the moment in enabling the app. I would let you know once it resolves

@hariombalhara
I can see the sylaps app now thank a lot. But I did found a bug doh, if you visit the store listing after installing an app (sylaps here), it still show install button on the main store page after a search, if you click install you will have a javascript error about startWith and it redirect to something like cal.com/undefined. I will create an issue with video and reproducible steps.

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.

4 participants