Can easily double submit comments on a PR

Issue #150 resolved
Daniel Wood created an issue

When submitting a comment on a PR using ctrl + enter, there is no blocking of another submission. Since the comment waits until a confirmation from the server about the submission, it is easy to think it was not submitting and hit ctrl + enter to submit again, resulting in a double comment that cannot be deleted from the extension.

I would expect for submission to be blocked after posting. Further, I think it would be better UX to have the comment applied locally in an optimistic way, which can then be reverted on failure.

Deleting comments from within the extension would also be nice, but I assume that is already being worked on.

Comments (6)

  1. Log in to comment