Skip to content

Commit 6741693

Browse files
[WEB-5614] chore: platform design token enhancements (#8373)
1 parent 78f4a72 commit 6741693

File tree

20 files changed

+61
-62
lines changed

20 files changed

+61
-62
lines changed

apps/web/ce/components/issues/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export const IssuesHeader = observer(function IssuesHeader() {
102102
)}
103103
</Header.LeftItem>
104104
<Header.RightItem>
105-
<div className="hidden gap-3 md:flex">
105+
<div className="hidden gap-2 md:flex">
106106
<HeaderFilters
107107
projectId={projectId}
108108
currentProjectDetails={currentProjectDetails}

apps/web/ce/components/navigations/top-navigation-root.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const TopNavigationRoot = observer(function TopNavigationRoot() {
4040

4141
return (
4242
<div
43-
className={cn("flex items-center min-h-11 w-full px-3.5 bg-canvas z-[27] transition-all duration-300", {
43+
className={cn("flex items-center min-h-10 w-full px-3.5 bg-canvas z-[27] transition-all duration-300", {
4444
"px-2": !showLabel,
4545
})}
4646
>

apps/web/core/components/common/breadcrumb-link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const IconWrapper = React.memo(function IconWrapper({ icon }: { icon: React.Reac
1919
IconWrapper.displayName = "IconWrapper";
2020

2121
const LabelWrapper = React.memo(function LabelWrapper({ label }: { label: React.ReactNode }) {
22-
return <div className="relative line-clamp-1 block max-w-[150px] overflow-hidden truncate">{label}</div>;
22+
return <div className="relative line-clamp-1 block max-w-[150px] overflow-hidden truncate text-primary">{label}</div>;
2323
});
2424

2525
LabelWrapper.displayName = "LabelWrapper";

apps/web/core/components/home/home-dashboard-widgets.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export const DashboardWidgets = observer(function DashboardWidgets() {
8686
{!isWikiApp && <NoProjectsEmptyState />}
8787

8888
{isAnyWidgetEnabled ? (
89-
<div className="flex flex-col divide-y-[1px] divide-subtle">
89+
<div className="flex flex-col">
9090
{orderedWidgets.map((key) => {
9191
const WidgetComponent = HOME_WIDGETS_LIST[key]?.component;
9292
const isEnabled = widgetsMap[key]?.is_enabled;

apps/web/core/components/home/widgets/empty-states/links.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EmptyStateCompact } from "@plane/propel/empty-state";
44
export function LinksEmptyState() {
55
const { t } = useTranslation();
66
return (
7-
<div className="flex items-center justify-center py-10 bg-layer-1 w-full">
7+
<div className="flex items-center justify-center py-10 bg-layer-1 w-full rounded-lg">
88
<EmptyStateCompact
99
assetKey="link"
1010
assetClassName="w-20 h-20"

apps/web/core/components/home/widgets/empty-states/no-projects.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ import React from "react";
33
import { observer } from "mobx-react";
44
import Link from "next/link";
55
import { useParams } from "next/navigation";
6-
import { Check, Hotel, Users } from "lucide-react";
6+
import { Check, Hotel } from "lucide-react";
77
// plane ui
88
import { EUserPermissions, EUserPermissionsLevel, PROJECT_TRACKER_ELEMENTS } from "@plane/constants";
99
import { useLocalStorage } from "@plane/hooks";
1010
import { useTranslation } from "@plane/i18n";
11-
import { ProjectIcon, CloseIcon } from "@plane/propel/icons";
11+
import { MembersPropertyIcon, ProjectIcon, CloseIcon } from "@plane/propel/icons";
1212
import { cn, getFileURL } from "@plane/utils";
1313
// helpers
1414
// hooks
@@ -66,7 +66,7 @@ export const NoProjectsEmptyState = observer(function NoProjectsEmptyState() {
6666
id: "invite-team",
6767
title: "home.empty.invite_team.title",
6868
description: "home.empty.invite_team.description",
69-
icon: <Users className="size-4" />,
69+
icon: <MembersPropertyIcon className="size-4" />,
7070
flag: "visited_members",
7171
cta: {
7272
text: "home.empty.invite_team.cta",
@@ -103,7 +103,7 @@ export const NoProjectsEmptyState = observer(function NoProjectsEmptyState() {
103103
</Link>
104104
) : (
105105
<Link href={`/${workspaceSlug}/profile/${currentUser?.id}`}>
106-
<span className="relative flex size-4 items-center justify-center rounded-full bg-gray-700 p-4 capitalize text-on-color text-13">
106+
<span className="relative flex size-4 items-center justify-center rounded-full bg-[#028375] p-4 capitalize text-on-color text-13">
107107
{(currentUser?.email ?? currentUser?.display_name ?? "?")[0]}
108108
</span>
109109
</Link>
@@ -150,7 +150,7 @@ export const NoProjectsEmptyState = observer(function NoProjectsEmptyState() {
150150
{EMPTY_STATE_DATA.map((item) => {
151151
const isStateComplete = isComplete(item.flag);
152152
return (
153-
<div key={item.id} className="flex flex-col p-4 bg-surface-1 rounded-xl border border-subtle/40">
153+
<div key={item.id} className="flex flex-col p-4 bg-layer-2 rounded-xl border border-subtle">
154154
<div
155155
className={cn("grid place-items-center bg-surface-2 rounded-full size-9 mb-3 text-placeholder", {
156156
"text-accent-primary bg-accent-primary/10": !isStateComplete,
@@ -187,7 +187,7 @@ export const NoProjectsEmptyState = observer(function NoProjectsEmptyState() {
187187
) : (
188188
<button
189189
type="button"
190-
className="text-accent-primary hover:text-accent-secondary text-13 font-medium"
190+
className="text-accent-primary hover:text-accent-secondary text-13 font-medium text-left"
191191
onClick={item.cta.onClick}
192192
>
193193
{t(item.cta.text)}

apps/web/core/components/home/widgets/empty-states/recents.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function RecentsEmptyState({ type }: { type: string }) {
3333
const { assetKey, text } = getDisplayContent(type);
3434

3535
return (
36-
<div className="flex items-center justify-center py-10 bg-layer-1 w-full">
36+
<div className="flex items-center justify-center py-10 bg-layer-1 w-full rounded-lg">
3737
<EmptyStateCompact assetKey={assetKey} assetClassName="size-20" title={t(text)} />
3838
</div>
3939
);

apps/web/core/components/home/widgets/empty-states/stickies.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { EmptyStateCompact } from "@plane/propel/empty-state";
44
export function StickiesEmptyState() {
55
const { t } = useTranslation();
66
return (
7-
<div className="flex items-center justify-center py-10 bg-layer-1 w-full">
7+
<div className="flex items-center justify-center py-10 bg-layer-1 w-full rounded-lg">
88
<EmptyStateCompact assetKey="note" assetClassName="size-20" title={t("stickies.empty_state.simple")} />
99
</div>
1010
);

apps/web/core/components/issues/layout-quick-actions.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
"use client";
2-
31
import { observer } from "mobx-react";
42
import { TOAST_TYPE, setToast } from "@plane/propel/toast";
53
import type { TContextMenuItem } from "@plane/ui";
64
import { CustomMenu } from "@plane/ui";
75
import { copyUrlToClipboard, cn } from "@plane/utils";
86
import { useLayoutMenuItems } from "@/components/common/quick-actions-helper";
7+
import { Ellipsis, MoreHorizontal } from "lucide-react";
8+
import { IconButton } from "@plane/propel/icon-button";
99

1010
type Props = {
1111
workspaceSlug: string;
1212
projectId: string;
1313
storeType: "PROJECT" | "EPIC";
1414
};
1515

16-
export const LayoutQuickActions: React.FC<Props> = observer((props) => {
16+
export const LayoutQuickActions = observer(function LayoutQuickActions(props: Props) {
1717
const { workspaceSlug, projectId, storeType } = props;
1818

1919
const layoutLink = `${workspaceSlug}/projects/${projectId}/${storeType === "EPIC" ? "epics" : "issues"}`;
@@ -49,6 +49,7 @@ export const LayoutQuickActions: React.FC<Props> = observer((props) => {
4949
closeOnSelect
5050
maxHeight="lg"
5151
className="flex-shrink-0 flex items-center justify-center size-[26px] rounded"
52+
customButton={<IconButton size="lg" variant="tertiary" icon={Ellipsis} />}
5253
>
5354
{MENU_ITEMS.map((item) => {
5455
if (item.shouldRender === false) return null;

apps/web/core/components/issues/peek-overview/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ export const IssuePeekOverviewHeader = observer(function IssuePeekOverviewHeader
220220
</div>
221221
<div className="flex items-center gap-x-4">
222222
<NameDescriptionUpdateStatus isSubmitting={isSubmitting} />
223-
<div className="flex items-center gap-4">
223+
<div className="flex items-center gap-2">
224224
{currentUser && !isArchived && (
225225
<IssueSubscription workspaceSlug={workspaceSlug} projectId={projectId} issueId={issueId} />
226226
)}

0 commit comments

Comments
 (0)