Skip to content

Filter Jira preset views by multiple workflow statuses - #28623

Merged
nwparker merged 8 commits into
mainfrom
nwparker/jira-status-filters
Oct 14, 2026
Merged

nwparker merged 8 commits into
mainfrom
nwparker/jira-status-filters

Conversation

@nwparker

@nwparker nwparker commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor
Files Added Deleted Net
Test 13 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​610 $\color{#cf222e}{\Huge{\mathbf{−}}}$​8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​602
Prod 38 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​684 $\color{#cf222e}{\Huge{\mathbf{−}}}$​61 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​623

ELI5

Click one or more Jira statuses to show only that work, without writing a query. The selection combines with Assigned, Reported, All Open, or Done and returns after restart. The resulting query is visible and can be opened for editing.

What Changed

The Jira header now offers status chips derived from loaded issues, ordered by category and name. Before, narrowing a preset required manual JQL. Multiple selected statuses now form an OR condition inside the existing host-side preset query. Cloud All Open keeps its complete project discovery and bounded searches; it never becomes an unrestricted text search. Typed and saved JQL stay under manual control, with chips hidden until the search is cleared.

Selection persists on the Jira execution host through separate UI methods, outside the strict resume schema. State reads and writes resolve the selected source context or the page’s captured account host into an explicit target. List requests reuse the same transport body with their captured source target; the original wrapper remains for older callers. Unresolved owners cannot write locally, and callbacks retained from a previous owner are ignored. A negotiated capability prevents an older host from silently dropping status predicates. Cache keys distinguish selections, writes wait for acknowledgment, and replies from a previous host cannot replace the current selection. Lifetime activation happens after commit, so retained actions across A → B → A and unmounts are rejected without mutating refs during render; an old reply cannot clear a new visit’s pending state. Selected chips and Clear remain available even when the current result page does not contain that status.

Why

This adapts the status-chip interaction and catalog behavior from #6734, by Brennan Benson, credited in the commit trailer. Server-side composition keeps results accurate beyond the loaded page. The optional preset-filter argument preserves Cloud bounds, and separate host UI methods avoid older hosts rejecting new strict resume fields. A read-only preview plus Edit as JQL gives users an editable query without constantly rewriting their input.

Linked Issue

Fixes #5669

Saved-query prerequisite #28600 and Cloud preset prerequisite #28579 have merged; this PR now targets main. The existing-code clock correction tracked by #28593 is present in the refreshed main base.

Visual Proof

Synthetic Jira responses and a labeled persistence fixture, production controls and state hooks, rendered through Playwright CDP in an Electron window created with show: false. The window stayed hidden and unfocused. Actual host persistence and query routing are covered separately.

Before:
Before: preset scopes and manual search only

After selecting In Progress and Blocked in All Open:
After: multiple selected statuses, query preview, and narrowed fixture results

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

The final source a748b34 is based on landed saved-query main d7315af4, where Cloud and linked-workspace prerequisites are also present. All eight unique workflow-filter feature/correction commits are unchanged by the final rebase; it contains only those commits and preserves checked saved-query application. Its unique commits retain status-query typing and explicit owner routing; the copied saved-owner patch was removed because it is already in #28600. On macOS with background launch enabled and at most two workers, all 361 tests across 30 files pass, covering host search, persisted saved/status state, query/RPC/runtime contracts, hook/component interactions, list effects, cache isolation, and both CLI Jira contract suites. The strict-read flag keeps its existing fourth position in core/runtime list calls, and optional status filters follow it. Native UI calls supply false for strict; RPC accepts and forwards both optional fields. The combined status-query and RPC contracts verify this composition without weakening strict site admission.

One added regression fails against the prior hook because a retained A action still sends a write after A → B → A. Two further regressions verify that old success/error settlements cannot clear a new visit’s pending state. Linked mode hides both status chips and JQL preview without clearing the selected statuses. Linked reads retain their error handling and bypass status query composition; the catalog updates only for ordinary preset reads. A small Jira-only capability module preserves existing exports and advertised capability strings while keeping the protocol file below its line limit.

The full changed-code gate passes for 43 source files with zero findings. The dedicated CI React Doctor runner reports no issues after moving lifetime activation into layout effects and using a finally block for loading. Strict request validation uses Zod 4 strictObject without changing accepted inputs. Formatting across all 48 changed files, lint, anti-slop, focus-read, RPC catalog, and runtime-English catalog checks pass.

Earlier hidden Electron proof exercised multiple selection, preset composition, reload restoration, Edit as JQL, manual input, and clearing; the screenshots above are preserved. Actual-profile tests separately cover persistence. The final correction was hook-tested and independently reviewed. The coordinator passed node and web typechecks on exact source a748b34, with stable source hashes before and after. CI is recorded separately and is not claimed green. No full/release build, real Jira, Linux, Windows, phone, or SSH server was exercised for this correction.

AI Disclosure

Review

Self-reviewed host ownership, request compatibility, bounded input, query escaping, cache separation, stale-response handling, and the transition between preset and manual-query modes.

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

Merge risk: Low for the scoped change; coordinated exact-source node and web typechecks passed; the fresh CI result is recorded separately and is not claimed green. The feature adds a persisted host field and optional list arguments across IPC/RPC. Capability checks block unsupported status requests; existing requests keep their previous shape and no stream frames change. Selection is bounded to 50 names of 128 characters each. SSH and folder workspaces follow existing Jira source routing; mobile UI methods explicitly route to the execution host. No platform-specific paths, shortcuts, command execution, credentials, or Git-provider behavior changed. Real Jira, Windows, Linux, a phone, and an SSH server were not exercised locally.

The available chip catalog reflects loaded issues, so statuses absent from that page may appear only after a broader view is loaded. A restored selection always remains visible and can be cleared. A status that exists on only one connected site can still produce a per-site Jira error through the existing partial-success behavior.

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 (focused checks above; broad validation and packaging remain for coordinated checks/CI)

@nwparker
nwparker force-pushed the nwparker/jira-saved-views branch from 787356d to 46c6cff Compare October 14, 2026 10:02
@nwparker
nwparker force-pushed the nwparker/jira-status-filters branch from ecf8d25 to 05c7e40 Compare October 14, 2026 10:05
@nwparker
nwparker force-pushed the nwparker/jira-saved-views branch from 46c6cff to 0749a04 Compare October 14, 2026 10:15
@nwparker
nwparker force-pushed the nwparker/jira-status-filters branch from 05c7e40 to 7b9b2c4 Compare October 14, 2026 10:19
@nwparker
nwparker force-pushed the nwparker/jira-saved-views branch 2 times, most recently from 84411c8 to bba51a7 Compare October 14, 2026 10:34
@nwparker
nwparker force-pushed the nwparker/jira-status-filters branch from 7b9b2c4 to 829228b Compare October 14, 2026 10:36
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.

[Feature]: Add quick status filters to the issues list header

1 participant