Skip to content

Pick Jira users for required Reporter and custom user fields - #31972

Merged
brennanb2025 merged 8 commits into
mainfrom
brennanb2025/sta-11541-jira-reporter-picker
Oct 23, 2026
Merged

brennanb2025 merged 8 commits into
mainfrom
brennanb2025/sta-11541-jira-reporter-picker

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 1 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​176 0 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​176
Prod 12 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​100 $\color{#cf222e}{\Huge{\mathbf{−}}}$​11 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​89

Problem

Creating a Jira issue fails when its create screen requires Reporter or another single-user field: Orca shows a text box, then treats a typed display name as a user identity. The task-page refactor lost the scalar-user schema branch while the earlier form and its tests remained outside the shipping path. The existing host mapping expects an actual user identity. Tracked in STA-11541.

User-facing change

Required single-user fields without supplied choices now use the existing Jira user picker. Search for a person and select their name; Orca submits their identity. If directory search is empty, denied, or still pending, a separate “Use known user ID” action lets someone deliberately choose an identity they already know. Typing a search alone never fills the required field. Per Brennan’s October 23 ruling, matching directory people appear first and the “Use known user ID” action comes last. Supplied metadata choices keep the existing Select and remain usable without directory search.

The chosen identity stays in the existing string draft, with only its display label held in the field component. Scalar identities pass through the existing submission builder and site-aware host mapping: accountId for Jira Cloud, normalized username/key in the existing name reference for Server and Data Center. No new saved field, wire operation, or host fallback is added. Assignee and multi-user comma-separated input keep their existing behavior, and Reporter still starts blank. Existing older-host capability checks continue to explain unsupported user-field creation after explicit identity selection.

Plan and review classification: FULL

Restore schema-directed selection in the shipping dialog, preserve supplied choices and explicit known identities, and retain the existing source, selection callback, draft, and host conversion mechanism. The new action is opt-in for the scalar-field caller only; other shared picker callers keep their behavior.

  • Small: 90 changed production lines across five production files against the PR merge base, excluding the shipping-dialog regression test and locale catalogs. This remains below the original 136-line stop.
  • Outside risky areas: renderer controls and pure conversion; the only host edit corrects a stale comment. Existing provider routing, capability checks, and user-reference formats are reused.
  • Not a repeat: fails the light-path criterion. The same Reporter incident was previously addressed in merged fix(jira): shape user-typed create fields and seed reporter with viewer #17456, and the later live-dialog refactor lost its schema branch. Full review remains required.
  • Local effect: the Jira create dialog, its existing picker, transient field label, and existing field conversion. No new submission route or ownership mechanism.

The field-local display label intentionally differs from the earlier parent map because it has no consumer outside its field. Existing source/project/site/type keys and metadata reloads scope its lifetime; the parent draft remains authoritative.

Validation

The replacement regression mounts the shipping TaskPageJiraIssueDialog and calls the real issue-creation hook and submission builder through to a mocked Jira runtime boundary. It covers directory selection, explicit identity selection with empty/denied/pending search, and a supplied-metadata selection contract. The metadata fixture is constructed contract coverage, not an observed live Jira response. Removing the shipping scalar schema branch prevents the main regression from finding its picker.

Existing host mutation tests cover Cloud accountId and Server name shaping; this change reuses those tests rather than adding a provider matrix.

Current head is 422e66b. The final sync merged main 6ed9382 without conflicts; the Reporter picker, field, dialog, regression and submission helper were unchanged by the merge. The full selected CI workflow passed on this head, including static analysis/typecheck, all five unit shards and both platform packages. A targeted local run of the shipping-dialog renderer regression also passed all five cases on this head, including actual people-first row order and selected-identity submission. The previously admitted Windows QA machine passed four explicitly named test files, 69 tests, including Cloud accountId/Server name shaping and runtime routing contracts.

The shipping Tasks → Jira → New Jira issue dialog was exercised on baseline and the previously QA’d head with the same constructed required-Reporter schema. At the previously QA’d head 0b82113, baseline submitted the display name Alex Rivera literally and choosing the person on the branch submitted cloud-alex. That broader evidence carries; the only later renderer change moves the explicit known-ID action below the people. Rendered checks also covered known identities with empty/denied search, supplied choices, custom-user replacement, nearby Assignee/Priority/multi-user fields, project/type/site resets, and synthetic success/failure/retry. The real renderer, draft, submission builder and preload/runtime dispatch ran; main Jira status/catalog/directory/create handlers returned fixtures. Supplied metadata choices were constructed contract coverage. Remote checks used the real runtime client with a mocked transport, rather than a paired host.

The lane owner accepted the bounded rendered-dialog and payload evidence for this renderer change. As the stated limit of the unchanged provider path, live Jira directory search and issue creation were not exercised: no Jira site is signed in on the QA machines, and this PR doesn't change the host request. The exercised isolated Windows profile had disconnected status, no viewer and no sites. Provider authorization/writes and rendered remote-host/network acceptance were not exercised; the existing host tests and real runtime-client transport contracts provide the separately described coverage.

The people-first ruling is implemented and independently reviewed, including a narrow check of the final main merge. Two full review rounds and the bounded ordering/merge checks are complete. The final Light UI check pairs the passing shipping-dialog renderer regression with the static renderer screenshot below; it is not a second full app QA round.

QA also reproduced a pre-existing double create dispatch when pressing Ctrl+Enter in Title on both baseline and branch; a button click dispatched once. This is tracked separately in STA-11751. No live duplicate Jira tickets were created during QA. In that earlier Windows run, test copies and drivers were stopped, assigned ports were clear, and readable real configuration hashes were unchanged; unreadable configuration paths do not establish hash parity. The final static-browser capture was also cleaned up and its CDP port released.

Rendered proof

These full-window screenshots show the shipping dialog against constructed Jira responses. They demonstrate the renderer behavior and submitted-identity flow described above, not acceptance by a live Jira site.

Baseline: a typed display name enables Create.

Baseline Reporter text field

Final head: the matching directory person appears above the explicit known-ID action. Searching alone leaves Create disabled. This is static proof of the exact shipping-dialog regression DOM with production styles, not a new running-app or live-provider check. Input values and popover geometry are restored for the static capture; the interactive renderer test separately verifies row order, selection and submission.

People-first Reporter results — static renderer proof

Branch: selecting the person displays Alex Rivera and submits cloud-alex.

Selected Reporter

@brennanb2025
brennanb2025 marked this pull request as ready for review October 22, 2026 10:30
@coderabbitai

coderabbitai Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f76e15a5-19fc-45a1-b4f7-3eaff3dc1e3d
📥 Commits

Reviewing files that changed from the base of the PR and between 58336a6 and 422e66b.

📒 Files selected for processing: 7
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/zh.json
🚧 Files skipped from review as they are similar to previous changes: 7
  • src/renderer/src/i18n/locales/en.json
  • src/renderer/src/i18n/locales/zh.json
  • src/renderer/src/i18n/locales/es.json
  • src/renderer/src/i18n/locales/pt.json
  • src/renderer/src/i18n/locales/fr.json
  • src/renderer/src/i18n/locales/ja.json
  • src/renderer/src/i18n/locales/ko.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 5 remain after this review.

📝 Walkthrough

Scalar Jira user fields in the issue dialog now use a Jira user picker when task-source context is available. The picker supports directory search and entry of a known user ID. The selected account ID is passed to create-field conversion as a trimmed string. Tests cover directory selection, known IDs across search outcomes, and supplied allowed values.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 422e6

No concrete defect is established in the reviewed locale changes. The known-ID ordering decision still needs product resolution before completion.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 6 files. (7 skipped: 7… Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Title check Passed The title clearly and concisely describes the primary change: enabling Jira user selection for required Reporter and custom user fields.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description is detailed and covers the problem, user-facing change, implementation approach, linked tracking issue, testing, limitations, and visual proof. It does not use all template headings an…
Full details: Description check

Explanation

The description is detailed and covers the problem, user-facing change, implementation approach, linked tracking issue, testing, limitations, and visual proof. It does not use all template headings and does not include the checklist or AI Disclosure sections, but the required change and validation information is substantially present.

Full details: Docstring Coverage

Explanation

Docstring coverage is 14.29% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 6 files. (7 skipped: 7 unsupported.)

Resolution

Write docstrings for the functions missing them to satisfy the coverage threshold.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments: 1
src/renderer/src/components/task-page/jira/IssueUserField.test.tsx: 1

1-102: 📐 Maintainability & Code Quality | 🔵 Trivial | 🏗️ Heavy lift

Exercise the production Jira dialog path.

The Server case does cover customfield_9; it is not Reporter-only. However, the test uses a local Form, calls buildJiraCreateSubmission directly, and imports the main-process createIssue directly. It does not exercise IssueDialog state updates or handleCreateNewJiraIssue, which calls the renderer's jiraCreateIssue. A regression in that dialog-to-host wiring can therefore pass this test. Render TaskPageJiraIssueDialog with a Server custom user field, or test its real creation hook with a model, and retain the customfield_9 payload assertion. The existing builder and host tests cover these lower-level pieces separately, not this production path.


ℹ️ Review info
⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: cf7ad929-985a-4e4c-ba52-a3e3a914172a
📥 Commits

Reviewing files that changed from the base of the PR and between 8e96904 and 61e2623.

📒 Files selected for processing: 4
  • src/renderer/src/components/task-page-jira-create-fields.ts
  • src/renderer/src/components/task-page/jira/IssueDialog.tsx
  • src/renderer/src/components/task-page/jira/IssueUserField.test.tsx
  • src/renderer/src/components/task-page/jira/IssueUserField.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.

@brennanb2025

Copy link
Copy Markdown
Contributor Author

Jira issue creation showed a plain text box for required Reporter fields and treated a typed person's name as their user identity. The shipping dialog now uses the existing user picker and submits the selected identity. Supplied metadata choices remain available, and a deliberate known-ID action still works when directory search is empty, denied or pending.

Per Brennan's October 23 ruling, matching people now appear first and the “Use known user ID” action comes last. Typing a search alone still leaves the required field empty.

Full review rounds 1–2 and the narrow ordering/merge checks are complete. The review fixed the lookup dependency that blocked known identities and discarded supplied choices. No new state, provider request or saved field was added. The field's display label remains local while the existing draft owns the identity; that difference is intended because no other consumer needs the label.

Validation: Head 422e66bdd39296ecb1340f5a68706a2d6df3b187: all selected CI checks passed (run 40024419438), including static analysis/typecheck, five unit shards, relay, persistence and both packages. The named shipping-dialog renderer regression passed 5/5 under the local test gate, including actual DOM ordering and selected-identity submission. The final screenshot below is static renderer-test DOM with production styles, with input values and popover geometry restored for capture. It proves the displayed order; the renderer test supplies the interaction proof.

Earlier bounded shipping-app fixture evidence at 0b82113177b05a112fc7b7fc05d805daa8729ab5 covers directory/known-ID/metadata selection, adjacent fields, resets and synthetic submission lifecycle. Its 69 named tests also passed. The later production delta only relocates the known-ID row; final merge 422e66b brought main 6ed9382 in without changing the Reporter core files. Earlier evidence carries, and the changed order has the final-head test and screenshot.

The outdated project-reset review thread was refuted and resolved: the existing metadata reload clears custom-field values, and rendered project/type/cross-site reset checks confirmed the required Reporter becomes empty again.

The lane owner accepted the earlier bounded shipping-dialog evidence. Live Jira directory search and creation were not exercised: the isolated profile had no Jira site, and the provider request is unchanged. Existing host tests cover Cloud accountId and Server name shaping. Remote coverage uses the real runtime client with a mocked transport; a paired-host renderer/network was not exercised. The fixtures demonstrate renderer behavior and submitted identities, not live provider acceptance.

Deferred: the existing close-during-search spinner is cosmetic; Title Ctrl+Enter double dispatch was reproduced on baseline and branch and is tracked in STA-11751.

For Brennan's review

Baseline required Reporter Branch selected Reporter
Baseline Reporter text input Branch selected Reporter

Final people-first results:

Reporter people first, known-ID action last

The baseline and selected-person images use constructed Jira responses in the running shipping dialog at the earlier QA head. The final results image is explicitly static renderer proof on the final head; it covers the only later renderer change.

Judgment points: schema-directed control, people before explicit known ID, and shipping-dialog regression.

@brennanb2025
brennanb2025 merged commit 87eccfe into main Oct 23, 2026
33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant