feat(ui): Audit Logs → use FilterBar (parity with XCom) #55647
Closed
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.
Switch Audit Logs to reusable FilterBar (parity with XCom)
This PR replaces the bespoke Audit Logs filters with the new reusable FilterBar component introduced in #54895. The change reduces vertical space, standardizes UX with XCom, and centralizes URL-sync logic.
What changed
Replace custom inputs with “pills” for:
User, Event Type, After, Before, Map Index, Try Number
DAG / Run / Task shown only when not fixed by the current route
Use pattern-style URL params (consistent with XCom):
dag_display_name_pattern → mapped to API dagIdPattern
run_id_pattern → runIdPattern
task_id_pattern → taskIdPattern
Keep all existing table behavior: sorting, pagination, and columns unchanged
No backend/API changes; only UI wiring and param mapping
Why
Pills save space and are easier to edit/reset
Aligns filtering UX across pages (XCom ↔ Audit Logs)
Centralizes filter state management via useFiltersHandler
How to test
Click + Filter to add pills; press Enter to apply.
Verify requests include the expected params:
owner_pattern, event_pattern, dates (after, before)
dag_id_pattern, run_id_pattern, task_id_pattern when applicable
Reset clears URL query and unfilters the table.
Navigate to DAG/Run/Task context pages — the corresponding pill disappears (context enforced by route).
Notes
No new i18n strings introduced (reuse existing keys/fallbacks).
Minimal footprint: only Audit Logs page touched.
Manual verification done on Breeze (Docker) against /api/v2/eventLogs.
#55520 - Audit Logs Only