Skip to content
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

Stats: use svg country flags instead of gravatar hosted flags. #11412

Merged
merged 2 commits into from
Feb 17, 2017

Conversation

timmyc
Copy link
Contributor

@timmyc timmyc commented Feb 15, 2017

Currently, the flag images for the Stats Countries module are hosted on Gravatar. There was a bug in Gravatar which caused some of these flag images to be cached incorrectly, resulting in broken images showing in Calypso ( pMz3w-6xv-p2 ). In lieu of tracking down a fix there, I have opted to create this branch which utilizes svg country flags that are already present in Calypso.

These flag svgs are already being used in the <PhoneInput /> component, and since they are available, it makes sense to utilize them here as well. For reference, the svg images are copied via webpack from the following project: https://github.com/lipis/flag-icon-css. In my testing, the flag set is a bit more current than the gravatar images, and has a flag for the EU - which we do not have on Gravatar.

Before ( Note broken gravatar images and misssing EU )
the_wordpress_com_blog_ _wordpress_com

After
the_wordpress_com_blog_ _wordpress_com

@timmyc timmyc added [Feature] Stats Everything related to our analytics product at /stats/ [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Feb 15, 2017
@timmyc timmyc requested a review from youknowriad February 15, 2017 21:30
@matticbot
Copy link
Contributor

Copy link
Contributor

@youknowriad youknowriad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great for me 👍 Funny that sometimes we have a European Flag in place of the real country's flag

@youknowriad youknowriad added [Status] Ready to Merge and removed [Status] Needs Review The PR is ready for review. This also triggers e2e canary tests and wp-desktop tests automatically. labels Feb 16, 2017
@timmyc timmyc force-pushed the udpate/stats/country-flags branch from 2112e84 to 04da1a1 Compare February 17, 2017 01:00
@timmyc timmyc merged commit 732370d into master Feb 17, 2017
@timmyc timmyc deleted the udpate/stats/country-flags branch February 17, 2017 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Stats Everything related to our analytics product at /stats/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants