mirror of
https://github.com/makeplane/plane.git
synced 2026-07-13 05:49:40 +02:00
* init: pages app * dev: initailize all pages and stores * dev: page details * dev: command menu added * dev: fix old pages * dev: workspace pages * dev: workspace pages filter * dev: filters added * chore: moved pages app to the web app * chore: new command palette added * dev: app search endpoint * chore: global search and app switcher ui * chore: page editor * chore: remove separate pages app * dev: pages * fix: mention user * dev: issue entity search endpoint * dev: update entity search endpoint * dev: update entity search endpoint * chore: add app switcher to the projects app * chore: update root store --------- Co-authored-by: pushya22 <130810100+pushya22@users.noreply.github.com> Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
26 lines
822 B
TypeScript
26 lines
822 B
TypeScript
import { FileText, LayoutGrid } from "lucide-react";
|
|
// types
|
|
import { IWorkspaceDefaultSearchResult, IWorkspaceSearchResult } from "@plane/types";
|
|
|
|
export const pagesAppCommandGroups: {
|
|
[key: string]: {
|
|
icon: JSX.Element;
|
|
itemName: (item: any) => React.ReactNode;
|
|
path: (item: any) => string;
|
|
title: string;
|
|
};
|
|
} = {
|
|
page: {
|
|
icon: <FileText className="size-3" />,
|
|
itemName: (page: IWorkspaceDefaultSearchResult) => page?.name,
|
|
path: (page: IWorkspaceDefaultSearchResult) => `/${page?.workspace__slug}/pages/${page?.id}`,
|
|
title: "Pages",
|
|
},
|
|
workspace: {
|
|
icon: <LayoutGrid className="size-3" />,
|
|
itemName: (workspace: IWorkspaceSearchResult) => workspace?.name,
|
|
path: (workspace: IWorkspaceSearchResult) => `/${workspace?.slug}/pages`,
|
|
title: "Workspaces",
|
|
},
|
|
};
|