Closed benloh closed 2 months ago
Consider adding a generalized click manager #174
Tried running npm ci and same error ... ?
Sorry 'bout that. Hopefully this is fixed?
Yes it runs now!
Minor bug - if editing a node closes comment window, the most recent comment is not marked as read:
BUT ...
Otherwise that seems fine ...
Note: it used to be that if I opened a comment and selected a new node, the old comment stayed open. Now when I click to a new node, it switches to the comments from that new node. I think that might feel confusing.
Also, I think this was already happening, but the comment icon keeps the red outline after being cleared unless you reload the window.
Minor bug - if editing a node closes comment window, the most recent comment is not marked as read
This is currently by design: we don't mark a comment read unless you explicitly click on the comment "X" or "Close" comment. Otherwise, any time you open a comment window and open a new node everything would be marked read even if you didn't scroll to actually see the comment (e.g. if the comment is long and has scrolled off the screen). I suppose the question is whether we want to err on the side of marking more comments read or on making the act of marking a comment read more explicit.
Note: it used to be that if I opened a comment and selected a new node, the old comment stayed open. Now when I click to a new node, it switches to the comments from that new node. I think that might feel confusing.
I think this has been the behavior for quite a while now. The problem is that we want to associate the comment window with the comment button. As soon as you select a different node, the comment button is closed. If we kept the old comment window, we would have an open comment window but no sense of where that comment window came from. Selecting a node from the node table does let you keep multiple comment windows open, but that's because that comment button is still visible in the table.
We probably want to add an indicator that shows which comment button is open and associated with the opened comment.
Also, I think this was already happening, but the comment icon keeps the red outline after being cleared unless you reload the window.
Hmm...I'll need to revisit this. Especially if we want to use the stroke to indicate which window is open.
The comment locking and marking read/unread is fairly complicated, so I think there are still some instances where things are not being properly unlocked. I still need to do a lot of QA.
This is currently by design: we don't mark a comment read unless you explicitly click on the comment "X" or "Close" comment. Otherwise, any time you open a comment window and open a new node everything
OK that makes sense.
I think this has been the behavior for quite a while now. The problem is that we want to associate the comment window with the comment button. As soon as you select a different node, the comment button is ...
Ahh, somehow I missed it and I liked the old version. I somehow had multiple comments open, but ... if it is a huge ask I can verify people's feelings on it before you put in the work.
I think this has been the behavior for quite a while now. The problem is that we want to associate the comment window with the comment button. As soon as you select a different node, the comment button is ...
Ahh, somehow I missed it and I liked the old version. I somehow had multiple comments open, but ... if it is a huge ask I can verify people's feelings on it before you put in the work.
Coordinating open comment windows across a node, an edge, the nodetable and the edgetable was not easy. I can see why it might be handy to have multiple comment windows open, but I think it's problematic that a comment window remains open after the node itself has been closed. It would mean, for instance, you could not easily click through multiple nodes to quickly view comments. It'd take five clicks to review two nodes:
I suppose the alternate approach would be to always close the comment window on selecting a new node, but then you'd lose the ability to have mutliple comment windows open in the first place.
Hm. OK, given the context let's go with changing what is in the window for now (so don't change it). The majority of the time, if I am not "testing" I would close the comment myself so it's not really an issue. Let's run with that.
Joshua commented: "Would it be easy to add a title on the comments window? So in that bar it might say "Comments on Node: Fish"? That'll help make it obvious where you are if you click around and ease some of my discomfort with that functionality. Then I'd say let's leave it for now. Also, confirming the recent fix to the icon (no more red outline when there shouldn't be)." in #178
While a comment is being edited, we need to catch events to prevent the comment from inadvertently being closed:
To Test
We probably want to add some messaging so that the caught clicks don't just quietly fail. e.g. add an alert message informing the user to "Please finish editing the comment before selecting another comment" or something like that.