mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
5a32d10f96
* chore: replaced marimekko graph with a bar graph * chore: add bar onClick handler * chore: custom date filter for widgets * style: priority graph * chore: workspace profile activity pagination * chore: profile activity pagination * chore: user profile activity pagination * chore: workspace user activity csv download * chore: download activity button added * chore: workspace user pagination * chore: collabrator pagination * chore: field change * chore: recent collaborators pagination * chore: changed the collabrators * chore: collabrators list changed * fix: distinct users * chore: search filter in collaborators * fix: import error * chore: update priority graph x-axis values * chore: admin and member request validation * chore: update csv download request method * chore: search implementation for the collaborators widget * refactor: priority distribution card * chore: add enum for duration filters * chore: update inbox types * chore: add todos for refactoring --------- Co-authored-by: NarayanBavisetti <narayan3119@gmail.com>
72 lines
1.6 KiB
TypeScript
72 lines
1.6 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",
|
|
},
|
|
{
|
|
route: "activity",
|
|
label: "Activity",
|
|
selected: "/[workspaceSlug]/profile/[userId]/activity",
|
|
},
|
|
];
|