Giter VIP home page Giter VIP logo

Comments (5)

salsakran avatar salsakran commented on May 3, 2024

My main thought is it seems like a lot of brain damage to keep two distinct ways to insert icons around.
Why are icons both react and angular components?

from metabase.

kdoh avatar kdoh commented on May 3, 2024

Its really the unfortunate side effect of the fact that you can't easily use angular directives and react components inside of one another without some tomfoolery.

from metabase.

kdoh avatar kdoh commented on May 3, 2024

Basically the options for BrainDamage(TM) as far as I can tell are:

  • have two distinct places where the icons shapes are defined, and two different ways of using them (our current version)
  • have two different ways of using a single source of truth for icons
  • only be able to use certain icons in angular or react (problematic for checks or close)
  • burn everything and use blue hyperlinks

my main reason for raising this was that before I start adding more icons in for things like charting options, etc that we think through what we could do to prevent duplication of what the shapes are supposed to look like, and how we use them to the best of our ability.

from metabase.

agilliland avatar agilliland commented on May 3, 2024

yeah, this looks fine to me 👍

over time i'm sure we could eventually find a way to make the icons reusable between both angular and react (or we would just abandon one for the other), but until then this makes sense to me.

my only suggestion is that in the angular directive, don't use templateUrl, just use template and put the template directly in the directive. that's faster performance wise and its easier when you are coding because you don't need to switch files.

from metabase.

kdoh avatar kdoh commented on May 3, 2024

That makes sense to me and I agree r.e. template vs templateUrl. Ideally this is a situation we won't be in for a long time.

from metabase.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.