-
Notifications
You must be signed in to change notification settings - Fork 10.3k
fix: set conferencing apps as default #15376
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: set conferencing apps as default #15376
Conversation
@Amit91848 is attempting to deploy a commit to the cal Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link. |
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. |
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? |
Thank you, @Amit91848.
can you add it for all the oAuth-based conferencing apps |
Sure @SomayChauhan |
Added @SomayChauhan |
There was a problem hiding this 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
Will do @PeerRich |
Just checked it is already being sorted by popularity, local development doesn't have app count so isn't being reflected @PeerRich |
ah very nice |
There was a problem hiding this 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.
This PR is being marked as stale due to inactivity. |
There was a problem hiding this 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
@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 |
#15702 should be merged before this pr is merged |
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left inline comments.
apps/web/components/getting-started/steps-views/ConnectedVideoStep.tsx
Outdated
Show resolved
Hide resolved
328caaf
to
7053e1f
Compare
installed={item.userCredentialIds.length > 0} | ||
defaultInstall={ | ||
!defaultConferencingApp && item.appData?.location?.linkType === "dynamic" |
There was a problem hiding this comment.
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.
Looks good to me now !! Thanks for bearing with me. Not approving the PR yet as another PR needs to be merged first. |
- as we reverted calcom@20fdb50
…app_default_onboarding
* 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
* 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>
What does this PR do?
Recording.2024-06-08.163855.mp4
Mandatory Tasks (DO NOT REMOVE)