Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

fix(command-palette): default to planned status when creating a task from backlog

Andrej020ec962e44f
diff --git a/apps/web/src/components/command-palette/index.tsx b/apps/web/src/components/command-palette/index.tsx
index 94e743c94..75e646f90 100644
--- a/apps/web/src/components/command-palette/index.tsx
+++ b/apps/web/src/components/command-palette/index.tsx
@@ -54,6 +54,7 @@ function CommandPalette() {
const [isCreateWorkspaceOpen, setIsCreateWorkspaceOpen] = useState(false);
const projectIdFromRoute =
location.pathname.match(/\/project\/([^/]+)/)?.[1] ?? undefined;
+ const isBacklogView = location.pathname.endsWith("/backlog");
useRegisterShortcuts({
shortcuts: {
@@ -318,6 +319,7 @@ function CommandPalette() {
<CreateTaskModal
open={isCreateTaskOpen}
projectId={projectIdFromRoute}
+ status={isBacklogView ? "planned" : undefined}
onClose={() => setIsCreateTaskOpen(false)}
/>
<CreateWorkspaceModal