-
Notifications
You must be signed in to change notification settings - Fork 3
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
1221 - Tapestry 3.0 - Allow standalone nodes #1222
Conversation
A bug with creating draft nodes:
Is this the expected behaviour? Implemented reversible changes that allow accepting standalone draft nodes and draft child nodes of draft nodes in f8898fc |
[not related to the above bug, but a side note] While debugging I noticed this piece of code in the Sidebar component, where if el is found it calls tapestry-wp/templates/vue/src/components/Sidebar/index.vue Lines 251 to 265 in 74457c3
[update] This indeed is a mistake. Since it is a small, rather unrelated change, the fix will be merged into master as a part of #1229 |
Bug: sometimes an extra "updateNode" is triggered with the ID of an already deleted node when adding a node in an empty tapestry after deleting all nodes, which causes the backend to throw NodeMetaId invalid error. I have yet to be able to consistently reproduce this bug but it is a critical one that needs fixing. [update] After encountering this bug again when debugging on another branch, I realized this may be due to the Webpack hot reloading re-mounting the NodeModal which adds an "add-node" event listener to the root of the NodeModal component tree (not the NodeModal itself, and apparently Webpack does not remove the registered event listener from the root component when refreshing the NodeModal code). This results in multiple "add-node" event listeners being triggered for one "add-node" event. Refreshing the page will eliminate this problem. Since it is due to the development environment's hot reloading functionality, this bug does not affect the production environment and can be easily avoided during development, too. In any case, it is good to know that this issue exists and why it happens. |
FIXED in 2de0a8e Bug: links attached to deleted nodes are still present in the backend (can be seen within the export file of the tapestry) |
…ildren of draft nodes
1e299cd
to
f8898fc
Compare
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
I just tested this out again today and it's working great! (https://test.tapestry-tool.com/1221-standalone-nodes/tapestry/testing-stand-alone-nodes-november-4-2022/#/nodes/16?x=275.9308&y=104.7595&scale=1.18) Good Job!! |
Bug: Sometimes I am able to create a standalone node by using the authoring toolbar's node addition button; however, sometimes this feature doesn't work. In other words, the node either won't actually stick to the page when I try to add it, or the node that ends up being created isn't clickable and keeps moving around the page. |
f614966
to
e10419d
Compare
Changes
rootId
field of the tapestry object optional, so that it is merely used to determine the initial node selected upon viewing the Tapestry for the first time. Root node should be called "default node" from now on, since it reflects which node gets selected when viewing the tapestry for the first time.rootId
value.New draft node behaviours
Bug fixes and improvements
Screenshot
Issue Linkage
Closes #1221
Closes #1223
PR Dependency
Depends on: #1276
Automated Testing