fix: show email in outlook (#5897)

* fix: change external id to owner address

Signed-off-by: Udit Takkar <[email protected]>

* feat: add email prop in calendar

Signed-off-by: Udit Takkar <[email protected]>

* fix: only display for outlook

Signed-off-by: Udit Takkar <[email protected]>

* fix: add email for apple calendar

Signed-off-by: Udit Takkar <[email protected]>

* fix: type error and use description

Signed-off-by: Udit Takkar <[email protected]>

* fix: try  using email from /me endpoint

Signed-off-by: Udit Takkar <[email protected]>

* fix: fallback to principal name when mail is not there

Signed-off-by: Udit Takkar <[email protected]>

* chore: use empty string for fallback

Signed-off-by: Udit Takkar <[email protected]>

Signed-off-by: Udit Takkar <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Co-authored-by: Joe Au-Yeung <[email protected]>
This commit is contained in:
authored and GitHub committed 2022-12-20 21:50:20 +00:00
1 parent 9487819ec1
commit 2d9064e92f
7 files changed
+17 -3

No files matched your search

@@ -159,6 +159,7 @@ function ConnectedCalendarsList(props: Props) {
if (!data.connectedCalendars.length) {
return null;
}
return (
<List className="flex flex-col gap-6" noBorderTreatment>
{data.connectedCalendars.map((item) => (
@@ -168,7 +169,7 @@ function ConnectedCalendarsList(props: Props) {
slug={item.integration.slug}
title={item.integration.title}
logo={item.integration.logo}
description={item.primary?.externalId || "No external Id"}
description={item.primary?.email ?? item.integration.description}
separate={true}
actions={
<div className="flex w-32 justify-end">