-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rgh-feature-descriptions
feature
#3852
Add rgh-feature-descriptions
feature
#3852
Conversation
feature-descriptions
featurergh-feature-descriptions
feature
It neither needs to be documented nor should it be disableable. It's a meta feature
@@ -59,7 +59,7 @@ function getFeatures(): FeatureID[] { | |||
return Array.from( | |||
readFileSync(path.join(__dirname, 'source/refined-github.ts'), 'utf-8').matchAll(/^import '\.\/features\/([^.]+)';/gm), | |||
match => match[1] as FeatureID | |||
).sort(); | |||
).sort().filter(id => !id.startsWith('rgh-')); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fregante Does this mean that we want to prevent features prefixed with rgh-
from being togglable in the extension options? Or was that an unintended side effect of not requiring them to have descriptions in the README?
It seems like those are the only non-CSS features that can't be toggled from the extension options, which got me curious about them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct you cannot toggle them
I picked up @yakov116's work from #3693, and added a few bits. I hope this is enough to close #3630.
Test URLs:
https://github.com/sindresorhus/refined-github/blob/master/source/features/batch-mark-files-as-viewed.tsx
Screenshot
https://github.com/sindresorhus/refined-github/blob/20.12.27/source/features/align-issue-labels.css
Screenshot
https://github.com/sindresorhus/refined-github/blob/20.12.27/source/features/clean-dashboard.ts
Screenshot