* display UTM parameters * persist view (list | calendar) in localStorage * move to next page on clicking "next" of last item in the page improve navigation ^ Conflicts: ^ apps/web/modules/bookings/components/BookingCalendarContainer.tsx * fix navigation on calendar view * Delete apps/web/modules/bookings/NAVIGATION_IMPLEMENTATION.md * avoid page size being 0 * check feature flag on user level * use map to improve useBookingListData * address feedback * feat(bookings): add smart navigation for calendar view - Add sort option to tRPC bookings.get schema and handler - Create NAVIGATION_PROBE_WINDOW_MONTHS constant (3 months) - Create useNearestFutureBooking hook to find nearest future booking - Create useNearestPastBooking hook to find nearest past booking - Update useCalendarNavigationCapabilities to use probe results - Update BookingCalendarContainer to wire up probe hooks This enables the booking details sheet to: - Disable next/prev buttons when no bookings exist in that direction - Jump directly to the week containing the nearest booking Co-Authored-By: [email protected] <[email protected]> * fix type error * feat: add booking selection state when using slideover (#25637) * implement booking selection when using slideover * remove pixel shift * fix * auto scroll to selected event on calendar * make DateValues header sticky when scrolling --------- Co-authored-by: Eunjae Lee <[email protected]> * prefetch previous / next weeks on calendar view * clean up classes * handle "fetched & but no data" situation more correctly in useCalendarAutoSelector --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Co-authored-by: sean-brydon <[email protected]>
59 lines
1.1 KiB
TypeScript
59 lines
1.1 KiB
TypeScript
import type { Prisma } from "@calcom/prisma/client";
|
|
|
|
export const bookingMinimalSelect = {
|
|
id: true,
|
|
title: true,
|
|
userPrimaryEmail: true,
|
|
description: true,
|
|
customInputs: true,
|
|
startTime: true,
|
|
endTime: true,
|
|
attendees: true,
|
|
metadata: true,
|
|
} satisfies Prisma.BookingSelect;
|
|
|
|
export const bookingAuthorizationCheckSelect = {
|
|
userId: true,
|
|
eventType: {
|
|
select: {
|
|
teamId: true,
|
|
users: {
|
|
select: {
|
|
id: true,
|
|
email: true,
|
|
},
|
|
},
|
|
hosts: {
|
|
select: {
|
|
user: {
|
|
select: {
|
|
id: true,
|
|
email: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
attendees: {
|
|
select: {
|
|
email: true,
|
|
},
|
|
},
|
|
} satisfies Prisma.BookingSelect;
|
|
|
|
export const bookingDetailsSelect = {
|
|
uid: true,
|
|
rescheduled: true,
|
|
fromReschedule: true,
|
|
tracking: {
|
|
select: {
|
|
utm_source: true,
|
|
utm_medium: true,
|
|
utm_campaign: true,
|
|
utm_term: true,
|
|
utm_content: true,
|
|
},
|
|
},
|
|
} satisfies Prisma.BookingSelect;
|