You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/10/26 22:01:56 UTC

[GitHub] [airflow] ryanahamilton opened a new pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

ryanahamilton opened a new pull request #11866:
URL: https://github.com/apache/airflow/pull/11866


   Resolves #11795
   
   This update improves the presentation of the DAGs (home) view by making better use of the horizontal space. This was accomplished through a handful of changes:
   
   - Fixed the broken tooltip on the "i" icon in the leftmost column heading by adding missing `js-tooltip` class.
   - Moves the tags beneath the DAG ID. By not having left and right aligned elements within the same column, the contents of the cell flow better with the variation of screen widths, and there is less visual distraction with a single alignment point.
   - Changes the tag background from green to blue. Green typically communicates a positive status, but in this context the tag has no relation to the DAG's status. The blue is a better neutral color. 
   - Changed the column order to a more logical organization. Going left-to-right the order now displays broader-to-detailed properties of the DAG. It also seemed to make more sense to have "schedule" and "last run" adjacent to each other given the former determines the latter.
   - Moved the existing CSS only used for this view out of the shared (`main.css`) file to a dedicated `dags.css` file only loaded for this view. The new CSS added in this PR was added to this file as well.
   - With the "links" taking up a great deal of space and not providing any actual detail of the DAGs, I've moved them to a hidden menu in the last column of the table. The menu is revealed upon hover of the "•••". In addition to saving space, this alleviates a lot of the visual clutter of having so many icons grouped  throughout the page. Additionally, this allows text to be displayed beside the link icons—providing much better information to the user.
   
   ![Screen Recording 2020-10-26 at 05 52 14 PM](https://user-images.githubusercontent.com/3267/97232709-0c216780-17b4-11eb-871b-456a1e908136.gif)
   
   - Doc screenshot of this view has been updated accordingly.
   
   ## Screenshots of overall updates
   
   **Full width - Before**
   
   <img width="1576" alt="Image 2020-10-26 at 5 22 18 PM" src="https://user-images.githubusercontent.com/3267/97232928-73d7b280-17b4-11eb-9152-34c06819cfec.png">
   
   **Full width - After**
   
   <img width="1576" alt="Image 2020-10-26 at 5 23 16 PM" src="https://user-images.githubusercontent.com/3267/97232921-71755880-17b4-11eb-9685-8d00724a0d1d.png">
   
   ___
   
   **Narrow width - Before**
   
   <img width="1335" alt="Image 2020-10-26 at 5 21 33 PM" src="https://user-images.githubusercontent.com/3267/97232904-66222d00-17b4-11eb-8fdd-b00503151629.png">
   
   **Narrow width - After**
   
   <img width="1333" alt="Image 2020-10-26 at 5 11 22 PM" src="https://user-images.githubusercontent.com/3267/97233004-9e297000-17b4-11eb-9377-d2192aadc3c5.png">
   
   
   
   ---
   **^ Add meaningful description above**
   
   Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/master/CONTRIBUTING.rst#pull-request-guidelines)** for more information.
   In case of fundamental code change, Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvements+Proposals)) is needed.
   In case of a new dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x).
   In case of backwards incompatible changes please leave a note in [UPDATING.md](https://github.com/apache/airflow/blob/master/UPDATING.md).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] github-actions[bot] commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-719042211


   The PR should be OK to be merged with just subset of tests as it does not modify Core of Airflow. The committers might merge it or can add a label 'full tests needed' and re-run it to run all tests if they see it is needed!


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryanahamilton commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryanahamilton commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716853760


   @ashb in the context of the view/table's role as a bird's-eye-view across DAGs, neither the "links" or "actions" are really supporting that purpose, so they seemed most obvious to truncate. Given the sheer quantity of the links and the visual clutter they add, they appeared to be the best candidate. I suppose the actions could be moved within the "more" menu as well if that was desired?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ashb commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716849717


   Interesting approach.
   
   One thing to bear in mind: the links are used more than the actions are -- at least the tree view and graph view links are.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryw edited a comment on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryw edited a comment on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716886747


   Yes I agree - I click tree/graph view the most.
   
   One way to consider this change is that if @ryanahamilton was proposing to do the opposite (change from his proposal to our current reality) we'd surely shoot it down :)
   
   I'm +1 to merge this and keep iterating, as it's a UX improvement.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryw commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryw commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-718031562


   Yeah I like the reversal


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryanahamilton merged pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryanahamilton merged pull request #11866:
URL: https://github.com/apache/airflow/pull/11866


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryw commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryw commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716886747


   Yes I agree - I click tree/graph view the most - and it's easy for me to forget what clicking the DAG name will take me too.
   
   One way to consider this change is that if @ryanahamilton was proposing to do the opposite (change from his proposal to our current reality) we'd surely shoot it down :)
   
   I'm +1 to merge this and keep iterating, as it's a UX improvement.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryw edited a comment on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryw edited a comment on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716886747


   Yes I agree, my first reaction is that the 2 buttons I hit the most in the row will now be hidden. Maybe they deserve special treatment.
   
   But the rest of the links are good to be hidden.
   
   One way to consider this change is that if @ryanahamilton was proposing to do the opposite (change from his proposal to our current reality) we'd surely shoot it down :)
   
   I'm +1 to merge this and keep iterating, maybe pull those 2 links back out if you can come up w something.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ashb commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ashb commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-716861692


   More saying in terms of which is clicked not often - some links are much more commonly used then others, and those are used more often them actions.
   
   It's too late for me to come to a conclusion of that thought


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mistercrunch commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
mistercrunch commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-717711980


   Neat!
   
   Side note, the status circles have gotten numerous, there's certainly a better way to visualize this information. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mistercrunch edited a comment on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
mistercrunch edited a comment on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-717711980


   Neat! Design-wise the expand-over-the-row isn't the common/expected pattern. The more common pattern here would be the dropdown button, which wouldn't hide the context like this does. This is one less click, but more mouse-traveling. This works and is clearly better than what we have now.
   
   Another common pattern would be to hide the repetitive content of the `Actions` and show them on row-hover to de-crowd the UI
   
   Side note, the status circles have gotten numerous, there's certainly a better way to visualize this information. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryw commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryw commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-717488265


   @mistercrunch what do you think of this one?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] ryanahamilton commented on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
ryanahamilton commented on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-718021079


   Appreciate the feedback on this everyone. It seems that everyone is agreement that the density of this view has grown out-of-control. I think I'll be able to offer some additional follow-up adjustments to keep refining it.
   
   I did just push one update to reverse the order of the links—this will reduce the mouse travel distance for the more popular links (tree, graph). (see updated GIF in PR description)


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [airflow] mistercrunch edited a comment on pull request #11866: Fix oversized width of DAGs table with hide/reveal of "links"

Posted by GitBox <gi...@apache.org>.
mistercrunch edited a comment on pull request #11866:
URL: https://github.com/apache/airflow/pull/11866#issuecomment-717711980


   Neat! Design-wise the expand-over-the-row isn't the common/expected pattern. The more common pattern here would be the dropdown button, which wouldn't hide the context like this does. This is one less click, but more mouse-traveling. This works and is clearly better than what we have now but personally prefer the dropdown button.
   
   [outside the scope of this PR] another common pattern would be to hide the repetitive content of the `Actions` and show them on row-hover to de-crowd the UI
   
   Side note, the status circles have gotten numerous, there's certainly a better way to visualize this information. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org