-
Notifications
You must be signed in to change notification settings - Fork 400
fix: Complete themes are valid add-ons #2648
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
Conversation
className="Addon-theme-header" | ||
id="Addon-theme-header" | ||
data-browsertheme={getBrowserThemeData()} | ||
ref={(el) => { this.wrapper = el; }} |
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.
This was unused and caused a non-100% coverage error so I deleted it. I know it's unrelated but figured it was worth it.
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.
r+wc
src/core/constants.js
Outdated
export const ADDON_TYPE_LANG = 'language'; | ||
export const ADDON_TYPE_OPENSEARCH = 'search'; | ||
export const ADDON_TYPE_THEME = 'persona'; | ||
export const ADDON_TYPE_CLASSIC_THEME = 'theme'; |
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.
can we just call this ADDON_TYPE_COMPLETE_THEME
?
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.
Sure, no problem.
src/core/constants.js
Outdated
export const ADDON_TYPE_THEME = 'persona'; | ||
export const ADDON_TYPE_CLASSIC_THEME = 'theme'; | ||
export const validAddonTypes = [ | ||
ADDON_TYPE_CLASSIC_THEME, // Remove once we don't support complete themes. |
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.
One day we might start grepping TODO
so it would probably make sense to add that to the comment so we don't forget
117047e
to
af319f1
Compare
af319f1
to
7a41631
Compare
Fixes mozilla/addons#10507.