Skip to content

Add status-subscription feature - #6476

Merged
fregante merged 8 commits into
mainfrom
status-subscriptions
May 15, 2023
Merged

fregante merged 8 commits into
mainfrom
status-subscriptions

Conversation

@fregante

@fregante fregante commented Apr 8, 2023 •

Copy link
Copy Markdown
Member

Findings

(resolved)

That means:

  • we can use that "reason" paragraph to detect the current state
  • we we have to submit GitHub’s own form to make changes

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

Before After
Screenshot 17 Screenshot 18

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.

@fregante
fregante marked this pull request as ready for review May 14, 2023 12:22
@fregante fregante changed the title Add status-subscription feature (WIP) Add status-subscription feature May 14, 2023
Comment on lines +51 to +52
<SubButton
// @ts-expect-error I don't remember how to fix this

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably just a consequence of dom-chef’s "bad types"

Comment on lines +31 to +33
// You’re receiving notifications because you chose custom settings for this thread.
if (reason.includes('custom settings')) {
return 'status';

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@fregante

Copy link
Copy Markdown
Member Author

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

@fregante

Copy link
Copy Markdown
Member Author

Screenshot 16

Comment thread readme.md Outdated
<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">

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Old features lose the highlight… especially because they're breaking 🥲

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

@yakov116

Copy link
Copy Markdown
Member

Can't wait for this!!

Comment thread source/refined-github.css Resolved
@fregante
fregante enabled auto-merge (squash) May 15, 2023 17:44
@fregante
fregante merged commit e62a6d1 into main May 15, 2023
@fregante
fregante deleted the status-subscriptions branch May 15, 2023 17:45
@fregante

Copy link
Copy Markdown
Member Author

Finally! 🎉

@yakov116

Copy link
Copy Markdown
Member

This is amazing 👏

@fregante

Copy link
Copy Markdown
Member Author

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:

  • previous-version
  • netiquette
  • status-subscription
  • closing-remarks
  • unreleased-commits
  • rgh-feature-descriptions

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 restore-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

Customize issue/PR subscriptions in 1-click

3 participants