Add run type legend tooltip to grid view#61632
Open
andreahlert wants to merge 6 commits intoapache:mainfrom
Open
Add run type legend tooltip to grid view#61632andreahlert wants to merge 6 commits intoapache:mainfrom
andreahlert wants to merge 6 commits intoapache:mainfrom
Conversation
Member
|
Could you help attach screenshot for your changes, thanks! |
airflow-core/src/airflow/ui/src/layouts/Details/Grid/GridLegend.tsx
Outdated
Show resolved
Hide resolved
Member
|
Updated the PR description. Its part of #28737 but there are other items on the issue. |
Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
…d.tsx Co-authored-by: Pierre Jeambrun <pierrejbrun@gmail.com>
Member
|
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) |
Contributor
Author
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

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:
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
Tooltipcomponent (same as the keyboard shortcut tooltip) and theRunTypeIconcomponent 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:
GridLegendcomponent inlayouts/Details/Grid/GridLegend.tsxGridLegendtoPanelButtons.tsx(grid-only section)legendtranslation key todag.json