From 4cfbb1f89af0b46dd1c10a45b3148c064e550402 Mon Sep 17 00:00:00 2001 From: Karthik Kumar Date: Thu, 25 Dec 2025 15:39:18 +0000 Subject: [PATCH 1/3] feat: Work Items state in the search result --- apps/api/plane/app/views/search/base.py | 1 + .../components/power-k/ui/modal/search-results-map.tsx | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/apps/api/plane/app/views/search/base.py b/apps/api/plane/app/views/search/base.py index f1e69265323..14bd35a2fb1 100644 --- a/apps/api/plane/app/views/search/base.py +++ b/apps/api/plane/app/views/search/base.py @@ -106,6 +106,7 @@ def filter_issues(self, query, slug, project_id, workspace_search): "project__identifier", "project_id", "workspace__slug", + "state" )[:100] def filter_cycles(self, query, slug, project_id, workspace_search): diff --git a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx index 8233e2f503c..6a53c66377f 100644 --- a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx +++ b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx @@ -14,6 +14,7 @@ import type { TPowerKSearchResultsKeys } from "@/components/power-k/core/types"; // plane web imports import { SEARCH_RESULTS_GROUPS_MAP_EXTENDED } from "@/plane-web/components/command-palette/power-k/search/search-results-map"; import { IssueIdentifier } from "@/plane-web/components/issues/issue-details/issue-identifier"; +import { StateDropdown } from "@/components/dropdowns/state/dropdown"; export type TPowerKSearchResultGroupDetails = { icon?: React.ComponentType<{ className?: string }>; @@ -43,7 +44,14 @@ export const POWER_K_SEARCH_RESULTS_GROUPS_MAP: Record{" "} + /> + {workItem.name} ), From cd20fc927b8911e596a4858371d03ac46a1ba3ac Mon Sep 17 00:00:00 2001 From: karthik7406 Date: Thu, 1 Jan 2026 20:28:29 +0530 Subject: [PATCH 2/3] Updated state to state_id in the API and included same changes in UI --- apps/api/plane/app/views/search/base.py | 2 +- .../core/components/power-k/ui/modal/search-results-map.tsx | 5 ++--- packages/types/src/workspace.ts | 1 + 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/api/plane/app/views/search/base.py b/apps/api/plane/app/views/search/base.py index 14bd35a2fb1..36b48cb6140 100644 --- a/apps/api/plane/app/views/search/base.py +++ b/apps/api/plane/app/views/search/base.py @@ -106,7 +106,7 @@ def filter_issues(self, query, slug, project_id, workspace_search): "project__identifier", "project_id", "workspace__slug", - "state" + "state_id" )[:100] def filter_cycles(self, query, slug, project_id, workspace_search): diff --git a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx index 6a53c66377f..ca827235e79 100644 --- a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx +++ b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx @@ -46,11 +46,10 @@ export const POWER_K_SEARCH_RESULTS_GROUPS_MAP: Record {workItem.name} diff --git a/packages/types/src/workspace.ts b/packages/types/src/workspace.ts index 8c37ff23912..8b5a14d8e9e 100644 --- a/packages/types/src/workspace.ts +++ b/packages/types/src/workspace.ts @@ -129,6 +129,7 @@ export interface IWorkspaceIssueSearchResult { sequence_id: number; workspace__slug: string; type_id: string; + state_id: string; } export interface IWorkspacePageSearchResult { From a00ddcc54ffa23cb3dfac8cb0216de9aa40c1f9e Mon Sep 17 00:00:00 2001 From: karthik7406 Date: Thu, 1 Jan 2026 20:44:59 +0530 Subject: [PATCH 3/3] handled review comments and removed additional toString checks --- .../web/core/components/power-k/ui/modal/search-results-map.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx index ca827235e79..b67c227c116 100644 --- a/apps/web/core/components/power-k/ui/modal/search-results-map.tsx +++ b/apps/web/core/components/power-k/ui/modal/search-results-map.tsx @@ -47,7 +47,7 @@ export const POWER_K_SEARCH_RESULTS_GROUPS_MAP: Record