Skip to content

Conversation

Amit91848
Copy link
Contributor

What does this PR do?

Recording.2024-06-08.163855.mp4

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected)
  • I have added a Docs issue here if this PR makes changes that would require a documentation change
  • I have added or modified automated tests that prove my fix is effective or that my feature works (PRs might be rejected if logical changes are not properly tested)

@graphite-app graphite-app bot requested a review from a team June 8, 2024 11:14
Copy link

vercel bot commented Jun 8, 2024

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

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Jun 8, 2024
Copy link
Contributor

github-actions bot commented Jun 8, 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 Medium priority Created by Linear-GitHub Sync 🐛 bug Something isn't working labels Jun 8, 2024
@dosubot dosubot bot added the app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar label Jun 8, 2024
Copy link

graphite-app bot commented Jun 8, 2024

Graphite Automations

"Add community label" took an action on this PR • (06/08/24)

1 label was added to this PR based on Keith Williams's automation.

"Add consumer team as reviewer" took an action on this PR • (06/08/24)

1 reviewer was added to this PR based on Keith Williams's automation.

@Amit91848
Copy link
Contributor Author

when you sign up for a new account and choose Google Meet as the default meeting platform, for some reason it still keeps Cal Video as the default and you have to go to settings to change it manually

It was installing normally and not setting it as default. I have added it to google meet only for now? Do want me to add it to all conferencing apps?

@SomayChauhan
Copy link
Member

Thank you, @Amit91848.

It was installing normally and not setting it as default. I have added it to google meet only for now? Do want me to add it to all conferencing apps?

can you add it for all the oAuth-based conferencing apps

@Amit91848
Copy link
Contributor Author

Sure @SomayChauhan

@Amit91848
Copy link
Contributor Author

Added @SomayChauhan

PeerRich
PeerRich previously approved these changes Jun 9, 2024
Copy link
Member

@PeerRich PeerRich left a comment

Choose a reason for hiding this comment

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

looks nice, but can we sort video conferencing apps by popularity as well? We sort calendars already by popularity

ideally Google Meet (and Zoom etc.) is at the top

@PeerRich PeerRich dismissed their stale review June 9, 2024 15:37

misclicked

@PeerRich PeerRich requested a review from SomayChauhan June 9, 2024 15:38
@Amit91848
Copy link
Contributor Author

Will do @PeerRich

@Amit91848
Copy link
Contributor Author

looks nice, but can we sort video conferencing apps by popularity as well? We sort calendars already by popularity

ideally Google Meet (and Zoom etc.) is at the top

Just checked it is already being sorted by popularity, local development doesn't have app count so isn't being reflected @PeerRich

@PeerRich
Copy link
Member

PeerRich commented Jun 9, 2024

ah very nice

Copy link
Member

@SomayChauhan SomayChauhan left a comment

Choose a reason for hiding this comment

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

LGTM!
ThankYou for the fix @Amit91848
added a small fix in 20fdb50
where the default event-types we create for the new user were not picking up the default app we just set.

PS: For OAuth apps, where the link is generated automatically we set the newly added conferencing app as the default location for all event types. For link-based apps, users can manually set the location.

@dosubot dosubot bot modified the milestones: v4.3, v4.4 Jun 10, 2024
Copy link
Contributor

This PR is being marked as stale due to inactivity.

@github-actions github-actions bot added the Stale label Jun 26, 2024
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.

@Amit91848 I really want to avoid making changes in the _getAdd or callback.ts of apps because that would mean a lot of apps would need to be modified and all new conferencing apps would have to be ensured to have that code

Suggested a different approach, let us see if it works

@Amit91848
Copy link
Contributor Author

@hariombalhara updated the code. I haven't removed default install from _add.ts and callback.ts yet, but they aren't being used. Just wanted to confirm the flow first. Couldn't find any common file for all, decided to create an endpoint to update the default because we cannot directly run setDefaultConferencingApp in browser.

@Amit91848 Amit91848 requested a review from hariombalhara July 9, 2024 09:05
@SomayChauhan
Copy link
Member

#15702 should be merged before this pr is merged

@hariombalhara
Copy link
Member

The flow looks good now. @Amit91848 you can now cleanup the app files.

