Skip to content

Commit

Permalink
Remove more isAway/away, eg. references
Browse files Browse the repository at this point in the history
  • Loading branch information
emrysal committed Apr 19, 2024
1 parent bf40778 commit 7df6e8a
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 23 deletions.
2 changes: 0 additions & 2 deletions apps/api/v1/lib/validations/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ export const schemaUserBaseBodyParams = User.pick({
brandColor: true,
darkBrandColor: true,
allowDynamicBooking: true,
away: true,
role: true,
// @note: disallowing avatar changes via API for now. We can add it later if needed. User should upload image via UI.
// avatar: true,
Expand Down Expand Up @@ -171,7 +170,6 @@ export const schemaUserReadPublic = User.pick({
brandColor: true,
darkBrandColor: true,
allowDynamicBooking: true,
away: true,
createdDate: true,
verified: true,
invitedTo: true,
Expand Down
1 change: 0 additions & 1 deletion apps/web/lib/team/[slug]/[type]/getServerSideProps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
metadata: eventData.metadata,
},
booking,
away: false,
user: teamSlug,
teamId: team.id,
slug: meetingSlug,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ async function getDynamicGroupPageProps(context: GetServerSidePropsContext) {
booking,
user: usernames.join("+"),
slug,
away: false,
trpcState: ssr.dehydrate(),
isBrandingHidden: false,
isSEOIndexable: true,
Expand Down Expand Up @@ -165,7 +164,6 @@ async function getUserPageProps(context: GetServerSidePropsContext) {
},
user: username,
slug,
away: false,
trpcState: ssr.dehydrate(),
isBrandingHidden: user?.hideBranding,
isSEOIndexable: user?.allowSEOIndexing,
Expand Down
1 change: 0 additions & 1 deletion apps/web/modules/users/views/users-type-public-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export default function Type({
user,
isEmbed,
booking,
away,
isBrandingHidden,
isSEOIndexable,
rescheduleUid,
Expand Down
2 changes: 0 additions & 2 deletions apps/web/pages/d/[link]/[slug].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export default function Type({
isEmbed,
user,
booking,
away,
isBrandingHidden,
isTeamEvent,
entity,
Expand All @@ -33,7 +32,6 @@ export default function Type({
username={user}
eventSlug={slug}
bookingData={booking}
isAway={away}
hideBranding={isBrandingHidden}
isTeamEvent={isTeamEvent}
entity={entity}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ export default function Type({
slug,
user,
booking,
away,
isEmbed,
isBrandingHidden,
entity,
Expand All @@ -42,7 +41,6 @@ export default function Type({
username={user}
eventSlug={slug}
bookingData={booking}
isAway={away}
hideBranding={isBrandingHidden}
isTeamEvent
isInstantMeeting
Expand Down Expand Up @@ -110,7 +108,6 @@ export const getServerSideProps = async (context: GetServerSidePropsContext) =>
eventData.length
),
booking: null,
away: false,
user: teamSlug,
teamId: team.id,
slug: meetingSlug,
Expand Down
2 changes: 0 additions & 2 deletions apps/web/pages/team/[slug]/[type].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export default function Type({
slug,
user,
booking,
away,
isEmbed,
isBrandingHidden,
eventData,
Expand All @@ -54,7 +53,6 @@ export default function Type({
username={user}
eventSlug={slug}
bookingData={booking}
isAway={away}
isInstantMeeting={isInstantMeeting}
hideBranding={isBrandingHidden}
isTeamEvent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ export const getSampleUserInSession = function () {
identityProvider: IdentityProvider.CAL,
brandColor: "#292929",
darkBrandColor: "#fafafa",
away: false,
metadata: null,
role: UserPermissionRole.USER,
disableImpersonation: false,
Expand Down
5 changes: 0 additions & 5 deletions packages/features/bookings/Booker/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,6 @@ export interface BookerProps {
selectedDate?: Date;

hideBranding?: boolean;
/**
* Sets the Booker component to the away state.
* This is NOT revalidated by calling the API.
*/
isAway?: boolean;
/**
* If false and the current username indicates a dynamic booking,
* the Booker will immediately show an error.
Expand Down
1 change: 0 additions & 1 deletion packages/features/ee/users/server/trpc-router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ const userBodySchema = User.pick({
// darkBrandColor: true,
allowDynamicBooking: true,
identityProvider: true,
// away: true,
role: true,
avatarUrl: true,
});
Expand Down
1 change: 0 additions & 1 deletion packages/lib/server/repository/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const userSelect = Prisma.validator<Prisma.UserSelect>()({
invitedTo: true,
brandColor: true,
darkBrandColor: true,
away: true,
allowDynamicBooking: true,
allowSEOIndexing: true,
receiveMonthlyDigestEmail: true,
Expand Down
1 change: 0 additions & 1 deletion packages/lib/test/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ type UserPayload = Prisma.UserGetPayload<{
selectedCalendars: true;
schedules: true;
avatarUrl: true;
away: true;
backupCodes: true;
bio: true;
brandColor: true;
Expand Down
1 change: 0 additions & 1 deletion packages/trpc/server/middlewares/sessionMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ export async function getUserFromSession(ctx: TRPCContextInner, session: Maybe<S
identityProviderId: true,
brandColor: true,
darkBrandColor: true,
away: true,
movedToProfileId: true,
selectedCalendars: {
select: {
Expand Down

0 comments on commit 7df6e8a

Please sign in to comment.