Feature/round robin (#613)
* Heavy WIP * More WIP * Playing with backwards compat * Moar wip * wip * Email changes for group feature * Committing in redundant migrations for reference * Combine all WIP migrations into a single feature migration * Make backup of current version of radio area pending refactor * Improved accessibility through keyboard * Cleanup in seperate commit so I can cherrypick later * Added RadioArea component * wip * Ignore .yarn file * Kinda stable * Getting closer... * Hide header when there are only personal events * Added uid to event create, updated EventTypeDescription * Delete redundant migration * Committing new team related migrations * Optimising & implemented backwards compatibility * Removed now redundant pages * Undid prototyping to calendarClient I did not end up using * Properly typed Select & fixed lint throughout * How'd that get here, removed. * TODO: investigate why userData is not compatible with passed type * This likely matches the event type that is created for a user * Few bugfixes * Adding datepicker optimisations * Fixed new event type spacing, initial profile should always be there * Gave NEXT_PUBLIC_BASE_URL a try but I think it's not the right solution * Updated EventTypeDescription to account for long titles, added logo to team page. * Added logo to team query * Added cancel Cypress test because an upcoming merge contains changes * Fix for when the event type description is long * Turned Theme into the useTheme hook, and made it fully compatible with teams pages * Built AvatarGroup ui component + moved Avatar to ui * Give the avatar some space fom the description * Fixed timeZone selector * Disabled tooltip +1-... Co-authored-by: Bailey Pumfleet <[email protected]>
This commit is contained in:
1 parent
e9ff62109d
commit
6ab741b927
54 files changed
+3980
-2413
No files matched your search
@@ -3,7 +3,7 @@ import { ArrowLeftIcon, PlusIcon, TrashIcon } from "@heroicons/react/outline";
|
||||
import ErrorAlert from "@components/ui/alerts/Error";
|
||||
import { UsernameInput } from "@components/ui/UsernameInput";
|
||||
import MemberList from "./MemberList";
|
||||
import Avatar from "@components/Avatar";
|
||||
import Avatar from "@components/ui/Avatar";
|
||||
import ImageUploader from "@components/ImageUploader";
|
||||
import { Dialog, DialogTrigger } from "@components/Dialog";
|
||||
import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent";
|
||||
|
||||
@@ -3,7 +3,7 @@ import Dropdown from "../ui/Dropdown";
|
||||
import { useState } from "react";
|
||||
import { Dialog, DialogTrigger } from "@components/Dialog";
|
||||
import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent";
|
||||
import Avatar from "@components/Avatar";
|
||||
import Avatar from "@components/ui/Avatar";
|
||||
import { Member } from "@lib/member";
|
||||
import Button from "@components/ui/Button";
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ import { Tooltip } from "@components/Tooltip";
|
||||
import Link from "next/link";
|
||||
import { Dialog, DialogTrigger } from "@components/Dialog";
|
||||
import ConfirmationDialogContent from "@components/dialog/ConfirmationDialogContent";
|
||||
import Avatar from "@components/Avatar";
|
||||
import Avatar from "@components/ui/Avatar";
|
||||
import Button from "@components/ui/Button";
|
||||
import showToast from "@lib/notification";
|
||||
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
import React from "react";
|
||||
import Text from "@components/ui/Text";
|
||||
import Link from "next/link";
|
||||
import Avatar from "@components/Avatar";
|
||||
import Avatar from "@components/ui/Avatar";
|
||||
import { ArrowRightIcon } from "@heroicons/react/outline";
|
||||
import useTheme from "@components/Theme";
|
||||
import classnames from "classnames";
|
||||
import { ArrowLeftIcon } from "@heroicons/react/solid";
|
||||
|
||||
const Team = ({ team }) => {
|
||||
useTheme();
|
||||
|
||||
const Member = ({ member }) => {
|
||||
const classes = classnames(
|
||||
"group",
|
||||
@@ -37,18 +35,15 @@ const Team = ({ team }) => {
|
||||
)}
|
||||
/>
|
||||
|
||||
<Avatar
|
||||
displayName={member.user.name}
|
||||
imageSrc={member.user.avatar}
|
||||
className="w-12 h-12 rounded-full"
|
||||
/>
|
||||
|
||||
<section className="space-y-2">
|
||||
<Text variant="title">{member.user.name}</Text>
|
||||
<Text variant="subtitle" className="w-6/8">
|
||||
{member.user.bio}
|
||||
</Text>
|
||||
</section>
|
||||
<div>
|
||||
<Avatar displayName={member.user.name} imageSrc={member.user.avatar} className="w-12 h-12" />
|
||||
<section className="space-y-2">
|
||||
<Text variant="title">{member.user.name}</Text>
|
||||
<Text variant="subtitle" className="w-6/8">
|
||||
{member.user.bio}
|
||||
</Text>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</Link>
|
||||
);
|
||||
@@ -69,17 +64,18 @@ const Team = ({ team }) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<article className="flex flex-col space-y-8 lg:space-y-12">
|
||||
<div className="mb-8 text-center">
|
||||
<Avatar
|
||||
displayName={team.name}
|
||||
imageSrc={team.logo}
|
||||
className="mx-auto w-20 h-20 rounded-full mb-4"
|
||||
/>
|
||||
<Text variant="headline">{team.name}</Text>
|
||||
</div>
|
||||
<div>
|
||||
<Members members={team.members} />
|
||||
</article>
|
||||
{team.eventTypes.length && (
|
||||
<aside className="text-center dark:text-white mt-8">
|
||||
<Link href={`/team/${team.slug}`} shallow={true}>
|
||||
<a>
|
||||
<ArrowLeftIcon className="h-6 w-6 inline text-neutral-500" /> Go back
|
||||
</a>
|
||||
</Link>
|
||||
</aside>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user