There is some more code improvements that are required. I would leave the comments inline though.

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.

Left inline comments.

@Amit91848 Amit91848 requested a review from hariombalhara July 10, 2024 09:26
@hariombalhara hariombalhara force-pushed the fix/set_conferencing_app_default_onboarding branch from 328caaf to 7053e1f Compare July 10, 2024 10:13
installed={item.userCredentialIds.length > 0}
defaultInstall={
!defaultConferencingApp && item.appData?.location?.linkType === "dynamic"
Copy link
Member

Choose a reason for hiding this comment

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

We should allow making a conferencing app as default only if there is no existing default conferencing app.

@hariombalhara
Copy link
Member

Looks good to me now !! Thanks for bearing with me.

Not approving the PR yet as another PR needs to be merged first.

@hariombalhara hariombalhara self-requested a review July 10, 2024 10:42
@hariombalhara hariombalhara enabled auto-merge (squash) July 10, 2024 10:42
@hariombalhara hariombalhara merged commit caf7943 into calcom:main Jul 10, 2024
verstratenbram added a commit to verstratenbram/cal.com that referenced this pull request Jul 16, 2024
* commit '0dd3b2562458522ad002b4ea967e2b10855a4ab6': (130 commits)
  chore: v4.2.5 (calcom#15735)
  fix: api v2 unit tests  (calcom#15733)
  fix: event type back button (calcom#15722)
  fix: remove console.log and tsignore apiv2 (calcom#15732)
  fix: api-v2 controllers e2e tests (calcom#15724)
  fix: Text in Embed Code  Visibility Fixed (calcom#15711)
  chore: sort calendar crendentials in event manager (calcom#15448)
  chore: cache org guard and fix roles guard apiv2 (calcom#15719)
  Revert "fix: Autodetection of time zone only updated default time zone (calcom#15392)" (calcom#15720)
  feat: add POST end point to mark calls as no-shows (calcom#15690)
  chore: add i18n to atoms (calcom#15698)
  fix: set conferencing apps as default (calcom#15376)
  fix: disable google-meet in user onboarding if google-calendar is not installed (calcom#15702)
  fix: Rescheduling email when there is broken calendar integration (calcom#15669)
  chore: v4.2.4 (calcom#15703)
  fix: 404s becoming 500s (calcom#15696)
  fix: delete reserved slot on booker unmount (calcom#15700)
  chore: add caching apiv2 roles guard (calcom#15694)
  refactor: handleNewBooking calcom#3 (calcom#15612)
  fix: incorrect booking seats full error on collective seated event (calcom#15602)
  ...

# Conflicts:
#	packages/emails/templates/attendee-request-email.ts
#	packages/emails/templates/attendee-was-requested-to-reschedule-email.ts
#	packages/emails/templates/organizer-cancelled-email.ts
#	packages/emails/templates/organizer-location-change-email.ts
#	packages/emails/templates/organizer-payment-refund-failed-email.ts
#	packages/emails/templates/organizer-request-email.ts
#	packages/emails/templates/organizer-request-reminder-email.ts
#	packages/emails/templates/organizer-requested-to-reschedule-email.ts
#	packages/emails/templates/organizer-rescheduled-email.ts
#	packages/emails/templates/organizer-scheduled-email.ts
p6l-richard pushed a commit to p6l-richard/cal.com-fork that referenced this pull request Jul 22, 2024
* fix: set conferencing apps as default

* fix in other oauth conferencing apps

* creating default event-types should set the user's default location

* Update getDefaultLocations.ts

* fix: unit test

* default install only for first oauth app

* fix: type-check

* update default on success

* fix: pass callback prop

* chore: code cleanup

* Fix condition

* no longer needed

- as we reverted calcom@20fdb50

---------

Co-authored-by: Somay Chauhan <somaychauhan98@gmail.com>
Co-authored-by: Hariom <hariombalhara@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🐛 bug Something isn't working community Created by Linear-GitHub Sync community-interns The team responsible for reviewing, testing and shipping low/medium community PRs Medium priority Created by Linear-GitHub Sync ready-for-e2e
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[CAL-3903] set conferencing apps as default
6 participants