Skip to content

fix: resolve Content Viewer text overflow and update branding elements#23

Merged
qowlgur121 merged 4 commits into
developfrom
feature/admin-ui-implementation
Aug 19, 2025
Merged

fix: resolve Content Viewer text overflow and update branding elements#23
qowlgur121 merged 4 commits into
developfrom
feature/admin-ui-implementation

Conversation

@qowlgur121

Copy link
Copy Markdown
Member

Summary of Changes

This PR addresses several UI/UX improvements for the Admin UI, focusing on the Search interface and overall branding consistency.

Key Implementation Notes

  • Branding: Updated browser tab title and favicon from Vite defaults to OpenContext branding
  • Search UI: Fixed Content Viewer text overflow issues and improved metadata display layout
  • Settings: Made environment labeling more open-source friendly (Self-Hosted Instance)
  • UI Polish: Removed non-functional elements and improved professional presentation

Files Modified

  • admin-ui/index.html - Updated page title and favicon reference
  • admin-ui/public/logo.svg - Added custom OpenContext logo (new file)
  • admin-ui/src/pages/Search.tsx - Fixed text overflow, improved metadata grid, removed broken features
  • admin-ui/src/pages/Settings.tsx - Changed development-specific labels to user-friendly terms
  • admin-ui/README.md - Updated documentation to reflect changes

Testing Instructions

  1. Navigate to http://localhost:5173/search
  2. Perform a search and select a result
  3. Verify Content Viewer displays properly with no text overflow
  4. Check browser tab shows "OpenContext" title with custom favicon
  5. Visit Settings page and confirm "Self-Hosted Instance" display

Related Issues

Addresses user feedback regarding:

  • Text overflow in search results content viewer
  • Development-specific terminology in production interface
  • Missing branding consistency

- 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
- 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
- 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
- Reflect recent UI improvements and fixes
- Update component descriptions and usage guidelines
- Document branding changes and professional presentation

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves the Admin UI's branding and resolves text overflow issues in the Search interface. The changes focus on replacing default Vite branding with OpenContext branding and enhancing the Content Viewer's display functionality.

  • Updated browser tab title and favicon from Vite defaults to OpenContext branding
  • Fixed Content Viewer text overflow issues and improved metadata display layout
  • Made environment labeling more user-friendly by changing "Environment" to "Deployment" with "Self-Hosted Instance" label

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.

File Description
admin-ui/index.html Updated page title and favicon reference to OpenContext branding
admin-ui/src/pages/Search.tsx Fixed text overflow in Content Viewer and improved metadata grid layout
admin-ui/src/pages/Settings.tsx Changed development-specific labels to user-friendly terms
admin-ui/README.md Removed contributing section from documentation

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

<pre className="whitespace-pre-wrap text-sm text-gray-800 font-mono leading-relaxed">
<div className="bg-white border rounded-lg overflow-hidden">
<div className="p-4 max-h-96 overflow-y-auto">
<pre className="whitespace-pre-wrap text-sm text-gray-800 font-mono leading-relaxed overflow-hidden text-ellipsis" style={{ wordBreak: 'break-all', whiteSpace: 'pre-wrap' }}>

Copilot AI Aug 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The inline style duplicates the 'whitespace-pre-wrap' CSS class. The style object sets 'whiteSpace: 'pre-wrap'' which is redundant with the 'whitespace-pre-wrap' class. Consider removing the redundant style property.

Suggested change
<pre className="whitespace-pre-wrap text-sm text-gray-800 font-mono leading-relaxed overflow-hidden text-ellipsis" style={{ wordBreak: 'break-all', whiteSpace: 'pre-wrap' }}>
<pre className="whitespace-pre-wrap text-sm text-gray-800 font-mono leading-relaxed overflow-hidden text-ellipsis" style={{ wordBreak: 'break-all' }}>

Copilot uses AI. Check for mistakes.
<div className="text-gray-600 font-mono text-xs">
{contentData.chunkId}
<div className="text-gray-600 font-mono text-xs break-all">
{selectedChunk}

Copilot AI Aug 19, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The variable 'selectedChunk' is being used instead of 'contentData.chunkId'. This appears to be incorrect as the original code displayed 'contentData.chunkId' which is the actual chunk ID from the API response, while 'selectedChunk' likely contains a different value used for selection logic.

Suggested change
{selectedChunk}
{contentData.chunkId}

Copilot uses AI. Check for mistakes.
@qowlgur121
qowlgur121 merged commit 3b81de5 into develop Aug 19, 2025
@Yoo-SH Yoo-SH mentioned this pull request Aug 21, 2025
53 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants