π₯π₯π₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.
TypeScript boardsbug-trackerdjangodockerganttissue-trackerjirajira-alternativekanbanlinearpostgresqlproduct-managementproject-managementproject-planningpythonreactredistypesciptvitework-management
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { FileText, GithubIcon, MessageSquare, Rocket } from "lucide-react";
// components
import type { TPowerKCommandConfig } from "@/components/power-k/core/types";
// hooks
import { usePowerK } from "@/hooks/store/use-power-k";
/**
* Help commands - Help related commands
*/
export const usePowerKHelpCommands = (): TPowerKCommandConfig[] => {
// store
const { toggleShortcutsListModal } = usePowerK();
return [
{
id: "open_keyboard_shortcuts",
type: "action",
group: "help",
i18n_title: "power_k.help_actions.open_keyboard_shortcuts",
icon: Rocket,
modifierShortcut: "cmd+/",
action: () => toggleShortcutsListModal(true),
isEnabled: () => true,
isVisible: () => true,
closeOnSelect: true,
},
{
id: "open_plane_documentation",
type: "action",
group: "help",
i18n_title: "power_k.help_actions.open_plane_documentation",
icon: FileText,
action: () => {
window.open("https://docs.plane.so/", "_blank", "noopener,noreferrer");
},
isEnabled: () => true,
isVisible: () => true,
closeOnSelect: true,
},
{
id: "join_forum",
type: "action",
group: "help",
i18n_title: "power_k.help_actions.join_forum",
icon: MessageSquare,
action: () => {
window.open("https://forum.plane.so", "_blank", "noopener,noreferrer");
},
isEnabled: () => true,
isVisible: () => true,
closeOnSelect: true,
},
{
id: "report_bug",
type: "action",
group: "help",
i18n_title: "power_k.help_actions.report_bug",
icon: GithubIcon,
action: () => {
window.open("https://github.com/makeplane/plane/issues/new/choose", "_blank", "noopener,noreferrer");
},
isEnabled: () => true,
isVisible: () => true,
closeOnSelect: true,
},
];
};