-
Notifications
You must be signed in to change notification settings - Fork 44
feat(viz): Provide an empty state for the canvas #1967
Conversation
looks good! |
<Background color="#aaa" gap={16} /> | ||
</ReactFlow> | ||
</div> | ||
{visibleFlowsInformation.isCanvasEmpty ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OMG, I forgot to add tests for this clause, I'll add this test case and merge it afterward.
@tplevko covering this condition at the integration test side would be enough or should we add an e2e as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here we have the missing test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well from my POV, I think the test you added should be enough, can add more testing for this in e2e if requested.
Currently, whenever there's no visible route in the canvas, a full gray area is shown. The goal for this commit is to provide more information to the user about the status of the routes in the canvas itself. When there's no visible routes, an according message will be displayed.
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov Report
@@ Coverage Diff @@
## main #1967 +/- ##
==========================================
+ Coverage 60.25% 60.72% +0.46%
==========================================
Files 76 78 +2
Lines 2521 2546 +25
Branches 565 576 +11
==========================================
+ Hits 1519 1546 +27
- Misses 955 956 +1
+ Partials 47 44 -3
|
Context
Currently, whenever there's no visible route in the canvas, a full gray area is shown.
Changes
The goal for this commit is to provide more information to the user about the status of the routes in the canvas itself. When there are no visible routes, an according message will be displayed.
No visible routes
No routes
fixes: #1909