`status-subscription` - Disable while loading by fregante · Pull Request #9743 · refined-github/refined-github · GitHub
Skip to content

status-subscription - Disable while loading#9743

Merged
fregante merged 3 commits into
mainfrom
disabled
Jun 16, 2026
Merged

status-subscription - Disable while loading#9743
fregante merged 3 commits into
mainfrom
disabled

Conversation

@fregante

Copy link
Copy Markdown
Member

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.

This was not an "issue" button, it was the "non-legacy" button


subscriptionButton.after(
<div className="rgh-status-subscription BtnGroup d-flex width-full">
{tooltipped({label: 'Unsubscribe', direction: 'sw'}, <SubButton

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.

Copilot made a mess in #9451, I cleaned it up and used dprint

subscriptionButton.after(
<div className="rgh-status-subscription BtnGroup d-flex width-full">
{tooltipped({label: 'Unsubscribe', direction: 'sw'}, <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.

Fixed

@fregante fregante marked this pull request as ready for review June 16, 2026 09:05
await updateIssueSubscriptionStatus('all', issue);
void addButtonIssue(subscriptionButton);
}}
{...(status === 'all' && disableAttributes)}

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.

I also fed it to Claude to reduce duplication a bit and cleanup the feature. Still appears to work on both issues and PRs

@fregante fregante enabled auto-merge (squash) June 16, 2026 09:23
@fregante fregante merged commit 96a16b1 into main Jun 16, 2026
12 checks passed
@fregante fregante deleted the disabled branch June 16, 2026 09:26
Comment on lines +63 to +80

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.

Lines got a bit longer but it's way more readable now

Image

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.

status-subscription disable while loading

1 participant