Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ui): hide subscriptions per warehouse in DAG #2396

Merged
merged 4 commits into from
Aug 15, 2024

Conversation

rbreeze
Copy link
Contributor

@rbreeze rbreeze commented Aug 6, 2024

Fixes #2125

Copy link

netlify bot commented Aug 6, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit e677d21
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/66bd450817c9150008b65b28
😎 Deploy Preview https://deploy-preview-2396.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@rbreeze rbreeze self-assigned this Aug 6, 2024
@rbreeze rbreeze added this to the v0.9.0 milestone Aug 6, 2024
Copy link

codecov bot commented Aug 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.38%. Comparing base (9f24ba3) to head (e677d21).
Report is 6 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2396   +/-   ##
=======================================
  Coverage   48.38%   48.38%           
=======================================
  Files         245      245           
  Lines       17761    17761           
=======================================
  Hits         8593     8593           
  Misses       8748     8748           
  Partials      420      420           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@krancour
Copy link
Member

This still has the same problems that we encountered with #2211.

When you have multiple Warehouses, no matter what hide button you click, the subscriptions are hidden from bottom to top and no matter what show button you click, the subscriptions are revealed from top to bottom.

Signed-off-by: Remington Breeze <[email protected]>
@rbreeze
Copy link
Contributor Author

rbreeze commented Aug 15, 2024

@krancour and I discussed offline. I changed the mechanism by which this hiding works to solve the problem: before, the approach was to remove the subscription nodes before the DAG was calculated. Now, we render the DAG the same regardless of which subscriptions are hidden, and simply don't render the hidden nodes. Before, the DAG jumped around, and now the DAG is stable.

Untitled.mov

@krancour
Copy link
Member

Thanks @rbreeze. I tried it out and it works great. The only potential issue I see is that once all the subscriptions are hidden, since they're merely invisible, they're still taking up screen real estate, which may be irksome for some longer DAGs.

I think you were working on doing the DAG differently anyway and this fix is just an interim one? If that's the case, this LGTM.

@rbreeze
Copy link
Contributor Author

rbreeze commented Aug 15, 2024

@krancour I agree, that would be an annoyance for sure.

You're correct, I'm currently working on rewriting the DAG rendering to take place on the backend, so I can certainly fix this issue as part of that overhaul.

@rbreeze rbreeze added this pull request to the merge queue Aug 15, 2024
Merged via the queue into main with commit b9ba871 Aug 15, 2024
17 checks passed
@rbreeze rbreeze deleted the rbreeze/hide-subscriptions-2 branch August 15, 2024 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: make show/hide warehouse subs button show/hide only subs for one warehouse
3 participants