day8 / re-frame-10x

A debugging dashboard for re-frame. X-ray vision as tooling.
MIT License
632 stars 68 forks source link

[Enhancement]: Path inspector left and right-click suggestions #348

Closed Gregg8 closed 1 year ago

Gregg8 commented 2 years ago

1 - Right-click menu improvements

Suggestions:

2 - New path replaces current path

It's quite jarring to have the parent tree disappear when you click on items.

After some discussions, we've decided on four functions that should cover all use cases:

Open path in current inspector

Open path in NEW inspector

Open parent path in current inspector

Clear inspector path

See the screenshot below for button placement:

image

MawiraIke commented 2 years ago

The tasks from this issue are:

Gregg8 commented 2 years ago

@MawiraIke I've updated the spec for item 2 above ^^^

Note: we're skipping the "history of paths with step back and forward functionalities" feature

MawiraIke commented 2 years ago

Got it @Gregg8 . I have updated the PR #350 with the new features.

Gregg8 commented 2 years ago

Nice improvements. Love the parent path and clear path buttons.

Some feedback:

MawiraIke commented 2 years ago

Thanks @Gregg8 for the feedback. The issues you mentioned above are in continuous development and the second one regarding middle click triggering scroll mode should be fixed in the latest release 1.2.4. I will update on the rest here after committing their fixes.

MawiraIke commented 2 years ago

@Gregg8 the remaining two issues should be fixed on PR #356 waiting to be merged. That is:

  1. The right-click menu appears about 700px to the right. This should be fixed and the menu should show to the immediate right of the mouse click - as if anchored by its top left corner.
  2. The inspector is closed by default. I have added an option in settings that allows users to choose the default behavior that will affect all new inspectors created.
Gregg8 commented 2 years ago

Tested 1.2.6:

  1. Thanks. This is much better than before. However, instead of anchoring the popup menu to the position of the mouse pointer, it is anchored to the top-left corner of the object being clicked on, so if you click at the beginning of an object, it's sufficiently close the the mouse-click, but if you click near the end of a long object name, it appears quite far to the left of the mouse-click. In the image below, the arrow points to the caret, which is where I clicked...
    image
  2. Great