Add complete prompt collection database with Flask backend and modern UI#3
Draft
Add complete prompt collection database with Flask backend and modern UI#3
Conversation
Co-authored-by: gravity-wh <114725356+gravity-wh@users.noreply.github.com>
Co-authored-by: gravity-wh <114725356+gravity-wh@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add web UI for prompt idea collection database
Add complete prompt collection database with Flask backend and modern UI
Oct 23, 2025
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.
Overview
This PR implements a full-stack web application for collecting and managing AI prompt ideas, as requested in the project requirements. The system provides a complete database backend with CRUD operations and two distinct browsing modes with a modern, tech-focused design.
Screenshots
Main Grid View with Category Filters

Interactive Card Hover Effects

Implementation Details
Backend (Flask + SQLite)
Created a RESTful API server (
app.py) with the following endpoints:/api/prompts- Retrieve all prompts or filter by category (?category=科技)/api/prompts- Add new prompt ideas/api/prompts/<id>- Update existing prompts/api/prompts/<id>- Remove prompts from the databaseThe database schema includes all requested fields:
Frontend
1. List Mode (
index.html)2. Streaming Mode (
streaming.html)Design System
Implemented a high-end, minimalist design with:
Sample Data
Included 6 diverse example prompts covering:
How to Use
Project Structure
Key Features
✅ Complete CRUD operations for prompt management
✅ Category-based filtering and organization
✅ Two distinct browsing experiences (grid + streaming)
✅ Modal dialogs for add/edit/delete operations
✅ Responsive design with modern animations
✅ SQLite database auto-initialization with sample data
✅ CORS-enabled API for future expansion
✅ Clean separation of concerns (backend/frontend)
All requirements from the problem statement have been successfully implemented with a focus on clean code, user experience, and maintainability.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.