Skip to content

Meta: Move hotfixes to new repo + allow string hotfixes - #5763

Merged
fregante merged 8 commits into
mainfrom
yolo
Jul 3, 2022
Merged

fregante merged 8 commits into
mainfrom
yolo

Conversation

@fregante

@fregante fregante commented Jul 2, 2022 •

Copy link
Copy Markdown
Member

@fregante fregante added the meta Related to Refined GitHub itself label Jul 2, 2022
@fregante fregante changed the title Meta: Move hotfixes to new repo Meta: Move hotfixes to new repo + allow dynamic updates of certain strings Jul 2, 2022
@fregante
fregante marked this pull request as ready for review July 2, 2022 07:35
Comment thread source/features/index.tsx
select('#js-repo-pjax-container, #js-pjax-container')?.append(<has-rgh/>);
select('#repo-content-pjax-container, turbo-frame')?.append(<has-rgh-inner/>); // #4567
select(_`#js-repo-pjax-container, #js-pjax-container`)?.append(<has-rgh/>);
select(_`#repo-content-pjax-container, turbo-frame`)?.append(<has-rgh-inner/>); // #4567

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 is likely to change soon, so it's the first target for dynamic replacement

Comment thread source/features/index.tsx Outdated
getLocalStrings(),
]);

console.log({value: _`Original`});

@fregante fregante Jul 2, 2022 •

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.

Comment thread source/helpers/hotfix.ts
return '';
}

export type HotfixStorage = Array<[FeatureID, string]>;

@fregante fregante Jul 2, 2022 •

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 think eventually we should have a single updater function and a single hotfixes object in the options, like:

{
  style: 'body {color: red}',
  broken: ['forked-to'],
  strings: {from: 'to'},
}

Comment thread source/helpers/hotfix.ts

const storage: HotfixStorage = [];
for (const [featureID, unaffectedVersion, relatedIssue] of parseCsv(atob(content))) {
for (const [featureID, relatedIssue, unaffectedVersion] of parseCsv(content)) {

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 comment was marked as spam.

@fregante fregante changed the title Meta: Move hotfixes to new repo + allow dynamic updates of certain strings Meta: Move hotfixes to new repo + allow string hotfixes Jul 3, 2022
@fregante
fregante merged commit 9352caf into main Jul 3, 2022
@fregante
fregante deleted the yolo branch July 3, 2022 12:02
jpe-io

This comment was marked as spam.

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.

3 participants