Closed benloh closed 2 months ago
Cool. Seems to work!
I know that you have a list of to-dos, and there are some prior issues related to notification, so ... do you have a list?
or I can wait for the next round.
Some other key things in case:
At this point I think I have more questions than answers. So this is a good start. I think I want to pull out a lot of these as separate design issues so that we can tackle them discretely.
@jdanish here's a second pass. Please give a whirl and see what you think. Clicking on the comment to open it is not working yet. (Updated the main message too)
The number of "Unread replies to me" and "Unread" are shown in the navbar.
Hover over the icons to see the labels explaining what the icons are.
When a new comment is added...
Clicking on the comment bar will open up the full list of unread comments. Clicking it again will close the panel. (Or you can use the "Close" button).
cool. I like this direction. I am not sure we want to just use color on the icons, but I'll leave that be for now.
Two minor things: 1) I think identifying nodes by number isn't all that helpful. It should be Node: "Algae" instead of Node: 2 I think? 2) The empty space to the right of the icon on mouse over feels weird? Again, minor.
Thinking aloud I could see some debate about whether we want the double-count on "replies to me" but I think this approach makes the most sense as-is, and to only count it once would be more confusing, so let's leave it for now.
I'll wait to run past the team when the links work but I like this direction.
Long node names make the whole graph look annoying, so I think we tend to avoid them, but ... I'd be OK with truncating the name after some number of characters to avoid the problem? Like "Long name he..." for "Long name here be found" (I was just reading a review of a pirate tv show.
The mark all read works nicely. Two new finds:
1: If you update a comment, it does pop up saying there is something new (correct) but does not update the unread count (still says 0, not as expected).
2: If you type a long comment it'll scroll off screen. We should either line wrap or truncate in the previews.
Also, I realize the comment links don't yet work, but presume the node / edge names will also be working? If not (or later) that's fine since the comment link does the heavy lifting.
1: If you update a comment, it does pop up saying there is something new (correct) but does not update the unread count (still says 0, not as expected)
Updating an existing comment does not mark it unread, nor update the counts. So you're saying a comment should be marked unread whenever the content is edited?
Yes, and that new commit looks good. Thanks!
Eventually, I think it likely we request that instead of "Edge 1" it read "Edge Algae -> Fish" however ... I'd say that can wait until after we lock down the rest of the comment stuff unless it feels much easier to do now. Just throwing that out there. I'd rather get to where we can test comments, start editing templates outside of code, and then port into meme otherwise. Thanks!!
I think the node not found were because the comments were deleted by the other user before this one read them. I can dig in but figured I'd first share in case it helps. I can look closer later if the issue isn't obvious.
This is live now at http://198.211.109.198/graph/SeedsTest/#/edit/1-1-EVM if you want to check.
Integrating these into the main comment so we have all notes in one place.
This looks awesome. Testing hard with team today. I believe the one minor tweak we are waiting on from late last night is having a view button on nodes table for parity? Otherwise we might be close to functionality completeness here?
By the way - I am not 100% sure we still need / want a "comment list" function now that this is all working as it is, but will discuss with the meme team. It might be meme only ... will follow up but I think that's lower on your list anyhow so no rush?
I believe the one minor tweak we are waiting on from late last night is having a view button on nodes table for parity? Otherwise we might be close to functionality completeness here?
I just added the "View" button.
So yes, the functionality is basically complete, noting that:
Sounds good! I've been testing on and off the last few days and it seems stable now, so I am OK with a merge if you are. If you prefer I hit the current build harder, I can also do that.
@benloh Is there an easy way to verify the correct deletion of comments on deletion of node? I am not seeing any errors, but I also don't know if there are random comments hanging around in the DB?
NOTE: It occurred to me that one might expect comments to merge when merging (just like edges) but I think that's going a bit too far and think this works as-is.
@benloh Is there an easy way to verify the correct deletion of comments on deletion of node? I am not seeing any errors, but I also don't know if there are random comments hanging around in the DB?
Sorry I should have included testing procedures.
The best way to test this is test it BEFORE the fix:
npm run dev
Now do the same thing with the fix.
NOTE: It occurred to me that one might expect comments to merge when merging (just like edges) but I think that's going a bit too far and think this works as-is.
Yeah simpler is probably better.
That also reminds me that I had tested the research log earlier, but it might be worth another check to make sure it's doing what you expected. So if comments are deleted you can still review the log to see what was there.
Thanks! I can now verify that that appears to work and with a whole bunch of tinkering with deleting and creating nodes and restarting I don't see any new issues.
Will look at logs. Thanks!
The other way to review of course, is to just look at the loki file. But that's a little harder to suss.
Hopefully it's pretty solid now, but I'm sure there's some edge condition that we haven't yet caught.
Yeah, that is a bit of a hassle for now. Maybe later when we have comment exports :)
And yeah, seems solid for now.
Comment Status Feature
Show "Unread Replies to me" and "Unread" in comment bar
The number of "Unread replies to me" and "Unread" are shown in the navbar.
Hover over the icons to see the labels explaining what the icons are.
If all comments are read, the comment status icons are grayed out.
Show new message alerts
When a new comment is added...
All Unread Messages Panel
Other Notes
Original First pass
A first pass at comment status.
Caveats