Skip to content

Add run type legend tooltip to grid view#61632

Closed
andreahlert wants to merge 11 commits intoapache:mainfrom
andreahlert:add-grid-legend
Closed

Add run type legend tooltip to grid view#61632
andreahlert wants to merge 11 commits intoapache:mainfrom
andreahlert:add-grid-legend

Conversation

@andreahlert
Copy link
Copy Markdown
Contributor

@andreahlert andreahlert commented Feb 8, 2026

Related #28737.

This adds a small info icon (ℹ) next to the existing keyboard shortcut icon in the grid view. On hover, it displays a tooltip showing each DAG run type with its corresponding icon:

  • Scheduled
  • Manual
  • Backfill
  • Asset Triggered

The previous attempt (#51736) was closed due to performance issues with Chakra tooltips on large grids and bad UX with truncated markdown notes. This implementation keeps things simple by reusing the existing Tooltip component (same as the keyboard shortcut tooltip) and the RunTypeIcon component already used throughout the grid.

Note indicators were left out of scope since the grid API responses (GridRunsResponse, LightGridTaskInstanceSummary) don't include note fields.

Changes:

  • New GridLegend component in layouts/Details/Grid/GridLegend.tsx
  • Added GridLegend to PanelButtons.tsx (grid-only section)
  • Added legend translation key to dag.json

@guan404ming
Copy link
Copy Markdown
Member

guan404ming commented Feb 8, 2026

Could you help attach screenshot for your changes, thanks!

Copy link
Copy Markdown
Member

@pierrejeambrun pierrejeambrun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, tested locally looks good.

A few nits/adjustments before we can merge.

Screenshot 2026-02-11 at 21 01 29

Comment thread airflow-core/src/airflow/ui/public/i18n/locales/en/dag.json Outdated
Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridLegend.tsx
Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridLegend.tsx
@pierrejeambrun
Copy link
Copy Markdown
Member

pierrejeambrun commented Feb 11, 2026

Updated the PR description. Its part of #28737 but there are other items on the issue.

andreahlert and others added 3 commits February 13, 2026 09:05
@pierrejeambrun
Copy link
Copy Markdown
Member

pierrejeambrun commented Feb 17, 2026

Let me know when this is ready for another review. (one comment still needs to be addressed and CI is not happy, but that doens't seem related though, just pushing a new commit should restart it)

@andreahlert
Copy link
Copy Markdown
Contributor Author

Let me know when this is ready for another review. (one comment still needs to be addressed and CI is not happy, but that doens't seem related though, just pushing a new commit should restart it)

None of the failing CI jobs are related to my changes (React UI: Logs.test.tsx; constraints: Python). Happy to fix if you guys prefer, but the PR itself doesn’t touch those areas.

Comment thread airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridLegend.tsx Outdated
@andreahlert andreahlert requested a review from bbovenzi March 2, 2026 20:48
@andreahlert andreahlert closed this Mar 4, 2026
@andreahlert andreahlert deleted the add-grid-legend branch March 4, 2026 13:30
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Mar 5, 2026
Add an info icon next to the keyboard shortcut icon in the grid view
that shows a tooltip with each DAG run type and its corresponding icon
(Scheduled, Manual, Backfill, Asset Triggered).

Based on apache#61632, with review comments addressed.
@pierrejeambrun
Copy link
Copy Markdown
Member

I'm not sure why the PR was closed, here is a followup PR that addresses the small nits so it can be merged #62946

@eladkal eladkal removed this from the Airflow 3.1.9 milestone Mar 5, 2026
@andreahlert andreahlert restored the add-grid-legend branch March 5, 2026 17:34
@andreahlert andreahlert reopened this Mar 5, 2026
@andreahlert
Copy link
Copy Markdown
Contributor Author

@pierrejeambrun I'm not sure what happened to. I was reviewing multiple PRs, this one was closed by accident i think. But we can keep your new one.

@andreahlert andreahlert closed this Mar 5, 2026
pierrejeambrun added a commit to astronomer/airflow that referenced this pull request Mar 5, 2026
Add an info icon next to the keyboard shortcut icon in the grid view
that shows a tooltip with each DAG run type and its corresponding icon
(Scheduled, Manual, Backfill, Asset Triggered).

Based on apache#61632, with review comments addressed.
pierrejeambrun added a commit that referenced this pull request Mar 6, 2026
Add an info icon next to the keyboard shortcut icon in the grid view
that shows a tooltip with each DAG run type and its corresponding icon
(Scheduled, Manual, Backfill, Asset Triggered).

Based on #61632, with review comments addressed.
dominikhei pushed a commit to dominikhei/airflow that referenced this pull request Mar 11, 2026
Add an info icon next to the keyboard shortcut icon in the grid view
that shows a tooltip with each DAG run type and its corresponding icon
(Scheduled, Manual, Backfill, Asset Triggered).

Based on apache#61632, with review comments addressed.
@andreahlert andreahlert deleted the add-grid-legend branch April 11, 2026 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:translations area:UI Related to UI/UX. For Frontend Developers. translation:default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants