chore: Remove all avatar/logo references (#14532)
* chore: Remove all avatar/logo references * Updated user profile to only use avatarUrl * fix: minor style issue * chore: Remove redundant includeTeamLogo * fix: Use right avatar default in event type list * fix: placeholder avatar team profile, target * chore: Add logoUrl/avatarUrl to JWT * fix: Bunch of org avatar issues, fix members list * Fix logoUrl on org pages * More type fixes * Hopefully final type fixes * Another round of type fixes * fix: UserForm ts * fix: Handle as return types, not input types * fix: Remove profile and add avatarUrl * fix: notFound as const * fix: Seeder avatarUrl params * revert: Migration changes for easier recovery * fix: Add explicit type to builder as avatar is now set * Add logoUrl to unpublished entity * Avatar test out of scope here * fix: Use the new avatarUrl after save * chore: Removed getOrgAvatarUrl/getTeamAvatarUrl * fix: Update sidebar image immediately after change * Unable to safe unnamed user, so default * fix: Unpublished page, add organization test * Add more tests
This commit is contained in:
1 parent
5695ba7c13
commit
d25c043046
73 files changed
+644
-770
No files matched your search
@@ -5,7 +5,6 @@
|
||||
*/
|
||||
import { createTeamAndAddUsers, createUserAndEventType } from "./seed-utils";
|
||||
|
||||
const avatar = "";
|
||||
const getEventTypes = (numberOfEventTypes: number) => {
|
||||
const eventTypes = Array<{
|
||||
title: string;
|
||||
@@ -46,7 +45,6 @@ async function createTeamsWithEventTypes({
|
||||
password: `enterprise-member-${i + 1}`,
|
||||
username: `enterprise-member-${i + 1}`,
|
||||
theme: "light",
|
||||
avatar,
|
||||
},
|
||||
})
|
||||
);
|
||||
@@ -86,7 +84,6 @@ export default async function main() {
|
||||
password: "enterprise",
|
||||
username: `enterprise`,
|
||||
theme: "light",
|
||||
avatar,
|
||||
},
|
||||
eventTypes: getEventTypes(100),
|
||||
});
|
||||
|
||||
@@ -13,7 +13,7 @@ import { BookingStatus } from "@calcom/prisma/enums";
|
||||
|
||||
import { createUserAndEventType } from "./seed-utils";
|
||||
|
||||
async function createManyDifferentUsersWithDifferentEventTypesAndBookings({
|
||||
async function _createManyDifferentUsersWithDifferentEventTypesAndBookings({
|
||||
tillUser,
|
||||
startFrom = 0,
|
||||
}: {
|
||||
|
||||
@@ -24,7 +24,7 @@ export async function createUserAndEventType({
|
||||
timeZone?: string;
|
||||
role?: UserPermissionRole;
|
||||
theme?: "dark" | "light";
|
||||
avatar?: string;
|
||||
avatarUrl?: string | null;
|
||||
};
|
||||
eventTypes?: Array<
|
||||
Prisma.EventTypeUncheckedCreateInput & {
|
||||
@@ -38,7 +38,7 @@ export async function createUserAndEventType({
|
||||
appId: string;
|
||||
} | null)[];
|
||||
}) {
|
||||
const { password, ...restOfUser } = user;
|
||||
const { password: _password, ...restOfUser } = user;
|
||||
const userData = {
|
||||
...restOfUser,
|
||||
emailVerified: new Date(),
|
||||
|
||||
@@ -56,17 +56,17 @@ export const bookEventTypeSelect = Prisma.validator<Prisma.EventTypeSelect>()({
|
||||
name: true,
|
||||
email: true,
|
||||
bio: true,
|
||||
avatar: true,
|
||||
avatarUrl: true,
|
||||
theme: true,
|
||||
},
|
||||
},
|
||||
successRedirectUrl: true,
|
||||
team: {
|
||||
select: {
|
||||
logo: true,
|
||||
logoUrl: true,
|
||||
parent: {
|
||||
select: {
|
||||
logo: true,
|
||||
logoUrl: true,
|
||||
name: true,
|
||||
},
|
||||
},
|
||||
@@ -111,7 +111,7 @@ export const availiblityPageEventTypeSelect = Prisma.validator<Prisma.EventTypeS
|
||||
users: {
|
||||
select: {
|
||||
id: true,
|
||||
avatar: true,
|
||||
avatarUrl: true,
|
||||
name: true,
|
||||
username: true,
|
||||
hideBranding: true,
|
||||
@@ -120,10 +120,10 @@ export const availiblityPageEventTypeSelect = Prisma.validator<Prisma.EventTypeS
|
||||
},
|
||||
team: {
|
||||
select: {
|
||||
logo: true,
|
||||
logoUrl: true,
|
||||
parent: {
|
||||
select: {
|
||||
logo: true,
|
||||
logoUrl: true,
|
||||
name: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user