mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
6c6b764421
* chore: pages empty state improvement * chore: workspace all issues empty state improvement * chore: profile issue empty state improvement * chore: empty state sm size updated * chore: project view empty state image updated * chore: dashboard widgets permission uodated * chore: draft issues and project issue empty state image * chore: active cycle label updated
85 lines
2.0 KiB
TypeScript
85 lines
2.0 KiB
TypeScript
import React from "react";
|
|
// icons
|
|
import { Activity, CircleUser, KeyRound, LucideProps, Settings2 } from "lucide-react";
|
|
|
|
export const PROFILE_ACTION_LINKS: {
|
|
key: string;
|
|
label: string;
|
|
href: string;
|
|
highlight: (pathname: string) => boolean;
|
|
Icon: React.FC<LucideProps>;
|
|
}[] = [
|
|
{
|
|
key: "profile",
|
|
label: "Profile",
|
|
href: `/profile`,
|
|
highlight: (pathname: string) => pathname === "/profile",
|
|
Icon: CircleUser,
|
|
},
|
|
{
|
|
key: "change-password",
|
|
label: "Change password",
|
|
href: `/profile/change-password`,
|
|
highlight: (pathname: string) => pathname === "/profile/change-password",
|
|
Icon: KeyRound,
|
|
},
|
|
{
|
|
key: "activity",
|
|
label: "Activity",
|
|
href: `/profile/activity`,
|
|
highlight: (pathname: string) => pathname === "/profile/activity",
|
|
Icon: Activity,
|
|
},
|
|
{
|
|
key: "preferences",
|
|
label: "Preferences",
|
|
href: `/profile/preferences/theme`,
|
|
highlight: (pathname: string) => pathname.includes("/profile/preferences"),
|
|
Icon: Settings2,
|
|
},
|
|
];
|
|
|
|
export const PROFILE_VIEWER_TAB = [
|
|
{
|
|
route: "",
|
|
label: "Summary",
|
|
selected: "/[workspaceSlug]/profile/[userId]",
|
|
},
|
|
];
|
|
|
|
export const PROFILE_ADMINS_TAB = [
|
|
{
|
|
route: "assigned",
|
|
label: "Assigned",
|
|
selected: "/[workspaceSlug]/profile/[userId]/assigned",
|
|
},
|
|
{
|
|
route: "created",
|
|
label: "Created",
|
|
selected: "/[workspaceSlug]/profile/[userId]/created",
|
|
},
|
|
{
|
|
route: "subscribed",
|
|
label: "Subscribed",
|
|
selected: "/[workspaceSlug]/profile/[userId]/subscribed",
|
|
},
|
|
];
|
|
|
|
export const PROFILE_EMPTY_STATE_DETAILS = {
|
|
assigned: {
|
|
key: "assigned",
|
|
title: "No issues are assigned to you",
|
|
description: "Issues assigned to you can be tracked from here.",
|
|
},
|
|
subscribed: {
|
|
key: "created",
|
|
title: "No issues yet",
|
|
description: "All issues created by you come here, track them here directly.",
|
|
},
|
|
created: {
|
|
key: "subscribed",
|
|
title: "No issues yet",
|
|
description: "Subscribe to issues you are interested in, track all of them here.",
|
|
},
|
|
};
|