Repository navigation
View Jira work on a board and filter the current sprint - #28633
Conversation
2704015 to
a435ade
Compare
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ➖ Normal Merge Risk: ⚪ Minimal · up to
|
There was a problem hiding this comment.
🧹 Nitpick comments: 1
src/renderer/src/components/task-page/jira/Content.tsx: 1
73-76: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winReuse
getTaskPageJiraStatusOrderRuntimeScopeKeyfor the board scope key.Lines 73-76 use the same
JSON.stringifycomposition asgetTaskPageJiraStatusOrderRuntimeScopeKeyinsrc/renderer/src/components/task-page-jira-status-order.ts. If the two copies diverge, the board scope and the status-order scope stop matching. Call the shared helper instead.♻️ Proposed refactor
- const boardScopeKey = JSON.stringify([ - jiraTaskSourceScopeKey, - boardTarget ? getEnvironmentRuntimeContextKey(runtimeTargetEnvironmentId(boardTarget)) : null - ]) + const boardScopeKey = getTaskPageJiraStatusOrderRuntimeScopeKey( + jiraTaskSourceScopeKey, + boardTarget + )
ℹ️ Review info
⚙️ Run configuration
- Configuration used: Repository UI
- Review profile: CHILL
- Plan: Advanced
- Run ID:
85830fb9-1985-4c15-ad5d-77b5272ba9ac
📒 Files selected for processing: 41
src/main/jira/issues.test.tssrc/main/jira/jira-preset-filters.test.tssrc/main/jira/jira-transition-queries.tssrc/main/runtime/rpc/methods/jira-board-filter-rpc.test.tssrc/preload/api/jira-bridge.tssrc/renderer/src/components/jira-issue-workspace-request-lifetime.test.tsxsrc/renderer/src/components/task-page-jira-board-detail-integration.test.tsxsrc/renderer/src/components/task-page-jira-board-move-dialog.tsxsrc/renderer/src/components/task-page-jira-board-move.tssrc/renderer/src/components/task-page-jira-board-sections.test.tssrc/renderer/src/components/task-page-jira-board-sections.tssrc/renderer/src/components/task-page-jira-board-transitions.test.tssrc/renderer/src/components/task-page-jira-board-transitions.tssrc/renderer/src/components/task-page-jira-board-view.test.tsxsrc/renderer/src/components/task-page-jira-board-view.tsxsrc/renderer/src/components/task-page-jira-board.test.tsxsrc/renderer/src/components/task-page-jira-board.tsxsrc/renderer/src/components/task-page-jira-status-order-session.test.tsxsrc/renderer/src/components/task-page-jira-status-order.tssrc/renderer/src/components/task-page-jira-view-controls.tsxsrc/renderer/src/components/task-page/jira/Content.board-owner.test.tsxsrc/renderer/src/components/task-page/jira/Content.tsxsrc/renderer/src/components/use-task-page-jira-list-effects.test.tssrc/renderer/src/components/use-task-page-jira-list-effects.tssrc/renderer/src/components/use-task-page-jira-list-projection.tssrc/renderer/src/components/use-task-page-jira-list-state.tssrc/renderer/src/i18n/locales/en.jsonsrc/renderer/src/lib/jira-board-drag-payload.test.tssrc/renderer/src/lib/jira-board-drag-payload.tssrc/renderer/src/runtime/runtime-jira-board-filter-compatibility.test.tssrc/renderer/src/runtime/runtime-jira-client.test.tssrc/renderer/src/runtime/runtime-jira-client.tssrc/renderer/src/store/slices/jira-collection-read-actions.tssrc/renderer/src/store/slices/jira-sprint-filter-cache.test.tssrc/renderer/src/store/slices/jira-status-filter-cache.test.tssrc/shared/jira-jql-predicate.test.tssrc/shared/jira-jql-predicate.tssrc/shared/jira-preset-jql.tssrc/shared/jira-types.tssrc/shared/protocol-version.tssrc/shared/rpc-contract/jira-quick-filter-params.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.
Reuse the accepted mutation event for required comments, preserve discarded-read fences under StrictMode, and verify combined board/detail ownership. Co-authored-by: Eugenio Valeiras <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]>
be2f17b to
99d962b
Compare
main moved 180 commits. The one conflict is en.json, where the Jira board (stablyai#28633) and this branch both appended keys to the end of auto.components.TaskPage: main's jiraBoardEmptyColumn comes first, then the four labelCount and memberCount sentences from this branch. The other five catalogs merged on their own. Against main the branch still removes the same twelve keys and adds the same 24 in all six catalogs, with no other value changed.
ELI5
See Jira issues as cards in workflow columns, narrow them to the current sprint, and move a card through the status changes Jira actually permits.
What Changed
List and Board share the loaded issues, planning columns, saved query, status filters, source/site, detail preview, and workspace actions. Configured columns remain visible when empty; older hosts without column names use populated status lanes.
Drag or the keyboard Move menu selects an available Jira workflow action and collects its required fields. Board and detail saves use the same mutation queue, so an earlier rejected detail edit cannot undo a later board move. A successful required-comment move refreshes an already-open detail timeline; rejection retains the comment draft and retry. Column metadata and pending forms follow the captured Jira owner/session, while unrelated UI focus preserves the form.
Current sprint adds Jira's open-sprint condition through the existing optional host filters. Presets retain strict reads, Cloud project bounds, pagination and selected statuses. Saved/typed queries are classified before sprint composition, preserve ordering and report excessive length. Has Workspace reads remain independent, and its disabled sprint switch retains the preference for returning to other views.
Why
Reusing the issue collection, workflow form, captured owner and mutation queue keeps the two views consistent and avoids competing caches or rollback writers. Jira's workflow actions determine valid moves instead of guessed statuses. Optional filters and capability checks keep mixed-version hosts from silently dropping sprint or status selections.
Adapted #13054 by Eugenio Valeiras (@EugeValeiras). Eugenio and the original Claude Fable 5 coauthor remain credited in this branch's contributor trailers.
Linked Issue
References the existing board proposal #13054. This maintainer feature has no separate existing issue.
Visual Proof
Fresh hidden macOS Electron proof at
99d962b4343b640b4aa55d1117587ba41ec3b386passes 54/54 rendered checks, with no renderer errors and all 63 source hashes stable during the run. Final candidate602d0b9c77513494b2eff96ef0426db53638e8addiffers only in two test modules: the exported fixture emits identical JavaScript, 61 other hash-fenced files are unchanged, and all production board, detail, actions and assignee sources are identical. The test corrections use the actual client contracts, preserve literal success/failure outcomes and accept optional sites. The production list, board, issue detail, shared save queue and required-field form use labeled synthetic Jira responses. Status preview and Edit as JQL include selected status and Current sprint.Both explicit and default Jira owners were exercised. An earlier rejected detail save leaves the later queued board move in Done while its provider response is still pending. Comments reload exactly once after acceptance and never on rejection. Unrelated UI host selection preserves the form; replacing the captured Jira owner session discards it. Light and dark layouts were inspected.
The fixture makes the production sheet nonmodal and suppresses outside dismissal solely to keep board and detail owners concurrently reachable; their widgets, save queue and workflow form are unchanged. It does not exercise live Jira, Windows/Linux renderers or an actual SSH host.
The previous corrected-head
c87f1b0bproof is retained below as historical evidence.The retained media below show earlier hidden macOS Electron fixtures and remain historical layout evidence.
Current sprint reduces the fixture collection from three issues to two:
The keyboard Move menu and drag both open the required resolution/comment form; submitting places the card in Done:
Testing
The current actual-main candidate passes 351 tests in 42 files, including the landed assignee suites. It includes actual mounted BoardView/detail/queue cases for explicit and default owners, transient earlier-save rejection, successful/rejected required comments and preserved retry drafts. Omitting the board's comment event reproduces two timeline failures. Other regressions cover discarded StrictMode issue/comment/transition reads, owner-session lane refresh, unrelated-focus form lifetime, combined status/sprint cache results, exact saved JQL, linked mode, strict argument forwarding, Cloud project bounds and older-host capability refusal.
All seven changed-code quality checks and both direct full-file oxlint/anti-slop scans pass across 46 changed source files. The column-name assertion moved to a bounded board test, and the optimistic-edit suite shares its fixture with two queued-status tests; all 29 cases from current landed main, their 24 test labels and 66 assertion calls are preserved. The landed assignee feature separately covers its changed picker behavior. No rule was suppressed or length limit increased. RPC catalog, localization catalogs, extraction and coverage checks pass. The current-sprint preview mismatch was reproduced before correction; the new component regressions assert preview and Edit-as-JQL handoff with the switch both on and off. Actual landed main composition is complete. Fresh rendered proof is complete. The final checked test corrections pass 29 affected tests in two files; the rendered production sources are unchanged. Exact final web compilation passes at
602d0b9c77513494b2eff96ef0426db53638e8ad. Node compilation passed at the rendered head and carries through the verified unchanged production sources. Current GitHub gates remain with the coordinator before merge. The inheritedsrc/main/ipc/jira.tslength failure is byte-identical to actual main and is being corrected by the image PR; own changed source files pass direct full-file lint. No full lint, packaging, live Jira, Windows/Linux renderer or actual SSH execution claim is made.AI Disclosure
Review
Focused tests and full-file lint pass on the actual-main candidate. Fresh production-source rendered proof, node compilation on the unchanged production sources, and exact final web compilation pass. Current GitHub gates remain with the coordinator before merge. The optional column field is safe for older clients; current-sprint preset requests require their advertised capability. Unsupported workflow fields stay in Jira.
Agent skill upstream boundary
Notes
Based on actual merged main, including saved filters, status filters, planning columns and corrected transitions. Copied prerequisite history has been removed; this branch contains only board/sprint changes and their integration corrections. Reads and writes remain on the captured Jira host/site. Existing folder-workspace actions and mobile request compatibility are retained; no new stream opcode, persistence format, OS shortcut or Git-provider behavior is introduced.
Checklist