Refined-github: Customize subscriptions in 1-click

Created on 15 Apr 2020  路  2Comments  路  Source: sindresorhus/refined-github

Try subscribing to this issue鈥檚 closure, it takes 4 clicks. Can this be reduced to 1 click?

Examples:

group icons

Or 3 clicks 馃槵 (but nearer/easier)


Dropdown demo code

<details class="details-reset details-overlay" open="">
  <summary aria-haspopup="true" class="btn btn-block btn-sm thread-subscribe-button">
    {unmuteIcon()} Subscribe
  </summary>
  <div class="SelectMenu right-0">
    <div class="SelectMenu-modal">
      <header class="SelectMenu-header">
        <h3 class="SelectMenu-title">Customize</h3>
        <button class="SelectMenu-closeButton" type="button">
          {xIcon()} 
        </button>
      </header>
      <div class="SelectMenu-list">
        <button class="SelectMenu-item" role="menuitemcheckbox">
          {checkIcon()} Unsubscribed
        </button>
        <button class="SelectMenu-item" role="menuitemcheckbox">
          {checkIcon()} All notifications
        </button>
        <button class="SelectMenu-item" role="menuitemcheckbox">
          {checkIcon()} Merged
        </button>
        <button class="SelectMenu-item" role="menuitemcheckbox">
          {checkIcon()} Closed
        </button>
        <button class="SelectMenu-item" role="menuitemcheckbox">
          {checkIcon()} Reopened
        </button>
      </div>
    </div>
  </div>
</details>

enhancement help wanted

Most helpful comment

I think a relatively-easy compromise would be to add a button that subscribes you to status changes only (closed, merged, reopened) in one click

At the very least, it can just exist and be able to submit the form.

As an improvement, it could show a pressed+disabled style if the current subscription settings are exactly merged, closed, reopened

Any other options and the ability to undo this are available in the Customize modal anyway.

All 2 comments

Keeping the "Custom" section always open would also bring it down to 3 clicks:

  1. Customize
  2. Closed
  3. Save

I think a relatively-easy compromise would be to add a button that subscribes you to status changes only (closed, merged, reopened) in one click

At the very least, it can just exist and be able to submit the form.

As an improvement, it could show a pressed+disabled style if the current subscription settings are exactly merged, closed, reopened

Any other options and the ability to undo this are available in the Customize modal anyway.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

MilesBHuff picture MilesBHuff  路  3Comments

mareksuscak picture mareksuscak  路  3Comments

Celthi picture Celthi  路  3Comments

yakov116 picture yakov116  路  3Comments

sindresorhus picture sindresorhus  路  3Comments