Skip to content

ref(inbound-filters): Move the custom filter modal into its own module - #126852

Open
shellmayr wants to merge 7 commits into
masterfrom
shellmayr/ref/custom-filter-modal-module
Open

shellmayr wants to merge 7 commits into
masterfrom
shellmayr/ref/custom-filter-modal-module

Conversation

@shellmayr

@shellmayr shellmayr commented Oct 8, 2026 •

Copy link
Copy Markdown
Member
  • Moves the custom filter modal, the condition specs, and the save mutation from customFilters.tsx into customFilterModal.tsx.
  • The modal now owns POST and PUT and invalidates the list query. Callers open it with openCustomFilterModal({project, filter?}); the table keeps only the toggle and delete mutations.
  • No behavior change. Prepares entry points outside of project settings, first the issue actions menu.
  • Tests render GlobalModal in the same tree as the page, since a separate render has its own query client and never saw the invalidation.

Closes TET-3108

The modal, the condition specs, and the save mutation move out of the settings table file into customFilterModal.tsx. The modal now owns POST and PUT and invalidates the list query, so a caller only picks what it opens on through openCustomFilterModal. This prepares entry points outside of project settings.
@github-actions

github-actions Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

📊 Type Coverage Diff

Metric Before After Delta
Coverage 95.72% 95.72% ±0%
Typed 142,216 142,212 🔴 -4
Untyped 6,363 6,363 ±0
🔍 2 new type safety issues introduced

Type assertions (as) (2 new)

File Line Detail
static/app/views/settings/project/projectFilters/customFilterModal.tsx 186 as [ConditionType, ...ConditionType[]] — Object.keys(CONDITIONS) as [ConditionType, ...ConditionType[]]
static/app/views/settings/project/projectFilters/customFilterModal.tsx 187 `as [
FilterDataType,
...FilterDataType[],
]—Object.keys(DATA_TYPES) as [ FilterDataType, ...FilterDataType[], ]`

This is informational only and does not block the PR.

The merge from master added InfoText uses to the table file, but the
import block moved to the modal module in this branch. Also stop
exporting FilterFormValues, which no other module reads.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Oct 13, 2026

Copy link
Copy Markdown

TET-3108

@shellmayr
shellmayr marked this pull request as ready for review October 14, 2026 07:29
@shellmayr
shellmayr requested review from a team as code owners October 14, 2026 07:29
…m-filter-modal-module

# Conflicts:
#	static/app/views/settings/project/projectFilters/customFilters.tsx
#	static/app/views/settings/project/projectFilters/index.spec.tsx
…l-module' into shellmayr/ref/custom-filter-modal-module

This branch was successfully deployed

1 active (outdated) deployment
Preview — 0a1d1186 Deployed Oct 14, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants