Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

refactor(jira): group status metadata owners (#36138)

Neild61f8ba92fc4
diff --git a/config/focus-setting-read-baseline.txt b/config/focus-setting-read-baseline.txt
index 41a7d20839c..38280600209 100644
--- a/config/focus-setting-read-baseline.txt
+++ b/config/focus-setting-read-baseline.txt
@@ -158,7 +158,7 @@
1 src/renderer/src/components/tab-bar/web-runtime-tab-move-mirror.ts
1 src/renderer/src/components/tab-bar/windows-shell-menu-visibility.ts
3 src/renderer/src/components/tab-group/useTabGroupCreationCommands.ts
-1 src/renderer/src/components/task-page-jira-status-order.ts
+1 src/renderer/src/components/task-page/jira/task-page-jira-status-order.ts
2 src/renderer/src/components/task-page/jira/IssueAssigneeField.tsx
1 src/renderer/src/components/task-page/linear/Filters.tsx
2 src/renderer/src/components/task-page/linear/task-page-linear-issue-model.tsx
diff --git a/config/scripts/ci-shard-timings.json b/config/scripts/ci-shard-timings.json
index 362b0416247..5c107ce8d31 100644
--- a/config/scripts/ci-shard-timings.json
+++ b/config/scripts/ci-shard-timings.json
@@ -9427,7 +9427,7 @@
"src/renderer/src/components/task-page-jira-sort-controls.test.tsx": 721,
"src/renderer/src/components/task-page-jira-sorting.test.ts": 107,
"src/renderer/src/components/task-page-jira-status-catalog.test.ts": 60,
- "src/renderer/src/components/task-page-jira-status-order-session.test.tsx": 2111,
+ "src/renderer/src/components/task-page/jira/task-page-jira-status-order-session.test.tsx": 2111,
"src/renderer/src/components/task-page/jira/task-page-jira-text-fallback-notice.test.tsx": 375,
"src/renderer/src/components/task-page-jira-workspace-actions.test.tsx": 1971,
"src/renderer/src/components/task-page/task-page-list-chrome-visibility.test.ts": 33,
diff --git a/src/renderer/src/components/task-page-jira-grouping.test.ts b/src/renderer/src/components/task-page-jira-grouping.test.ts
index 3414caf6bce..bb399426fd1 100644
--- a/src/renderer/src/components/task-page-jira-grouping.test.ts
+++ b/src/renderer/src/components/task-page-jira-grouping.test.ts
@@ -14,7 +14,7 @@ import { groupJiraIssuesByStatus, TaskPageJiraIssueList } from './task-page-jira
import {
getSingleJiraProjectScope,
loadTaskPageJiraProjectStatusOrder
-} from './task-page-jira-status-order'
+} from './task-page/jira/task-page-jira-status-order'
import type { JiraIssue, JiraProjectStatusOrder } from '../../../shared/jira/jira-types'
const { jiraGetProjectStatusOrderMock } = vi.hoisted(() => ({
diff --git a/src/renderer/src/components/task-page-jira-issue-cells.tsx b/src/renderer/src/components/task-page-jira-issue-cells.tsx
index 68afee89d5d..96a5ab7cb70 100644
--- a/src/renderer/src/components/task-page-jira-issue-cells.tsx
+++ b/src/renderer/src/components/task-page-jira-issue-cells.tsx
@@ -9,7 +9,7 @@ import {
formatJiraStoryPoints,
type JiraListColumnId
} from './jira-list-columns'
-import { getJiraPriorityTone } from './task-page-jira-status-tone'
+import { getJiraPriorityTone } from './task-page/jira/task-page-jira-status-tone'
const MUTED_CELL = 'block truncate text-[12px] text-muted-foreground'
diff --git a/src/renderer/src/components/task-page/jira/Content.tsx b/src/renderer/src/components/task-page/jira/Content.tsx
index 24db49b2d10..7bf30c8972e 100644
--- a/src/renderer/src/components/task-page/jira/Content.tsx
+++ b/src/renderer/src/components/task-page/jira/Content.tsx
@@ -14,7 +14,7 @@ import { TaskPageJiraIssueList } from '@/components/task-page-jira-issue-list'
import { TaskPageJiraBoardView } from '@/components/task-page-jira-board-view'
import { TaskPageJiraViewControls } from '@/components/task-page-jira-view-controls'
import { formatRelativeTime } from '../task-page-source-context'
-import { getJiraStatusTone } from '@/components/task-page-jira-status-tone'
+import { getJiraStatusTone } from '@/components/task-page/jira/task-page-jira-status-tone'
import JiraIssueWorkspace from '@/components/JiraIssueWorkspace'
import { TaskPageLinearContent } from '../linear/Content'
import {
diff --git a/src/renderer/src/components/task-page-jira-status-order-session.test.tsx b/src/renderer/src/components/task-page/jira/task-page-jira-status-order-session.test.tsx
similarity index 94%
rename from src/renderer/src/components/task-page-jira-status-order-session.test.tsx
rename to src/renderer/src/components/task-page/jira/task-page-jira-status-order-session.test.tsx
index 5adbbe4d9b6..2815656b67c 100644
--- a/src/renderer/src/components/task-page-jira-status-order-session.test.tsx
+++ b/src/renderer/src/components/task-page/jira/task-page-jira-status-order-session.test.tsx
@@ -3,14 +3,14 @@
import { useState } from 'react'
import { act, cleanup, renderHook, waitFor } from '@testing-library/react'
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
-import type { JiraIssue, JiraProjectStatusOrder } from '../../../shared/jira/jira-types'
-import type { TaskSourceContext } from '../../../shared/task-source-context'
+import type { JiraIssue, JiraProjectStatusOrder } from '../../../../../shared/jira/jira-types'
+import type { TaskSourceContext } from '../../../../../shared/task-source-context'
import type { RuntimeJiraSettings } from '@/runtime/runtime-jira-target'
-import type { TaskPageLinearBoardModel } from './task-page/linear/use-task-page-linear-board'
-import type { TaskPageLinearCollectionEffectsModel } from './task-page/linear/use-task-page-linear-collection-effects'
+import type { TaskPageLinearBoardModel } from '../linear/use-task-page-linear-board'
+import type { TaskPageLinearCollectionEffectsModel } from '../linear/use-task-page-linear-collection-effects'
import { useTaskPageJiraListProjection } from '@/components/use-task-page-jira-list-projection'
import { useTaskPageJiraListEffects } from '@/components/use-task-page-jira-list-effects'
-import { getTaskSourceCacheScope } from '../../../shared/task-source-context'
+import { getTaskSourceCacheScope } from '../../../../../shared/task-source-context'
import { getJiraRuntimeTarget } from '@/runtime/runtime-jira-target'
import { bumpProviderRuntimeSessionGeneration } from '@/lib/provider-runtime-context'
diff --git a/src/renderer/src/components/task-page-jira-status-order.ts b/src/renderer/src/components/task-page/jira/task-page-jira-status-order.ts
similarity index 90%
rename from src/renderer/src/components/task-page-jira-status-order.ts
rename to src/renderer/src/components/task-page/jira/task-page-jira-status-order.ts
index 3ece3d32726..abdf5db801f 100644
--- a/src/renderer/src/components/task-page-jira-status-order.ts
+++ b/src/renderer/src/components/task-page/jira/task-page-jira-status-order.ts
@@ -1,8 +1,9 @@
-import type { JiraIssue, JiraProjectStatusOrder } from '../../../shared/jira/jira-types'
-import type { RuntimeClientTarget } from '../../../shared/runtime-client-target'
+import type { JiraIssue, JiraProjectStatusOrder } from '../../../../../shared/jira/jira-types'
+import type { RuntimeClientTarget } from '../../../../../shared/runtime-client-target'
import { runtimeTargetEnvironmentId } from '@/runtime/runtime-client-target'
import { getEnvironmentRuntimeContextKey } from '@/lib/provider-runtime-context'
-import { jiraGetProjectStatusOrder, type RuntimeJiraSettings } from '@/runtime/runtime-jira-client'
+import { jiraGetProjectStatusOrder } from '@/runtime/runtime-jira-client'
+import type { RuntimeJiraSettings } from '@/runtime/runtime-jira-target'
import { createMetadataRequestStore, loadMetadata } from '@/hooks/metadata-request-cache'
export type TaskPageJiraProjectScope = {
diff --git a/src/renderer/src/components/task-page-jira-status-tone.ts b/src/renderer/src/components/task-page/jira/task-page-jira-status-tone.ts
similarity index 100%
rename from src/renderer/src/components/task-page-jira-status-tone.ts
rename to src/renderer/src/components/task-page/jira/task-page-jira-status-tone.ts
diff --git a/src/renderer/src/components/use-task-page-jira-list-effects.ts b/src/renderer/src/components/use-task-page-jira-list-effects.ts
index 642bb99615c..9783a0a7d87 100644
--- a/src/renderer/src/components/use-task-page-jira-list-effects.ts
+++ b/src/renderer/src/components/use-task-page-jira-list-effects.ts
@@ -12,7 +12,7 @@ import {
getTaskPageJiraStatusOrderScopeKey,
getTaskPageJiraStatusOrderRuntimeScopeKey,
loadTaskPageJiraProjectStatusOrder
-} from '@/components/task-page-jira-status-order'
+} from '@/components/task-page/jira/task-page-jira-status-order'
import { createTaskPageJiraLoadFailureState } from '@/components/task-page/jira/task-page-jira-load-state'
import { searchTaskPageJiraIssues } from '@/components/task-page/jira/task-page-jira-search'
import { JIRA_ITEM_LIMIT } from './task-page/task-page-source-context'
diff --git a/src/renderer/src/components/use-task-page-jira-list-projection.ts b/src/renderer/src/components/use-task-page-jira-list-projection.ts
index 79d6f11e6b4..a67ad29ce4f 100644
--- a/src/renderer/src/components/use-task-page-jira-list-projection.ts
+++ b/src/renderer/src/components/use-task-page-jira-list-projection.ts
@@ -5,7 +5,7 @@ import {
getSingleJiraProjectScope,
getTaskPageJiraStatusOrderScopeKey,
getTaskPageJiraStatusOrderRuntimeScopeKey
-} from '@/components/task-page-jira-status-order'
+} from '@/components/task-page/jira/task-page-jira-status-order'
import { ipcOrRuntimeTargetForHostId } from '@/runtime/runtime-client-target'
import {
buildJiraIssueWorkspaceAttachmentIndex,