netcreateorg / netcreate-itest

Developing the 2.0 version of NetCreate
https://github.com/netcreateorg/netcreate-2018
Other
0 stars 0 forks source link

Deleting comments may not re-show the close button #209

Closed jdanish closed 1 month ago

jdanish commented 1 month ago
Screenshot 2024-05-16 at 3 46 48 PM

I believe the steps were:

  1. Respond to comment
  2. Go to original account in another window and delete original comment
  3. Return here and delete bottom comment, this removes the entire thread
  4. Close button should appear but does not

(reload works fine, but ... )

benloh commented 1 month ago

@jdanish I can't reproduce this. Can you clarify the exact steps you're taking?

If the Close button is disabled, it probably means someone was in a comment edit mode. But I'm not sure what sequence of events caused you to get stuck in edit mode?

jdanish commented 1 month ago

Sent video via slack, but it is:

  1. User 1 makes comment 1
  2. User 2 makes reply 1a
  3. User 2 adds reply 1b (by replying to 1a)
  4. User 1 deletes comment 1 (it is hidden, but 1a and1b remain)
  5. User 2 deletes 1a (also hidden but not yet gone)
  6. User 2 clicks to write a new comment (2) (accidentally?)
  7. User 2 deletes comment 1b. This removes all of the prior comments in that thread as it should.
  8. In the process, comment 2 was saved, but the close button remains faded

There may be a more direct path but that's how I found it ...

jdanish commented 1 month ago

Confirmed, more direct route:

  1. Create comment 1
  2. Create comment 2, but do not yet save
  3. Delete comment 1.
  4. See that comment 1 is deleted, comment 2 is auto-saved, close is still faded.

So, I guess we just need to make sure the auto-save re-enables the close button if it saves due to navigating away by doing some other comment delete?

benloh commented 1 month ago

Thanks. OK I think in this case, what I probably should be doing is disabling the "DELETE", "EDIT", and "REPLY" buttons on other comments while a comment is being edited.

benloh commented 1 month ago

@jdanish See if this fixes it. It's in the dev-bl/add-log-items branch.

jdanish commented 1 month ago

Looks good! Thanks!