Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add ability to remove hotfixes temporarily - #9875

Merged
fregante merged 18 commits into
mainfrom
copilot/add-empty-hotfixes-button
Aug 7, 2026
Merged

Add ability to remove hotfixes temporarily #9875
fregante merged 18 commits into
mainfrom
copilot/add-empty-hotfixes-button

Conversation

@fregante

Copy link
Copy Markdown
Member

This can be useful to see if a bugfix was released or if it's just a hotfix

@github-actions github-actions Bot added the meta Related to Refined GitHub itself label Jul 22, 2026
</button>
<button type="button" onclick={emptyHotfixes}>
Empty hotfixes
</button>

@fregante fregante Jul 22, 2026

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 just don't know how yet:

  • document what this does: it lasts a few hours

@fregante fregante Aug 5, 2026

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.

Emptied:

Screenshot

@fregante fregante left a comment

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.

Test

@fregante
fregante marked this pull request as ready for review August 5, 2026 10:05
@fregante
fregante enabled auto-merge (squash) August 6, 2026 09:02
@fregante
fregante disabled auto-merge August 6, 2026 09:02
Comment thread source/helpers/hotfix.tsx
if (isDevelopmentVersion()) {
return [];
}

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.

Condition moved in here, much easier to manage

Comment thread source/helpers/hotfix.tsx
// To facilitate debugging, ignore hotfixes during development.
// Change the version in manifest.json to test hotfixes
updater: async (version: string): Promise<string> =>
isDevelopmentVersion() ? '' : fetchHotfix(`style/${version}.css`),

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.

Bugfix: 0.0.0.css was fetched unnecessarily

Comment thread source/helpers/hotfix.tsx

export async function applyStyleHotfixes(style: string): Promise<void> {
if (!style || isDevelopmentVersion() || isEnterprise()) {
if (!style || isEnterprise()) {

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.

style is empty on the dev version


if (details.open) {
querySelector('input, textarea', details)?.focus({preventScroll: true});
querySelector('input:read-write, textarea:read-write', details)?.focus({

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 would select the hotfixes textareas, but it's not editable so that's not useful

Comment thread source/options.tsx
await elementReady('.js-features', {
stopOnDomReady: false,
signal: AbortSignal.timeout(500),
signal: AbortSignal.timeout(1000),

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.

Slow internet triggered the error banner and broke the page

@fregante
fregante merged commit 1177c07 into main Aug 7, 2026
14 checks passed
@fregante
fregante deleted the copilot/add-empty-hotfixes-button branch August 7, 2026 06:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

meta Related to Refined GitHub itself

Development

Successfully merging this pull request may close these issues.

Add version/hotfix override

2 participants