Skip to content

Conversation

@guan404ming
Copy link
Member

@guan404ming guan404ming commented Apr 25, 2025

Why

  • currently the PluginImportErrors would render when the count == 0 which would cause the visually incorrect gap in the Stats

How

  • return undefined if count <= 0, the "<" is to not show strange negative int to user
  • make the column 6 synced with current StatsCard num

cc: @bbovenzi @pierrejeambrun

before
image

after
image


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Apr 25, 2025
@guan404ming guan404ming reopened this Apr 25, 2025
@guan404ming
Copy link
Member Author

guan404ming commented Apr 25, 2025

CI works strange. Closed and reopened to rerun it.

Copy link
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, a couple of nits.

@pierrejeambrun pierrejeambrun added this to the Airflow 3.1.0 milestone Apr 25, 2025
@pierrejeambrun pierrejeambrun merged commit 16da57b into apache:main Apr 25, 2025
42 checks passed
@guan404ming
Copy link
Member Author

Thanks for the review~

@guan404ming guan404ming deleted the fix-dashboard-layout branch April 25, 2025 09:26
jroachgolf84 pushed a commit to jroachgolf84/airflow that referenced this pull request Apr 30, 2025
* fix: stat and PluginImportErrors layout

* fix: reset count assertion
@guan404ming guan404ming changed the title fix: Stats and PluginImportErrors layout Fix Stats and PluginImportErrors layout Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:UI Related to UI/UX. For Frontend Developers.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants