diff --git a/frontend/package.json b/frontend/package.json index 20eab20..ab8bdd8 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "chrysopedia-web", "private": true, - "version": "0.1.0", + "version": "0.8.0", "type": "module", "scripts": { "dev": "vite", diff --git a/frontend/src/App.css b/frontend/src/App.css index 3c9e3fb..2ff3c25 100644 --- a/frontend/src/App.css +++ b/frontend/src/App.css @@ -1116,16 +1116,6 @@ a.app-footer__repo:hover { max-width: 64rem; } -.search-fallback-banner { - padding: 0.5rem 0.75rem; - background: var(--color-banner-amber-bg); - border: 1px solid var(--color-banner-amber-border); - border-radius: 0.375rem; - font-size: 0.8125rem; - color: var(--color-banner-amber-text); - margin-bottom: 1rem; -} - .search-group { margin-bottom: 1.5rem; } diff --git a/frontend/src/components/AppFooter.tsx b/frontend/src/components/AppFooter.tsx index 98752be..e2899fa 100644 --- a/frontend/src/components/AppFooter.tsx +++ b/frontend/src/components/AppFooter.tsx @@ -15,7 +15,7 @@ export default function AppFooter() { Built {__BUILD_DATE__.slice(0, 10)} - {commitUrl ? ( + {commitUrl && ( <> · - ) : ( - <> - · - {__GIT_COMMIT__} - )} · ([]); - const [fallbackUsed, setFallbackUsed] = useState(false); const [loading, setLoading] = useState(false); const [error, setError] = useState(null); const [localQuery, setLocalQuery] = useState(q); @@ -25,7 +24,6 @@ export default function SearchResults() { const doSearch = useCallback(async (query: string) => { if (!query.trim()) { setResults([]); - setFallbackUsed(false); return; } @@ -34,7 +32,6 @@ export default function SearchResults() { try { const res = await searchApi(query.trim()); setResults(res.items); - setFallbackUsed(res.fallback_used); } catch (err) { setError(err instanceof Error ? err.message : "Search failed"); setResults([]); @@ -97,13 +94,6 @@ export default function SearchResults() { {loading &&
Searching…
} {error &&
Error: {error}
} - {/* Fallback banner */} - {!loading && fallbackUsed && results.length > 0 && ( -
- Showing keyword results — semantic search unavailable -
- )} - {/* No results */} {!loading && !error && q && results.length === 0 && (