Skip to content

feat(jira): use favourite filters within their source site - #29037

Merged
nwparker merged 6 commits into
mainfrom
nwparker/jira-favourite-filter-ui
Oct 15, 2026
Merged

nwparker merged 6 commits into
mainfrom
nwparker/jira-favourite-filter-ui

Conversation

@nwparker

@nwparker nwparker commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

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.

Before — custom saved filters

After: favourite catalogue with duplicate names independently selectable by keyboard.

After — Jira favourites

A 200-character favourite name stays within a 760px viewport and retains its full accessible name.

Narrow viewport

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)

@nwparker
nwparker marked this pull request as ready for review October 15, 2026 06:49
@nwparker
nwparker changed the base branch from nwparker/jira-favourite-filter-port to main October 15, 2026 07:08
@nwparker
nwparker force-pushed the nwparker/jira-favourite-filter-ui branch from ea95967 to 0025f68 Compare October 15, 2026 07:08
@coderabbitai

coderabbitai Bot commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6ef4f70a-4061-4066-a198-c372ae18a54d
📥 Commits

Reviewing files that changed from the base of the PR and between 1b007b7 and c9cd8e3.

📒 Files selected for processing: 1
  • src/main/browser/browser-find-frame-traversal-electron-fixture.ts

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: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning 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 Passed checks: 4 passed
Check name Status Explanation
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.
Title check Passed The title clearly identifies the primary change: using Jira favourite filters within their source site.
Description check Passed 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.

❤️ Share

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

@nwparker
nwparker merged commit e9199bd into main Oct 15, 2026
30 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