From c0bf7783b1e83a4b587a605f1b45e988cf79a423 Mon Sep 17 00:00:00 2001 From: Saheb Giri <47132373+iamsahebgiri@users.noreply.github.com> Date: Fri, 31 Mar 2023 23:00:28 +0530 Subject: [PATCH] style: designed user activity. (#666) --- apps/app/components/core/feeds.tsx | 277 ++++++++++++++++++ apps/app/components/core/index.ts | 1 + .../[workspaceSlug]/me/profile/activity.tsx | 21 +- 3 files changed, 282 insertions(+), 17 deletions(-) create mode 100644 apps/app/components/core/feeds.tsx diff --git a/apps/app/components/core/feeds.tsx b/apps/app/components/core/feeds.tsx new file mode 100644 index 000000000..9cd1e28d9 --- /dev/null +++ b/apps/app/components/core/feeds.tsx @@ -0,0 +1,277 @@ +import React from "react"; +import Image from "next/image"; + +// icons +import { + ArrowTopRightOnSquareIcon, + CalendarDaysIcon, + ChartBarIcon, + ChatBubbleBottomCenterTextIcon, + ChatBubbleLeftEllipsisIcon, + RectangleGroupIcon, + Squares2X2Icon, + UserIcon, +} from "@heroicons/react/24/outline"; +import { BlockedIcon, BlockerIcon, CyclesIcon, TagIcon, UserGroupIcon } from "components/icons"; +// helpers +import { renderShortNumericDateFormat, timeAgo } from "helpers/date-time.helper"; +import { addSpaceIfCamelCase } from "helpers/string.helper"; +// types +import RemirrorRichTextEditor from "components/rich-text-editor"; +import Link from "next/link"; + +const activityDetails: { + [key: string]: { + message?: string; + icon: JSX.Element; + }; +} = { + assignee: { + message: "removed the assignee", + icon: