KatalKavya96 opened a new pull request, #55650:
URL: https://github.com/apache/airflow/pull/55650
### Why
- Standardise on the new pill-based FilterBar to reduce vertical space and
match XCom/Events UX.
- Keep URL ↔ UI sync so filters are shareable/deeplinkable.
### What
- Replace the legacy filters on DAG Run → Task Instances with the reusable
FilterBar.
- New component: RunTaskFilters.tsx (text + date pills).
- URL parameters handled via useFiltersHandler:
- name_pattern → passed to API as taskDisplayNamePattern
- start_date / end_date → mapped to API’s start_date_gte / end_date_lte
- No backend/API changes, no translation surface area changes.
### Scope
- Only the Task Instances tab under a DAG Run.
- Other DAG Run sub-pages will be migrated in next commits
### Testing**
- pnpm run lint + tsc --noEmit pass locally.
- Manual in Breeze:
1. Go to a DAG Run → Tasks tab.
2. Click + Filter → add Task Name; type cli_.
Network shows:
/api/v2/dags/~/dagRuns/~/taskInstances?task_display_name_pattern=cli_…
3. Add From/To pills; network includes start_date_gte / end_date_lte.
4.Remove pills or click Reset → URL/query clears and results reset.
### Backward compatibility
- Preserves existing date query keys; adds name_pattern for task display
name search.
- No UI breaking changes; the table and actions are unchanged.
Screenshots
<img width="1352" height="651" alt="Screenshot 2025-09-15 at 1 26 28 AM"
src="https://github.com/user-attachments/assets/af191d1f-c2b1-4cf6-be66-140ab47fe30e"
/>
<img width="1352" height="651" alt="Screenshot 2025-09-15 at 1 26 36 AM"
src="https://github.com/user-attachments/assets/b38b94f9-9388-414a-bf53-9984752ea65a"
/>
related: #55520
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]