Skip to content

fix: add icons for Tuya circuit breaker#553

Merged
Nerivec merged 4 commits into
Nerivec:mainfrom
andrei-lazarov:icons
May 13, 2026
Merged

fix: add icons for Tuya circuit breaker#553
Nerivec merged 4 commits into
Nerivec:mainfrom
andrei-lazarov:icons

Conversation

@andrei-lazarov
Copy link
Copy Markdown
Contributor

@andrei-lazarov andrei-lazarov commented May 13, 2026

Screenshot From 2026-05-13 20-56-09 Screenshot From 2026-05-13 20-55-29

Do you know if we can contribute icons to font awesome? Would be nice to differentiate the electrical measurements, like in HA. But we only have the two bolts

Comment thread src/components/features/index.tsx Outdated
Copy link
Copy Markdown
Owner

@Nerivec Nerivec May 13, 2026

Choose a reason for hiding this comment

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

Should remove all this. We don't want to be coloring/animating basic stuff, this is never-ending, and it was rejected by users early-on anyway.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Agreed. How should we improve lists display though?

Currently with JSON.stringify(value) they are displayed like:

["leakage_current","temperature","over_voltage"]
[]

In PR I did String(value) and $.clear

leakage_current,temperature,over_voltage
Clear

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Can't display anything when empty except something that clearly describes empty, it's too confusing ("is it a value or not?").
Also can't use anything but stringify, else it breaks nesting. We'd need something far more robust to handle nested+max depth, but the amount of work vs the amount of times this is used, I think stringify is fine for now. We can revisit when something has a clearer need, so we have a clearer picture of how it should be.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Makes sense, thanks!

@Nerivec Nerivec merged commit 93e2262 into Nerivec:main May 13, 2026
1 check passed
@Nerivec
Copy link
Copy Markdown
Owner

Nerivec commented May 13, 2026

Thanks!

btw: https://github.com/FortAwesome/Font-Awesome/blob/7.x/CONTRIBUTING.md

@andrei-lazarov andrei-lazarov deleted the icons branch May 13, 2026 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants