Add gemini-prompt.html - long context prompt UI for Gemini models#229
Add gemini-prompt.html - long context prompt UI for Gemini models#229
Conversation
- System prompt textarea (small) with localStorage history - Shows last 3 recent system prompts below textarea, truncated, clickable - Expandable "N more…" link to reveal full history (up to 50 stored) - Loads most recent system prompt on page load - Large content textarea with Ctrl/Cmd+Enter submit shortcut - Model selector with gemini-2.5-flash as default plus full model list - API key loaded from GEMINI_API_KEY in localStorage or prompted - Streaming response rendered as progressive markdown via marked.js - Copy to clipboard button works during and after generation - Token count and stream status shown below controls https://claude.ai/code/session_018mtnPjdfk2xNeu1nncobW9
|
Claude finished @simonw's task —— View job Pull Request ReviewI've completed a thorough review of the Review Tasks:
📋 Code Quality & Best PracticesStrengths:
Improvements:
🐛 Potential Bugs & IssuesMinor Issues Found:
⚡ Performance ConsiderationsGood practices:
Optimizations:
🔒 Security ConcernsCritical Issues:
Good security practices:
🧪 Test CoverageMissing Coverage:
Recommended tests:
📝 Recommendations
✅ Overall AssessmentThis is a well-crafted single-file application with good UX patterns and clean code. The main concern is the XSS vulnerability in markdown rendering, which should be addressed before merging. The localStorage history feature and streaming response handling are particularly well implemented. The code demonstrates solid JavaScript practices and provides a smooth user experience for interacting with Gemini models. |
Deploying tools with
|
| Latest commit: |
e8d37da
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://cac8b86a.tools-b1q.pages.dev |
| Branch Preview URL: | https://claude-gemini-prompt-ui-wsoq.tools-b1q.pages.dev |
|
Claude finished @simonw's task —— View job Pull Request ReviewI've completed my review of Review Tasks:
Code Quality and Best Practices ✅Strengths:
Minor improvements:
Potential Bugs and Issues
|

https://claude.ai/code/session_018mtnPjdfk2xNeu1nncobW9