-
-
Notifications
You must be signed in to change notification settings - Fork 135
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
FEATURE: Make document tree clickable #3440
FEATURE: Make document tree clickable #3440
Conversation
Nice one, noticed that also here: #3241 (comment) Im not sure why we need another uri (the backenduri) on the node (seems like a bad idea performance wise and also technically) but have to look into this deeper |
@mhsdesign |
The end to end tests failed because the fluid version is not working. TYPO3/Fluid@24f4494 But guess a new build would work since today 2.7.4 has been released. |
packages/neos-ui/src/Containers/LeftSideBar/NodeTree/Node/index.js
Outdated
Show resolved
Hide resolved
Will check it later today |
question is, what to do with the legacy onClick logic?
neos-ui/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/Node/index.js Lines 363 to 382 in 4497f94
neos-ui/packages/neos-ui/src/Containers/LeftSideBar/NodeTree/index.js Lines 59 to 79 in 4497f94
|
Co-authored-by: Marc Henry Schultz <85400359+mhsdesign@users.noreply.github.com>
Co-authored-by: Marc Henry Schultz <85400359+mhsdesign@users.noreply.github.com>
92aa7aa
to
a9d3b88
Compare
While testing and fixing the End-to-end tests I stumbled over the issue that the multiple move of nodes is broken. Will try to fix that. Only via Toolbar it is not working yet. |
6a1d841
to
e3d185e
Compare
Finally, the tests are green again :) |
This logic is still used on a higher layer for the multi operations on nodes. |
This legacy second way now introduces a lot of complexity — and we must clean it up please 😅 (or share the logic, comment it and explain how things work and why this would be necessary) otherwise it’s really hard for future people to make sense of the code This pr is only okay as intermediate step … |
Indeed ... we have an issue for making the tree accessible and as I watched into it some months ago I realized that it will need a bit further adjustments on the markup to achieve that. With the change from Paula, we have a first step. |
What I did
I changed the document tree elements into links so that we can open them with right/middle click
How I did it
Since I was not sure how to get the URL (neos/content) from the Node I tried around a little bit and changed the NodeInfoHelper to add the backendUri. I tried to adhere as much as possible to the currently existing "uri" property in the node. If there is a better place for this, I am ready to learn 😄
Some googling told me that a tags without href are valid so I chose to exchange all of the spans into a-tag. Works still as expected.
How to verify it
Links now show up in the left document tree:
closes #3353