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

style: replace broken glyphs with font-awesome #10123

Merged
merged 1 commit into from Jun 22, 2020

Conversation

mistercrunch
Copy link
Member

@mistercrunch mistercrunch commented Jun 21, 2020

Glyphicons stopped working recently, not sure why, but let's get rid of
them and double down on font-awesome that we use a lot more in the
codebase. There's only a few instances of glyphicons and they all are
broken ATM.

Also a few other minor style tweaks

before

Screen Shot 2020-06-20 at 11 03 51 PM

Screen Shot 2020-06-20 at 11 03 28 PM

after

Screen Shot 2020-06-20 at 10 58 58 PM

Screen Shot 2020-06-20 at 10 44 58 PM

Screen Shot 2020-06-20 at 10 42 56 PM

Screen Shot 2020-06-20 at 10 42 35 PM

Glyphicons stopped working recently, not sure why, but let's get rid of
them and double down on font-awesome that we use a lot more in the
codebase. There's only a few instances of glyphicons and they all are
broken ATM.

Also a few other minor style tweaks
Copy link
Member

@etr2460 etr2460 left a comment

Choose a reason for hiding this comment

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

one question, otherwise lgtm.

I think we'll need to go through the chart plugins and fix these too, since i know tables have been broken because of this.

cc @michellethomas who was tracking this bug

@@ -53,7 +53,7 @@ export default class AdhocMetricOption extends React.PureComponent {
// once the overlay has been opened, the metric/filter will never be
// considered new again.
this.props.adhocMetric.isNew = false;
this.setState({ overlayShown: false });
this.setState({ overlayShown: true });
Copy link
Member

Choose a reason for hiding this comment

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

Is this related to the glyph changes? is it intentional?

Copy link
Member Author

Choose a reason for hiding this comment

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

That was a minor bug I uncovered, as I change the icons to caret-(left|right)

@ktmud
Copy link
Member

ktmud commented Jun 22, 2020

There's a new table chart coming soon. Hopefully we don't have to have another fix once the drop-in replacement is merged.

P.S. I was using react-icons for the new table chart. With tree shaking properly configured, these svg icons packs should work very well.

@mistercrunch
Copy link
Member Author

mistercrunch commented Jun 22, 2020

@ktmud SIP-34 provided icons as SVG, they're starting to land. Consistency would be great eventually. Between glyphicons, SIP-34 svg, react-icons, font-awesome, ... Maybe we need a superset-ui-icons package that brings it back together and offer a common interface to all this that we can rationalize over time.

@etr2460 it'd be nice to be able to grep across all superset code. I git grep a lot and totally miss out on other repos. Also noticed that the documented i18n command currently doesn't inventorize the strings in superset-ui*, I spent a bit of time trying to fix this messing with babel.cfg (the python i18n babe-thing, not the JS one), with symlink, but nothing worked. Now I'm thinking git submodules OR a big mono-repo may work.

@mistercrunch mistercrunch merged commit cf0f1d5 into apache:master Jun 22, 2020
@mistercrunch mistercrunch deleted the fix_glyphicons branch June 22, 2020 04:38
@etr2460
Copy link
Member

etr2460 commented Jun 22, 2020

I agree @mistercrunch, not having i18n work for superset-ui is a real pain :/ That said, getting all the strings working/fixed in the main repo is enough of a task, not even considering the side repos. There are a lot of mistaken usages of t strings that i've been meaning to clean up

auxten pushed a commit to auxten/incubator-superset that referenced this pull request Nov 20, 2020
Glyphicons stopped working recently, not sure why, but let's get rid of
them and double down on font-awesome that we use a lot more in the
codebase. There's only a few instances of glyphicons and they all are
broken ATM.

Also a few other minor style tweaks
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.37.0 labels Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/M 🚢 0.37.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants