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

feat #734: Delete a node using the delete key #1566

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ibek
Copy link
Contributor

@ibek ibek commented Oct 11, 2024

also for #1477

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 67.50000% with 13 lines in your changes missing coverage. Please review.

Please upload report for BASE (main@d985f82). Learn more about missing BASE report.

Files with missing lines Patch % Lines
.../ui/src/components/Visualization/Canvas/Canvas.tsx 45.83% 11 Missing and 2 partials ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1566   +/-   ##
=======================================
  Coverage        ?   79.87%           
  Complexity      ?      272           
=======================================
  Files           ?      277           
  Lines           ?     7910           
  Branches        ?     1553           
=======================================
  Hits            ?     6318           
  Misses          ?     1481           
  Partials        ?      111           

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

Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

  • When trying to delete a route, it is asking if we want to delete a step and the deletion is not working
  • i think this is an important feature which requires tests to avoid regression and to be sure that we do not delete more data than planned
  • i'm wondering if the code could not be factorized with the delete from the contextual menu
  • recommendation to link the PR to the issue in github, the commi tmessage should include the text fixes #734

@ibek ibek force-pushed the feat-734 branch 2 times, most recently from e7f99b7 to 8cf6f46 Compare October 13, 2024 20:08
@ibek ibek requested a review from apupier October 14, 2024 10:51
Copy link
Member

@apupier apupier left a comment

Choose a reason for hiding this comment

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

it will be better to split the 2 features delete and move. As there are several feedback on them which are independent.

  • About delete:
    • I still really think it is very important having tests for the delete functionality as it can lead to data loss if there is a problem
  • About keys to navigate:
    • By default, the layout is top-down and not left-right, here it is using left/right arrow to move in the route. arrow up/down would be more natural as the default. In another iteration, we can make it dependent on the layout direction.
    • When at the end of the route, I would expect to stay on the last step when moving with key (or moving up, so selecting route). But can be done in another iteration. it would also ensures to not get out of the navigation.
    • When inside a container on latest element and using key to go to next element, selection is removed. i would expect to go to next element outside of the container
    • I see a lot of little corner case with arrows to navigate selection so would be better to have tests in place. (for instance when there will be multi-selection possible)

Copy link

sonarcloud bot commented Oct 15, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants