From 7ef66745f12d35cd00f3d604c0699234f4f45575 Mon Sep 17 00:00:00 2001 From: Mondo Diaz Date: Fri, 30 Jan 2026 11:03:44 -0600 Subject: [PATCH] Add "(coming soon)" label for unsupported upstream source types Only pypi and generic are currently supported. Other types now show "(coming soon)" in both the dropdown and the sources table. --- frontend/src/pages/AdminCachePage.css | 6 ++++++ frontend/src/pages/AdminCachePage.tsx | 10 ++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/AdminCachePage.css b/frontend/src/pages/AdminCachePage.css index 077b305..df1ff0b 100644 --- a/frontend/src/pages/AdminCachePage.css +++ b/frontend/src/pages/AdminCachePage.css @@ -132,6 +132,12 @@ color: #c62828; } +.coming-soon-badge { + color: #9e9e9e; + font-style: italic; + font-size: 0.85em; +} + /* Actions */ .actions-cell { white-space: nowrap; diff --git a/frontend/src/pages/AdminCachePage.tsx b/frontend/src/pages/AdminCachePage.tsx index 9180f0f..b87c789 100644 --- a/frontend/src/pages/AdminCachePage.tsx +++ b/frontend/src/pages/AdminCachePage.tsx @@ -12,6 +12,7 @@ import { UpstreamSource, SourceType, AuthType } from '../types'; import './AdminCachePage.css'; const SOURCE_TYPES: SourceType[] = ['npm', 'pypi', 'maven', 'docker', 'helm', 'nuget', 'deb', 'rpm', 'generic']; +const SUPPORTED_SOURCE_TYPES: Set = new Set(['pypi', 'generic']); const AUTH_TYPES: AuthType[] = ['none', 'basic', 'bearer', 'api_key']; function AdminCachePage() { @@ -285,7 +286,12 @@ function AdminCachePage() { ENV )} - {source.source_type} + + {source.source_type} + {!SUPPORTED_SOURCE_TYPES.has(source.source_type) && ( + (coming soon) + )} + {source.url} {source.priority} @@ -359,7 +365,7 @@ function AdminCachePage() { > {SOURCE_TYPES.map((type) => ( ))}