From 13ae43fed839ed6d675b49b7463942e951464f34 Mon Sep 17 00:00:00 2001 From: qowlgur121 Date: Tue, 19 Aug 2025 14:11:08 +0900 Subject: [PATCH 1/4] fix: update browser tab title and favicon to OpenContext branding - Change page title from 'Vite + React + TS' to 'OpenContext' - Replace default Vite favicon with custom OpenContext logo - Add SVG logo file matching the sidebar branding design - Improve professional appearance for production deployment --- admin-ui/index.html | 4 ++-- admin-ui/public/logo.svg | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 admin-ui/public/logo.svg diff --git a/admin-ui/index.html b/admin-ui/index.html index e4b78ea..4aa585d 100644 --- a/admin-ui/index.html +++ b/admin-ui/index.html @@ -2,9 +2,9 @@ - + - Vite + React + TS + OpenContext
diff --git a/admin-ui/public/logo.svg b/admin-ui/public/logo.svg new file mode 100644 index 0000000..0e90381 --- /dev/null +++ b/admin-ui/public/logo.svg @@ -0,0 +1,4 @@ + + + OC + \ No newline at end of file From ae3c99c08ff7a785b554fbc5c116ca7e29236a06 Mon Sep 17 00:00:00 2001 From: qowlgur121 Date: Tue, 19 Aug 2025 14:11:45 +0900 Subject: [PATCH 2/4] fix: improve Content Viewer text overflow and metadata display - Fix text overflow issue with proper container constraints and word breaking - Remove File Type field that was not working correctly - Restructure metadata grid from 3 columns to 2 columns for better layout - Add proper text wrapping with break-all and overflow handling - Remove non-functional View Source button and clean up imports - Improve content scrolling within fixed height container --- admin-ui/src/pages/Search.tsx | 25 +++++++------------------ 1 file changed, 7 insertions(+), 18 deletions(-) diff --git a/admin-ui/src/pages/Search.tsx b/admin-ui/src/pages/Search.tsx index cf5187a..1d6dbb5 100644 --- a/admin-ui/src/pages/Search.tsx +++ b/admin-ui/src/pages/Search.tsx @@ -11,7 +11,6 @@ import { FileText, ChevronRight, Copy, - ExternalLink, Loader2 } from 'lucide-react' import type { SearchResultsResponse, GetContentResponse } from '../types/api' @@ -268,30 +267,26 @@ export const Search: React.FC = () => {
{/* Content Metadata */}
-
+
Chunk ID: -
- {contentData.chunkId} +
+ {selectedChunk}
-
- File Type: -
{contentData.fileType}
-
Tokens:
- {contentData.tokenInfo.tokenCount} / {maxTokens} + {contentData.tokenInfo.actualTokens} / {maxTokens}
{/* Content Text */} -
-
-
+                
+
+
                       {contentData.content}
                     
@@ -302,12 +297,6 @@ export const Search: React.FC = () => {
Content length: {contentData.content.length} characters
-
- -
)} From 94e88f15dd6a00037502c82d4e590d8d1eae0b9a Mon Sep 17 00:00:00 2001 From: qowlgur121 Date: Tue, 19 Aug 2025 14:12:20 +0900 Subject: [PATCH 3/4] improve: make Settings page more open-source friendly - Change 'Environment: development' to 'Deployment: Self-Hosted Instance' - Remove developer-specific terminology for better user experience - Align with open-source project identity and professional presentation - Make system information more accessible to end users --- admin-ui/src/pages/Settings.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin-ui/src/pages/Settings.tsx b/admin-ui/src/pages/Settings.tsx index d198ecb..00440f5 100644 --- a/admin-ui/src/pages/Settings.tsx +++ b/admin-ui/src/pages/Settings.tsx @@ -189,8 +189,8 @@ export const Settings: React.FC = () => { {import.meta.env.VITE_API_BASE_URL || 'http://localhost:8080/api/v1'}
- Environment: - {import.meta.env.MODE} + Deployment: + Self-Hosted Instance
Storage: From 03c6dee0f0892f4bfb18ea90412973690429aebf Mon Sep 17 00:00:00 2001 From: qowlgur121 Date: Tue, 19 Aug 2025 14:13:48 +0900 Subject: [PATCH 4/4] docs: update admin UI documentation - Reflect recent UI improvements and fixes - Update component descriptions and usage guidelines - Document branding changes and professional presentation --- admin-ui/README.md | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/admin-ui/README.md b/admin-ui/README.md index eca0ca9..2743947 100644 --- a/admin-ui/README.md +++ b/admin-ui/README.md @@ -74,11 +74,4 @@ The admin UI integrates with OpenContext backend APIs: - **Pages**: Main application views in `/src/pages/` - **API Client**: Centralized HTTP client in `/src/lib/api.ts` - **State Management**: Zustand store for authentication state -- **Types**: TypeScript definitions in `/src/types/` - -## Contributing - -1. Follow existing code style and patterns -2. Add TypeScript types for new features -3. Test API integrations with backend -4. Ensure responsive design works on all screen sizes \ No newline at end of file +- **Types**: TypeScript definitions in `/src/types/` \ No newline at end of file