feat(ha): expand canonical badge-icon vocabulary (grill/smoker/landscape + 20 more) - #482
Merged
Merged
Conversation
…ape + 20 more) Adds 23 slugs to the closed HA on-video badge icon vocabulary, headlined by outdoor cooking (grill, smoker) and outdoor path/garden lighting (landscape_light) that operators asked for, plus a sensible batch of commonly-needed HA device icons: weather (cloud, rain, wind, storm, moon), media/compute (media_player, remote, game, mic, music, printer, server, computer, storage, phone), appliances/outdoor (coffee, plant), and home/scheduling (home, calendar, timer). Every slug is added in lockstep across all five surfaces so it renders a real native glyph everywhere instead of degrading to the generic sensor dot: the server-side source of truth CANONICAL_ICON_SLUGS (services/api/src/ha.rs), the admin picker mirror (admin.html HA_ICON_SLUGS), and the three client maps — Android Material (HaVisual.kt), desktop Flutter (ha_icons.dart), iOS SF Symbols (HomeAssistant.swift). Glyphs were verified to exist on each platform's icon set at its floor (Flutter classic Material Icons, Compose material-icons-extended, SF Symbols on the iOS 16 floor); where iOS 16 has no dedicated glyph, outdoor cooking leans on flame/smoke, consistent with the existing window-covering fallback pattern. Additive: new icons render only after clients are rebuilt/shipped, a natural fit for the next client release. Signed-off-by: badbread <badbread@users.noreply.github.com>
… runs Signed-off-by: badbread <badbread@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Expands the closed Home Assistant on-video badge icon vocabulary by 23 slugs, headlined by the outdoor-cooking icons an operator asked for —
grillandsmoker— plus outdoor path/garden lighting (landscape_light), and a sensible batch of commonly-needed HA device icons:cloud,rain,wind,storm,moonmedia_player,remote,game,mic,music,printer,server,computer,storage,phonecoffee,planthome,calendar,timerVocabulary grows 67 → 90 slugs.
Cross-surface sync (the #438 contract)
Every slug is added in lockstep across all five surfaces so it renders a real native glyph everywhere instead of degrading to the generic sensor dot:
services/api/src/ha.rs(CANONICAL_ICON_SLUGS)services/api/src/admin.html(HA_ICON_SLUGS)apps/android/.../feature/live/HaVisual.kt(badgeIconSlugs)apps/desktop-flutter/lib/ui/ha_overlay/ha_icons.dart(kHaBadgeIconChoices)apps/ios/Crumb/Features/HomeAssistant/HomeAssistant.swift(HA.iconSlugToSymbol)All five sets verified identical at 90 slugs. Every glyph was checked to exist on its platform's icon set at that platform's floor (Flutter classic Material Icons, Compose
material-icons-extended, SF Symbols on the iOS 16 / macOS 13 floor). Where the iOS 16 floor has no dedicated glyph (outdoor cooking, kitchen appliances) the mapping leans on flame/smoke, consistent with the existing window-covering fallback pattern.Notes
Additive: new icons render only after clients are rebuilt/shipped — a natural fit for the next client release. No migration, no API shape change.