Skip to content

Add Jira Hide in Work filter (codex) - #2434

Merged
numnx merged 1 commit into
feature/CODUX-151-menu-selects-chat-session-titlefrom
task/feature-codux-151-menu-selects-chat-session-titl-t04-codex-mr9yjea2
Jul 7, 2026
Merged

Add Jira Hide in Work filter (codex)#2434
numnx merged 1 commit into
feature/CODUX-151-menu-selects-chat-session-titlefrom
task/feature-codux-151-menu-selects-chat-session-titl-t04-codex-mr9yjea2

Conversation

@numnx

@numnx numnx commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

🧩 Task: Add Jira Hide in Work filter

Automated task PR opened by Code UX for T04.

📋 Summary

Sprint: Sprint 151 · Menu Selects & Chat Session Title · Task: T04

Add chat session title generation/editing, constrain header selector menus while removing the All Sprints option, and add a Jira importer Hide in Work checkbox with tests and documentation.

📝 Full Task Prompt
## Objective
Add a `Hide in Work` checkbox to the Jira importer so operators can exclude issues whose Jira status is already `In Work` while preserving the existing import transition setting.

## Scope
- `dashboard/src/v2/components/sprints/SprintJiraImportModal.tsx`
- `dashboard/src/v2/lib/issue-import-view-models.ts` if compact filter chip support needs a reusable label helper
- `tests/dashboard/v2/components/sprints/SprintJiraImportModal.test.tsx`
- `docs/dashboard/sprint-imports.md`

## Implementation Requirements
1. Add local modal state for `hideInWork`, defaulting to enabled, and render a keyboard-accessible checkbox labeled `Hide in Work` near the guided Jira search controls.
2. Filter fetched Jira results client-side by excluding issues whose `state`, `status`, or equivalent Jira status text normalizes to `in work` when `hideInWork` is enabled.
3. Apply the filter before updating visible results, selected keys, conversation toggles, and import modes so hidden issues cannot remain selected or be imported after a refresh.
4. Include the checkbox state in the compact filter summary/chips so users can see when it is active, and ensure toggling it re-applies filtering to the current fetched result set or triggers a search using existing patterns.
5. Add tests for default hiding of `In Work` issues, showing them when the checkbox is unchecked, pruning hidden selected issues, and preserving linked/special task import behavior for visible issues.
6. Update `docs/dashboard/sprint-imports.md` to document the checkbox and clarify that it is separate from the Jira import transition named `In Work`.

## Constraints
- Do not change backend Jira search semantics unless the existing client-side result payload lacks any status field to filter reliably.
- Do not rename or disable `autoTransitionLinkedIssuesOnImport` or `importTransitionName`; this checkbox only controls importer visibility.
- Preserve the existing default search of open Jira issues sorted by recently updated first.
- Keep all checkbox labeling accessible and do not rely on color alone to communicate hidden state.

## Verification
- `pnpm run test:dashboard -- tests/dashboard/v2/components/sprints/SprintJiraImportModal.test.tsx tests/dashboard/v2/lib/issue-import-view-models.test.ts`
- `pnpm run typecheck:dashboard`
- Success means `In Work` Jira issues are hidden by default, can be shown by unchecking the box, and hidden issues are not imported accidentally.

✅ QA Review

⏳ QA review runs after this PR is opened. Check the task card in the dashboard for the outcome once it lands.

🤖 Model & Provider

Provider Codex CLI
Model gpt-5.5

⏱️ Timing

Started 2026-07-07 01:15:39 UTC
Finished 2026-07-07 01:21:18 UTC
Duration 5m 39s

📊 Token Usage

Metric Value
Input tokens 139,926
Cached input tokens 1,044,224
Output tokens 9,750
Total tokens 1,193,900
Invocations 1
Tool calls 43
Active time 4m 39s

Included usage estimate (subscription/local login): $1.51

🌿 Branch Info

Base: feature/CODUX-151-menu-selects-chat-session-title
Head: task/feature-codux-151-menu-selects-chat-session-titl-t04-codex-mr9yjea2


🤖 Generated by Code UX

@numnx
numnx merged commit 9afc044 into feature/CODUX-151-menu-selects-chat-session-title Jul 7, 2026
6 checks passed
@numnx
numnx deleted the task/feature-codux-151-menu-selects-chat-session-titl-t04-codex-mr9yjea2 branch July 7, 2026 01:23
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