open task group when navigating via group name; preserve arrow toggl…#64284
Conversation
airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Pull request overview
This PR updates the Grid View task-group row interaction so clicking the task-group name (not just the chevron) will open the group appropriately and preserve open state when navigating into the group, addressing the small chevron hitbox reported in #64208.
Changes:
- Extends
useOpenGroups()usage inTaskNamesto read/writeopenGroupIdsin addition to toggling. - Adds link-click logic for task-group rows to (a) toggle when already viewing the group, or (b) ensure the group is open before navigating into it.
- Replaces the group-name
RouterLinkonClickhandler to run the new pre-navigation open/toggle logic plus the existingonRowClickcallback.
airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx
Outdated
Show resolved
Hide resolved
airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx
Outdated
Show resolved
Hide resolved
|
Converting to draft since there are some review comments and small changes to be implemented before we can re-review this. (and probably merge it) |
….tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
….tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
pierrejeambrun
left a comment
There was a problem hiding this comment.
I just pushed a small commit to fix the CI
…arrow toggl… (#64284) * open task group when navigating via group name; preserve arrow toggle behavior * Remove redundant comment. * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * Fixing static checks * Update TaskNames.tsx --------- (cherry picked from commit 11a0aa8) Co-authored-by: fat-catTW <124506982+fat-catTW@users.noreply.github.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com> Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Backport successfully created: v3-2-testNote: As of Merging PRs targeted for Airflow 3.X In matter of doubt please ask in #release-management Slack channel.
|
…arrow toggl… (apache#64284) * open task group when navigating via group name; preserve arrow toggle behavior * Remove redundant comment. * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com> * Fixing static checks * Update TaskNames.tsx --------- (cherry picked from commit 11a0aa8) Co-authored-by: fat-catTW <124506982+fat-catTW@users.noreply.github.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com> Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
…arrow toggl… (#64284) (#64919) * open task group when navigating via group name; preserve arrow toggle behavior * Remove redundant comment. * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx * Update airflow-core/src/airflow/ui/src/layouts/Details/Grid/TaskNames.tsx * Fixing static checks * Update TaskNames.tsx --------- (cherry picked from commit 11a0aa8) Co-authored-by: fat-catTW <124506982+fat-catTW@users.noreply.github.com> Co-authored-by: Jarek Potiuk <jarek@potiuk.com> Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Why:
Users find the chevron hard to use. It’s too small.
closes: #64208
Solution:
When clicking a group name:
Was generative AI tooling used to co-author this PR?
Generated-by: Copliot following the guidelines
{pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.