Skip to content

Refactor "loading" state of DAGs view to remove visual jank - #11725

Merged
kaxil merged 1 commit into
apache:masterfrom
astronomer:loading_jank
Oct 21, 2020
Merged

Refactor "loading" state of DAGs view to remove visual jank#11725
kaxil merged 1 commit into
apache:masterfrom
astronomer:loading_jank

Conversation

@ryanahamilton

Copy link
Copy Markdown
Contributor

This fixes the visual "jank" seen when loading the DAGs (home) view. Most of the unwanted shifting was being caused by the loading GIF images being shown briefly in the table header. This caused table cells to shift vertically and horizontally. The implementation was also a bit inconsistent in that it showed a loading state in two column headers ("Recent Tasks", "DAG Runs") and then in the individual cells of another ("Last Run"). I've remedied that by using the same placement for all three.

I've moved the new "loading dots" pattern (CSS only, no images) introduced in #11534 to a macro file so that it could be repurposed here as well.

Before:

Screen Recording 2020-10-21 at 02 05 15 PM

After:

Screen Recording 2020-10-21 at 02 23 09 PM


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code change, 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 UPDATING.md.

@boring-cyborg boring-cyborg Bot added the area:webserver Webserver related Issues label Oct 21, 2020

@potiuk potiuk left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

❤️

@kaxil
kaxil merged commit 6c3f435 into apache:master Oct 21, 2020
@kaxil
kaxil deleted the loading_jank branch October 21, 2020 21:19
michalmisiewicz pushed a commit to michalmisiewicz/airflow that referenced this pull request Oct 30, 2020
@ryanahamilton ryanahamilton added the area:UI Related to UI/UX. For Frontend Developers. label Nov 18, 2020
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. area:webserver Webserver related Issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants