Repository navigation
Conversation
📝 WalkthroughWalkthroughJira transition handling now maps expanded transition fields and supports transition-required fields and comments in issue updates. Shared helpers classify transitions as single-click, supported form, or unsupported. RPC and IPC validation accept the new transition payload properties with shape checks. The Jira issue workspace independently loads transitions and provides retry handling, unsupported-transition messaging, resolution selection, comment input, and conditional popover reset after updates. Tests cover mapping, fallback behavior, payload construction, validation utilities, and UI-supporting classification logic. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🧹 Nitpick comments (3)
src/shared/jira-transition-fields.ts (1)
58-60: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winConsider exporting a value-key helper alongside the label helper.
JiraIssueWorkspace.tsxderives an option key withvalue.id ?? value.value ?? value.name ?? ''(Line 770) while the initial draft is derived asid ?? name ?? value(Line 422). Centralizing the identity derivation here would keep both call sites consistent.♻️ Proposed helper
export function transitionAllowedValueLabel(value: JiraCreateFieldAllowedValue): string { return value.name ?? value.value ?? value.id ?? 'Option' } + +export function transitionAllowedValueKey(value: JiraCreateFieldAllowedValue): string { + return value.id ?? value.value ?? value.name ?? '' +}src/renderer/src/components/JiraIssueWorkspace.tsx (2)
358-385: 🩺 Stability & Availability | 🔵 Trivial | ⚡ Quick win
reloadTransitionslacks the stale-response guard used by the load effect.If the user retries and then switches issues, the in-flight result still lands in
transitions/transitionsErrorfor the new issue. CapturerequestIdRef.currentand compare before eachset*, as the effect at Lines 264-290 does.
763-778: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winPrefer the shadcn
Selectprimitive over a raw<select>.Native
<select>won't pick up popover styling/tokens and diverges from the rest of the surface. As per coding guidelines, UI work must "use shadcn primitives fromsrc/renderer/src/components/ui/".Source: Coding guidelines
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: f52889a7-ebf6-4bc0-811e-ce1033805ce6
📒 Files selected for processing (8)
src/main/ipc/jira.tssrc/main/jira/issues.test.tssrc/main/jira/issues.tssrc/main/runtime/rpc/methods/jira.tssrc/renderer/src/components/JiraIssueWorkspace.tsxsrc/shared/jira-transition-fields.test.tssrc/shared/jira-transition-fields.tssrc/shared/jira-types.ts
Sync update (
|
e2a054a to
e4ab9fe
Compare
Summary
listTransitionsrequestsexpand=transitions.fieldsand maps required-field metadata (with bare-list fallback).updateIssuepostsfields/ comment update with the transition id.Fixes
Closes #10565
Test plan
ELI5
Changing Jira issue status that requires fields like Resolution now prompts for them in Orca instead of failing silently. Simple transitions stay one-click; complex ones get a small form or a clear open-in-Jira path.