feat: banner and avatars for Booker atom (#17821)

* init

* added bannerUrl to output

* cleanup

* fixup

* fix response DTOs

* remove logs

* send back avatar url for user

* enable passing avatar urls for managed user

* dont include urls for platform

* remove logs

* add team banner

* update docs

* nit

* PR feedback

* fix type error

* add prop to pass in bannerUrl

* update DTOs

* update tests

* fix tests

---------

Co-authored-by: Somay Chauhan <[email protected]>
Co-authored-by: Morgan <[email protected]>
This commit is contained in:
authored and GitHub committed 2024-12-09 14:35:57 +00:00
1 parent ae1b844bea
commit 9334b67f2c
18 files changed
+173 -25

No files matched your search

@@ -54,6 +54,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
body: JSON.stringify({
email: emailOne,
name: "John Jones",
avatarUrl:
"https://images.unsplash.com/photo-1527980965255-d3b416303d12?q=80&w=3023&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
}),
}
);
@@ -83,6 +85,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
body: JSON.stringify({
email: emailTwo,
name: "Jane Doe",
avatarUrl:
"https://plus.unsplash.com/premium_photo-1668319915476-5cc7717e00f1?q=80&w=3164&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D",
}),
}
);
@@ -139,6 +143,7 @@ async function createTeam(orgId: number, name: string) {
},
body: JSON.stringify({
name,
bannerUrl: "https://i.cal.com/api/avatar/949be534-7a88-4185-967c-c020b0c0bef3.png",
}),
}
);