From 42192e82bee5faa12d11e230c2cb6a63e1df9b76 Mon Sep 17 00:00:00 2001 From: Bryan Van Deusen Date: Fri, 17 Apr 2026 23:50:09 -0400 Subject: [PATCH] fix(dashboard): add missing getPlatformColor helper for platform health bars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The platform-health row icon binds to getPlatformColor(row.platform) but the helper was only present in Sources.vue/Subscriptions.vue/Credentials.vue/ Settings.vue — not copied into Dashboard.vue when the template was introduced, so the icons next to each platform row rendered in Vuetify's default color. Also collapse the double blank line left where sourcesWithErrors was removed. Co-Authored-By: Claude Opus 4.7 --- frontend/src/views/Dashboard.vue | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue index 3e8145d..ae94e90 100644 --- a/frontend/src/views/Dashboard.vue +++ b/frontend/src/views/Dashboard.vue @@ -383,7 +383,6 @@ const failingSources = computed(() => { const totalFailingCount = computed(() => failingSources.value.length) - const failedCount = computed(() => stats.value?.active_failed || 0) const activeDownloadsCount = computed(() => (stats.value?.queued || 0) + (stats.value?.running || 0) @@ -573,6 +572,18 @@ function getPlatformIcon(platform) { return icons[platform] || 'mdi-web' } +function getPlatformColor(platform) { + const colors = { + patreon: 'red', + subscribestar: 'amber', + hentaifoundry: 'purple', + discord: 'indigo', + pixiv: 'blue', + deviantart: 'green', + } + return colors[platform] || 'grey' +} + function getStatusColor(status) { const colors = { completed: 'success',