Repository navigation
Add status-subscription feature - #6476
Conversation
status-subscription feature (WIP)status-subscription feature
| <SubButton | ||
| // @ts-expect-error I don't remember how to fix this |
There was a problem hiding this comment.
Probably just a consequence of dom-chef’s "bad types"
| // You’re receiving notifications because you chose custom settings for this thread. | ||
| if (reason.includes('custom settings')) { | ||
| return 'status'; |
There was a problem hiding this comment.
The "Status" button will be highlighted even if the just one event was selected, there's no "partially-selected" status. Not something I'm interested in fixing, just click "None" and then "Status" to get the full status subscription. "Customize" shows the correct status anyway.
|
This works beautifully without any events. Let's enjoy this until the Reactmageddon comes wipe Refined GitHub off the face of GitHub Screen.Recording.10.mov |
| <p><a title="linkify-code"></a> Linkifies issue/PR references and URLs in code and conversation titles | ||
| <p><img src="https://cloud.githubusercontent.com/assets/170270/25370217/61718820-29b3-11e7-89c5-2959eaf8cac8.png"> | ||
| <p><a title="linkify-code"></a> Lets you subscribe to opening/opening closing events of issues in one click. | ||
| <p><img src="https://github.com/refined-github/refined-github/assets/1402241/cbc98b51-d173-40c6-b21e-5f0bae3d800c"> |
There was a problem hiding this comment.
Old features lose the highlight… especially because they're breaking 🥲
There was a problem hiding this comment.
So this URL redirects to https://github-production-user-asset-6210df.s3.amazonaws.com/1402241/238186901-cbc98b51-d173-40c6-b21e-5f0bae3d800c.png
Should we just use the final URL? I think that as long as we have the original image uploaded to the issue, we can use the final .png URL (which is why the feature verification is failing)
|
Can't wait for this!! |
|
Finally! 🎉 |
|
This is amazing 👏 |
|
I'm kind of focusing on visible features that improve the workflow on GitHub rather than small refinements lately, I think these are really good:
No as mere "click-saving" features but also as "the information you need, where you need it." Also kind of loving the new super-clear label in |

Findings
(resolved)
The DOM doesn't include information regarding the exact current subscription state, but it does mention "custom state" (which could be either one or both "closed" and "reopened")
GraphQL doesn't include information regarding custom subscriptions states nor allows setting it:
I don't see any way to get or set subscription state to a specific issue via Rest API
Both the "unsubscribe" and "custom" forms point to
/notifications/thread👍That means:
Demo
UI-wise, none of the options mentioned so far work that well together with the current "subscribe/unsubscribe" button, because it acts as a "single action that also shows the (partial) status" and it's hard to combine it with "subscribe, but only to status events"
This is the best I could come up with: replacing the native button and sometimes hiding the reason if redundant
I'm tempted to hide the "customize" button but it's best to leave it just in case this fails. That form will continue working.