refactor: move Weather and Home Assistant sources to Integrations tree group
Separates external service connections from utility entities in the Streams tree navigation for clearer organization.
This commit is contained in:
@@ -621,13 +621,18 @@ function renderPictureSourcesList(streams: any) {
|
|||||||
{ key: 'audio_templates', titleKey: 'tree.leaf.templates', icon: ICON_AUDIO_TEMPLATE, count: _cachedAudioTemplates.length },
|
{ key: 'audio_templates', titleKey: 'tree.leaf.templates', icon: ICON_AUDIO_TEMPLATE, count: _cachedAudioTemplates.length },
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: 'integrations_group', icon: `<svg class="icon" viewBox="0 0 24 24">${P.wifi}</svg>`, titleKey: 'tree.group.integrations',
|
||||||
|
children: [
|
||||||
|
{ key: 'weather', titleKey: 'streams.group.weather', icon: `<svg class="icon" viewBox="0 0 24 24">${P.cloudSun}</svg>`, count: _cachedWeatherSources.length },
|
||||||
|
{ key: 'home_assistant', titleKey: 'streams.group.home_assistant', icon: `<svg class="icon" viewBox="0 0 24 24">${P.home}</svg>`, count: _cachedHASources.length },
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'utility_group', icon: ICON_WRENCH, titleKey: 'tree.group.utility',
|
key: 'utility_group', icon: ICON_WRENCH, titleKey: 'tree.group.utility',
|
||||||
children: [
|
children: [
|
||||||
{ key: 'value', titleKey: 'streams.group.value', icon: ICON_VALUE_SOURCE, count: _cachedValueSources.length },
|
{ key: 'value', titleKey: 'streams.group.value', icon: ICON_VALUE_SOURCE, count: _cachedValueSources.length },
|
||||||
{ key: 'sync', titleKey: 'streams.group.sync', icon: ICON_CLOCK, count: _cachedSyncClocks.length },
|
{ key: 'sync', titleKey: 'streams.group.sync', icon: ICON_CLOCK, count: _cachedSyncClocks.length },
|
||||||
{ key: 'weather', titleKey: 'streams.group.weather', icon: `<svg class="icon" viewBox="0 0 24 24">${P.cloudSun}</svg>`, count: _cachedWeatherSources.length },
|
|
||||||
{ key: 'home_assistant', titleKey: 'streams.group.home_assistant', icon: `<svg class="icon" viewBox="0 0 24 24">${P.home}</svg>`, count: _cachedHASources.length },
|
|
||||||
{ key: 'assets', titleKey: 'streams.group.assets', icon: ICON_ASSET, count: _cachedAssets.length },
|
{ key: 'assets', titleKey: 'streams.group.assets', icon: ICON_ASSET, count: _cachedAssets.length },
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1433,6 +1433,7 @@
|
|||||||
"tree.group.processing": "Processed",
|
"tree.group.processing": "Processed",
|
||||||
"tree.group.strip": "Color Strip",
|
"tree.group.strip": "Color Strip",
|
||||||
"tree.group.audio": "Audio",
|
"tree.group.audio": "Audio",
|
||||||
|
"tree.group.integrations": "Integrations",
|
||||||
"tree.group.utility": "Utility",
|
"tree.group.utility": "Utility",
|
||||||
"tree.leaf.sources": "Sources",
|
"tree.leaf.sources": "Sources",
|
||||||
"tree.leaf.engine_templates": "Engine Templates",
|
"tree.leaf.engine_templates": "Engine Templates",
|
||||||
|
|||||||
Reference in New Issue
Block a user