Migrate UI to React with comprehensive features#26
Open
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Open
Migrate UI to React with comprehensive features#26devin-ai-integration[bot] wants to merge 2 commits intomainfrom
devin-ai-integration[bot] wants to merge 2 commits intomainfrom
Conversation
- Created React app with TypeScript, Tailwind CSS, and shadcn/ui - Implemented all existing UI features: - Model status display with real-time updates - Single and multi-model query support - Model version selection for each provider - Response display with multiple view modes (Grid, Side-by-Side, Stacked) - Copy to clipboard functionality - Download responses in TXT, PDF, and DOCX formats - Theme toggle (light/dark mode) - Responsive design with mobile support - Added missing features: - History page with query history, search, and filtering - Settings page with API configuration options - About page with system information and supported models - React Router for navigation between pages - Context providers for theme and history management - Local storage for history persistence - Updated Go server to serve React build from frontend/dist - All lint checks passing (only warnings from pre-installed shadcn/ui components) - Updated model versions to include latest models (Gemini 2.0 Flash, Claude 3.5 Sonnet, GPT-4o) Co-Authored-By: samorin7@gmail.com <samorin7@gmail.com>
Contributor
Author
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
- Add 'unknown' type assertion for window type casting - Update jsPDF text method signature to accept string or string[] - Fixes build errors that prevented successful compilation Co-Authored-By: samorin7@gmail.com <samorin7@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate UI to React with comprehensive features
Summary
This PR completely migrates the LLM Proxy UI from vanilla HTML/JavaScript to a modern React + TypeScript stack. The new implementation preserves all existing functionality while adding previously missing features (History, Settings, and About pages that were linked in the sidebar but not implemented).
Tech Stack:
Key Changes:
frontend/directory) with component-based architecturefrontend/distwith SPA routing supportScreenshots:
Dashboard with multi-model query:

History page:

About page:

Review & Testing Checklist for Human
CRITICAL ITEMS (verify these carefully):
gemini-2.0-flash,claude-3-5-sonnet-20241022,gpt-4o) should match current API versions - these may need updatesjspdfanddocx) which could fail or have security implicationsfrontend/dist/index.html) and API URL configuration (VITE_API_URL) need verification in actual deploymentMEDIUM PRIORITY:
Recommended Test Plan:
cd frontend && npm install && npm run buildgo run cmd/server/main.goNotes
Known Issues/Limitations:
ui/directory is still present but no longer served. Should it be removed in a follow-up?unknowncasts which reduces type safetyconstants.tsmay need periodic updates as providers release new versionsSession Info: