comfy_mtb icon indicating copy to clipboard operation
comfy_mtb copied to clipboard

[feat] Fix note+

Open melMass opened this issue 9 months ago • 4 comments

Describe the problem

It completely broke in a recent comfy update and there is now a buitlin equivalent. This will remove A LOT of js code from mtb which is nice. I tried to do it quickly but it's more involving then expected

Image

Describe the solution you'd like

  • If possible deprecate first then remove but I don't think there is a way for frontend only nodes.
  • Find a way to handle serialized note+ to convert them to the builtin one on opening old worflows

Alternatives considered

The issue is that the hack from https://github.com/melMass/comfy_mtb/blob/af421340286b234e4c0cfcd4143a9d8726ebf3d1/web/note_plus.js#L149 doesn't work anymore.

And the whole DOM element block pointer events (that I use for both dragging notes and opening the editor)

Image

Additional context

No response

melMass avatar Mar 14 '25 13:03 melMass

would love some instructions to bypass this. after loading a workflow that had this kind of node, i can no longer move/load workflows because the error keeps popping up

RhaoG avatar Mar 22 '25 12:03 RhaoG

remove note+ is ok for me, the how to open my old workflows? any suggestion?

K-O-N-B avatar Mar 22 '25 16:03 K-O-N-B

Thanks for the reports, I'll look into it today and either solve the issue or effectively remove it with a fallback

melMass avatar Mar 22 '25 16:03 melMass

@RhaoG @K-O-N-B update mtb and it should work fine. The issue (#239) was unrelated to node+ being broken in the latest frontend

melMass avatar Mar 22 '25 19:03 melMass

new markdown nodes is cool by its own, but not covering my usecase I liked note+ for clean blocks of text that i could see form far to have birdeye view of my workflow.

NOTlinnkoln avatar Apr 28 '25 14:04 NOTlinnkoln

@NOTlinnkoln Thanks for the feedback! I will look into it as I noticed that too and as I'm fully revamping the examples of mtb I will need these notes.

melMass avatar Apr 28 '25 20:04 melMass

I can't edit, or remove it from my workflow.

scofano avatar Apr 30 '25 18:04 scofano

@scofano Bummer... I'm busy until Friday but I will look into fixing note+ asap. It's finicky but try the top right border of the node... The TDLR is that they changed the order of events in the comfy frontend which broke note+

https://github.com/user-attachments/assets/a2bfe367-e328-439d-ba5d-4ae60108c655

melMass avatar Apr 30 '25 20:04 melMass

@melMass Thanks for the video, (and for the outstanding nodes). I had a previous version of the workflow, so I deleted the one that had it and updated the previous one. =)

Take your time.

scofano avatar May 01 '25 01:05 scofano

I finally got time to look into this and made a bunch of improvements on top of fixing it. I will release it tomorrow (after testing it a bit more)

https://github.com/user-attachments/assets/914bc27c-6c11-471a-b794-c48e04c905f8

melMass avatar Jun 05 '25 10:06 melMass

FIxed in 63be3f26fdba0454b8d93b77edca93be3f8daa4b

melMass avatar Jun 07 '25 12:06 melMass