-
Notifications
You must be signed in to change notification settings - Fork 12
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
Improve WatchAnalytics Styling #84
Conversation
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.
All looks good except for some reason the first few pages in PendingReviews have now color. See DKMS.
This is ready to be merged once you've completed a final review |
I tried to go plaid by adding the following to settings: $egWatchAnalyticsWatchQualityColors = [
"21" => "plaid",
"5" => "excellent",
"1.5" => "okay"
]; Without that change one page's scores look like: With that change above they look the same. If I make this change: $egWatchAnalyticsWatchQualityColors = [
21 => "plaid",
5 => "excellent",
1.5 => "okay"
]; then I get: Changing Show me plaid! |
I made this change to "WatchAnalyticsWatchQualityColors": {
"50" : "plaid",
"5" : "excellent",
- "1.5" : "okay"
+ "1.5" : "okay",
+ "_merge_strategy": "array_plus"
},
"WatchAnalyticsReviewStatusColors": {
"5" : "excellent", Ref: https://www.mediawiki.org/wiki/Manual:Extension.json/Schema#Merge_strategies Basically with extension registration (i.e. |
Thanks for the catch. I added the "array_plus" handling. As far as having numbered keys vs strings I think the current layout makes the most sense. Having the strings as keys seems weird to me. |
Have you tested different configurations in |
Yes, that's how i tested the change |
Issues