You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(jira): use favourite filters within their source site - #29037
Choose a favourite saved in Jira and use it directly in Orca. Its query stays with the Jira site that owns it.
What Changed
Adds a Jira favourites picker beside Saved filters. It reads favourites only when opened for one connected site, executes the chosen JQL exactly, and keeps the selection temporary. Existing project and current-sprint controls still compose with the query; a project from another site produces an actionable error before any request.
Applying waits for the host to confirm the active custom saved filter was cleared. Owner/site changes and newer selections invalidate pending actions, including an A → B → A round trip. Missing methods on older hosts show an update message with Refresh. Read failures remain visible and retryable.
Why
The old filter branch overlapped the landed custom-filter implementation and referred to removed files. This UI uses the separate read-only catalogue foundation and keeps imported numeric IDs out of the owner-only saved-filter store and query resume state, avoiding a persistence migration or replay on another Jira site.
Linked Issue
Completes the Jira-owned favourites portion of #13395 after #29028.
Visual Proof
Hidden Electron/CDP fixture at frozen df44211463ecbf84f10891e207248eb4de111e88: 63/63 checks passed, no renderer errors, 307 source hashes unchanged, owned processes stopped and ports clear. Production filter components/hooks/list effects run with synthetic Jira and host transport. This does not establish live account behavior or full-app connection gating.
Before (c3b92129): existing custom Saved filters, without Jira favourites.
After: favourite catalogue with duplicate names independently selectable by keyboard.
A 200-character favourite name stays within a 760px viewport and retains its full accessible name.
Testing
I manually tested these changes locally
Automated tests added/updated, or explained why not below
112 focused tests across 11 files pass, including real list-state hooks/list effect, exact-query rejection, confirmed named-filter handoff, failed returning-owner reads, owner/site/provider A → B → A races, retries, idle stability, persistence exclusion, duplicate-name keyboard navigation, and unsupported-host recovery. Web typecheck, all seven changed-code quality stages, formatting, localization checks and diff checks pass.
Rendered verification uses the production components/hooks with synthetic Jira/host responses on macOS; Linux/Windows and live Jira account behavior remain covered by portable source/contracts and PR CI rather than local live-account testing.
Review
Independent source review passed at the frozen head, with 26 favourite tests independently rerun. Independent rendered-proof review passed: all 63 checks, 15 screenshot hashes, 307 unchanged source hashes and cleanup audited; eight screenshots independently inspected. No open findings.
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Rebased onto merged catalogue cc690cfe as 0025f684. All twelve UI/test source files are byte-identical to independently reviewed ea95967d; all fourteen favourite translation values are unchanged. On this final head, 69 integrated tests, full local typechecking, all seven changed-code quality stages and diff checks pass.
The rendered proof is from df442114. The only subsequent runtime edit compacts an object literal without changing TypeScript tokens; a test fixture moved into __mocks__ with equivalent resolved imports. Full standard lint and anti-slop scans pass. Independent review confirmed that the rendered proof remains applicable.
The final test-only repair at 1b007b76 moves storage clearing from the fixture into its two test suites, so the storage inventory no longer mistakes a mock for a production store. All production source bytes are unchanged from 0025f684; 30 focused tests including the storage inventory pass, and independent review confirms the rendered proof still applies. The final head also includes a test-fixture correction at c9cd8e38: the unrelated browser find probe now waits for the intended guest document to finish loading, verifies its text/layout, and accepts final search results only for their returned request ID. All 24 match-count/ordinal expectations and hidden launch policy remain unchanged. The corrected probe passes locally on pinned Electron 43.7.8, with node types, formatting, lint, changed-code quality and independent review passing. The original probe also passed on macOS, so Linux CI is required to verify the repeated CI failure is resolved. Full .github/workflows/pr.yml run 38703705922 passed on exact head c9cd8e38c469341cda057eca095d642b806c2ffe, including the aggregate PR checks passed, all five unit shards, both packages, relay integration, static analysis and types. The corrected browser probe ran and passed on Linux in 797 ms. Merged as e9199bd4061272b7b3be8f62f8346ed351937713; the thirteen changed source/test files and fourteen favourite translation values match the reviewed head on main.
No persistence schema or authentication changes. Unresolved owners and All sites cannot import favourites. The catalogue foundation handles Cloud/Data Center transport compatibility.
Checklist
This PR is small and focused
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.
📝 Walkthrough
The task page now loads Jira favourite filters and lets users search, select, refresh, and clear them. A selected favourite supplies JQL to Jira search when its site and project context are valid. Favourite selection coordinates with saved-filter selection, manual search input, and linked-workspace state. The Jira filter interface shows loading, error, unsupported-host, and truncated-list states. The browser find fixture now checks guest-page readiness and matches results to the active request.
Priority: ⬇️ Low
Merge Risk:⚪ Minimal · up to c9cd8
The fixture reports a guest readiness failure rather than hanging on a rejected script. No actionable merge-blocking risk is established.
Pre-merge checks: 4 · 1
Failed checks: 1 warning
Check name
Status
Explanation
Resolution
Docstring Coverage
Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 13 files.
Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed checks: 4 passed
Check name
Status
Explanation
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Title check
The title clearly identifies the primary change: using Jira favourite filters within their source site.
Description check
The description follows the required template, explains the user-visible behavior and rationale, identifies the linked issue, provides visual proof and testing details, and completes the checklist.
Fix all pre-merge checks with AI
✨ Finishing Touches: 💡 1
📝 Generate docstrings: 💡
Commit to this branch
Create a new PR
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
Choose a favourite saved in Jira and use it directly in Orca. Its query stays with the Jira site that owns it.
What Changed
Adds a Jira favourites picker beside Saved filters. It reads favourites only when opened for one connected site, executes the chosen JQL exactly, and keeps the selection temporary. Existing project and current-sprint controls still compose with the query; a project from another site produces an actionable error before any request.
Applying waits for the host to confirm the active custom saved filter was cleared. Owner/site changes and newer selections invalidate pending actions, including an A → B → A round trip. Missing methods on older hosts show an update message with Refresh. Read failures remain visible and retryable.
Why
The old filter branch overlapped the landed custom-filter implementation and referred to removed files. This UI uses the separate read-only catalogue foundation and keeps imported numeric IDs out of the owner-only saved-filter store and query resume state, avoiding a persistence migration or replay on another Jira site.
Linked Issue
Completes the Jira-owned favourites portion of #13395 after #29028.
Visual Proof
Hidden Electron/CDP fixture at frozen
df44211463ecbf84f10891e207248eb4de111e88: 63/63 checks passed, no renderer errors, 307 source hashes unchanged, owned processes stopped and ports clear. Production filter components/hooks/list effects run with synthetic Jira and host transport. This does not establish live account behavior or full-app connection gating.Before (
c3b92129): existing custom Saved filters, without Jira favourites.After: favourite catalogue with duplicate names independently selectable by keyboard.
A 200-character favourite name stays within a 760px viewport and retains its full accessible name.
Testing
112 focused tests across 11 files pass, including real list-state hooks/list effect, exact-query rejection, confirmed named-filter handoff, failed returning-owner reads, owner/site/provider A → B → A races, retries, idle stability, persistence exclusion, duplicate-name keyboard navigation, and unsupported-host recovery. Web typecheck, all seven changed-code quality stages, formatting, localization checks and diff checks pass.
Rendered verification uses the production components/hooks with synthetic Jira/host responses on macOS; Linux/Windows and live Jira account behavior remain covered by portable source/contracts and PR CI rather than local live-account testing.
Review
Independent source review passed at the frozen head, with 26 favourite tests independently rerun. Independent rendered-proof review passed: all 63 checks, 15 screenshot hashes, 307 unchanged source hashes and cleanup audited; eight screenshots independently inspected. No open findings.
Agent skill upstream boundary
Notes
Rebased onto merged catalogue
cc690cfeas0025f684. All twelve UI/test source files are byte-identical to independently reviewedea95967d; all fourteen favourite translation values are unchanged. On this final head, 69 integrated tests, full local typechecking, all seven changed-code quality stages and diff checks pass.The rendered proof is from
df442114. The only subsequent runtime edit compacts an object literal without changing TypeScript tokens; a test fixture moved into__mocks__with equivalent resolved imports. Full standard lint and anti-slop scans pass. Independent review confirmed that the rendered proof remains applicable.The final test-only repair at
1b007b76moves storage clearing from the fixture into its two test suites, so the storage inventory no longer mistakes a mock for a production store. All production source bytes are unchanged from0025f684; 30 focused tests including the storage inventory pass, and independent review confirms the rendered proof still applies. The final head also includes a test-fixture correction atc9cd8e38: the unrelated browser find probe now waits for the intended guest document to finish loading, verifies its text/layout, and accepts final search results only for their returned request ID. All 24 match-count/ordinal expectations and hidden launch policy remain unchanged. The corrected probe passes locally on pinned Electron 43.7.8, with node types, formatting, lint, changed-code quality and independent review passing. The original probe also passed on macOS, so Linux CI is required to verify the repeated CI failure is resolved. Full.github/workflows/pr.ymlrun 38703705922 passed on exact headc9cd8e38c469341cda057eca095d642b806c2ffe, including the aggregate PR checks passed, all five unit shards, both packages, relay integration, static analysis and types. The corrected browser probe ran and passed on Linux in 797 ms. Merged ase9199bd4061272b7b3be8f62f8346ed351937713; the thirteen changed source/test files and fourteen favourite translation values match the reviewed head on main.No persistence schema or authentication changes. Unresolved owners and All sites cannot import favourites. The catalogue foundation handles Cloud/Data Center transport compatibility.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)