From c9f866e5384ea28c713a4e00fdac86375f113028 Mon Sep 17 00:00:00 2001 From: Aaryan Khandelwal <65252264+aaryan610@users.noreply.github.com> Date: Mon, 24 Apr 2023 18:53:30 +0530 Subject: [PATCH] style: profile settings, activity theming (#951) --- apps/app/components/core/feeds.tsx | 25 ++++++++++-------- apps/app/components/issues/activity.tsx | 4 +-- .../issues/comment/comment-card.tsx | 9 +++---- .../[workspaceSlug]/me/profile/index.tsx | 26 ++++++++++--------- 4 files changed, 33 insertions(+), 31 deletions(-) diff --git a/apps/app/components/core/feeds.tsx b/apps/app/components/core/feeds.tsx index 0d68fd7a6..b5cb0bb78 100644 --- a/apps/app/components/core/feeds.tsx +++ b/apps/app/components/core/feeds.tsx @@ -67,15 +67,19 @@ const activityDetails: { }, name: { message: "set the name to", - icon: , + icon: ( + + ), }, description: { message: "updated the description.", - icon: , + icon: ( + + ), }, estimate_point: { message: "set the estimate point to", - icon: , + icon: , }, target_date: { message: "set the due date to", @@ -91,7 +95,7 @@ const activityDetails: { }, estimate: { message: "updated the estimate", - icon: , + icon: , }, link: { message: "updated the link", @@ -153,11 +157,11 @@ export const Feeds: React.FC = ({ activities }) => ( ) { const { workspace_detail, project, issue } = activity; value = ( - + created{" "} - this issue. + this issue. @@ -198,7 +202,7 @@ export const Feeds: React.FC = ({ activities }) => ( if (activity.field === "comment") { return ( - + {activity.actor_detail.avatar && activity.actor_detail.avatar !== "" ? ( @@ -219,7 +223,7 @@ export const Feeds: React.FC = ({ activities }) => ( @@ -242,9 +246,8 @@ export const Feeds: React.FC = ({ activities }) => ( : activity.old_value } editable={false} - onBlur={() => ({})} noBorder - customClassName="text-xs bg-brand-surface-1" + customClassName="text-xs border border-brand-base bg-brand-base" /> @@ -268,7 +271,7 @@ export const Feeds: React.FC = ({ activities }) => ( - + {activity.field ? ( activityDetails[activity.field as keyof typeof activityDetails]?.icon ) : activity.actor_detail.avatar && diff --git a/apps/app/components/issues/activity.tsx b/apps/app/components/issues/activity.tsx index f14ee2761..b3e419e17 100644 --- a/apps/app/components/issues/activity.tsx +++ b/apps/app/components/issues/activity.tsx @@ -110,9 +110,7 @@ const activityDetails: { }, }; -type Props = {}; - -export const IssueActivitySection: React.FC = () => { +export const IssueActivitySection: React.FC = () => { const router = useRouter(); const { workspaceSlug, projectId, issueId } = router.query; diff --git a/apps/app/components/issues/comment/comment-card.tsx b/apps/app/components/issues/comment/comment-card.tsx index b368812a3..0d9aae830 100644 --- a/apps/app/components/issues/comment/comment-card.tsx +++ b/apps/app/components/issues/comment/comment-card.tsx @@ -68,7 +68,10 @@ export const CommentCard: React.FC = ({ comment, onSubmit, handleCommentD )} - + @@ -110,10 +113,6 @@ export const CommentCard: React.FC = ({ comment, onSubmit, handleCommentD ) : ( - // { - Profile Picture - + Profile Picture + Max file size is 5MB. Supported file types are .jpg and .png. @@ -156,7 +156,7 @@ const Profile: NextPage = () => { setIsImageUploadModalOpen(true)}> {!watch("avatar") || watch("avatar") === "" ? ( - + ) : ( @@ -195,12 +195,12 @@ const Profile: NextPage = () => { - Full Name - + Full Name + This name will be reflected on all the projects you are working on. - + { - Email - The email address that you are using. + Email + The email address that you are using. { - Role - Add your role. + Role + Add your role. { - Theme - Select or customize your interface color scheme. + Theme + + Select or customize your interface color scheme. +
+
Max file size is 5MB. Supported file types are .jpg and .png.
This name will be reflected on all the projects you are working on.
The email address that you are using.
Add your role.
Select or customize your interface color scheme.
+ Select or customize your interface color scheme. +