sindresorhus/refined-github

Display confirmation box when closing an issue with a comment #3884

Richienb posted onGitHub

Useful to avoid accidentally closing issues.

Should be applied for all issue pages: https://github.com/*/*/issues/*

Should be triggered when clicking this button:

Close with comment


Don't we already put the close button on the other side to avoid this issue?

posted by yakov116 about 4 years ago

@fregante Sorry for the ambiguity, I actually meant this button:

Close with comment

posted by Richienb about 4 years ago

Sorry I had completely misunderstood. I thought "Closing a tab before submitting a comment"

posted by fregante about 4 years ago

Should be triggered when clicking this button:

Close with comment

I did this accidentally a few times, but I don't know if I'd find the confirmation less annoying than just reopening the issue šŸ¤”

Don't we already put the close button on the other side to avoid this issue?

Yes: https://github.com/sindresorhus/refined-github/blob/382b398cbaccbb5a3f7135cf873f1302daf5901e/source/features/safer-destructive-actions.css

posted by fregante about 4 years ago

Perhaps, instead, there should be a 2-second countdown that allows you to immediately cancel the action.

posted by Richienb about 4 years ago

Given the non-destructiveness of the action I don't think it's worth messing with that. That button already has enough logic behind it (and more is coming with #3881)

posted by fregante about 4 years ago

As annoying as it is (honestly, just a little), I think having to confirm your action even when you want to close it actually makes it worse.

Now:

  • intentional: 1 click
  • unintentional: 2 clicks

With a confirmation

  • intentional: 2 clicks
  • unintentional: 2 clicks

šŸ¤·ā€ā™‚ļø

posted by fregante almost 4 years ago

Fund this Issue

$0.00
Funded

Pull requests