Commit Graph

6 Commits (cd8eeaaf950341c00d2cb72784e82e3a84cef9d9)

Author SHA1 Message Date
Zoe Steinkamp e92648426d feat(ui): add the optional suffix and prefix to guage (#15909) 2020-01-16 08:40:40 -07:00
Timmy Luong 578f97d0b7
fix(ui): Prevent negative zero and allow zero with decimal places (#16439)
* fix(ui): Prevent negative zero and allow zero with decimal places

* chore: update CHANGELOG

* fix(ui): Turn off lint rule no-compare-neg-zero

* test: add more tests by overriding prettier

* fix(ui): turn off lint rule for a specific usage, not universally
2020-01-07 16:24:23 -08:00
Zoe Steinkamp 5df1c0c2ee improvment(UI): Single Stat allow string
Fixing cannot mispellings
2019-11-15 14:22:21 -07:00
Zoe Steinkamp 2d98e4994a improvment(UI): Single Stat allow string
the full fix
2019-11-15 14:22:21 -07:00
Andrew Watkins 5a014dcb09
chore(ui): organize ts types (#12900) 2019-03-26 11:35:39 -07:00
Christopher Henn 39ed56c25b Fix single stat and gauge value formatting
- Extract value formatting in the the `SingleStat` and `Gauge`
  components to a shared utility function
- Rewrite `SingleStat` for readability
- Implement the "auto" mode for a `DecimalPlaces` setting. For now, this
  will format integers with no digits after the decimal place, and will
  format rationals with 2 digits after the decimal place.

Closes #11370
2019-01-22 11:49:42 -08:00