Files
new-api/web/src/components
Apple\Apple 5107f1b84a feat: Add custom request body editor with persistent message storage
- Add CustomRequestEditor component with JSON validation and real-time formatting
- Implement bidirectional sync between chat messages and custom request body
- Add persistent local storage for chat messages (separate from config)
- Remove redundant System Prompt field in custom mode
- Refactor configuration storage to separate messages and settings

New Features:
• Custom request body mode with JSON editor and syntax highlighting
• Real-time bidirectional synchronization between chat UI and custom request body
• Persistent message storage that survives page refresh
• Enhanced configuration export/import including message data
• Improved parameter organization with collapsible sections

Technical Changes:
• Add loadMessages/saveMessages functions in configStorage
• Update usePlaygroundState hook to handle message persistence
• Refactor SettingsPanel to remove System Prompt in custom mode
• Add STORAGE_KEYS constants for better storage key management
• Implement debounced auto-save for both config and messages
• Add hash-based change detection to prevent unnecessary updates

UI/UX Improvements:
• Disabled state styling for parameters in custom mode
• Warning banners and visual feedback for mode switching
• Mobile-responsive design for custom request editor
• Consistent styling with existing design system
2025-06-01 17:07:36 +08:00
..
2025-04-04 17:37:27 +08:00
2025-04-04 17:37:27 +08:00
2025-05-26 22:25:38 +08:00
2025-05-20 23:47:29 +08:00
2025-05-20 10:38:31 +08:00
2025-04-04 17:37:27 +08:00
2024-03-23 21:24:39 +08:00
2025-05-05 23:56:15 +08:00
2025-06-01 13:13:32 +08:00
2025-04-04 17:37:27 +08:00
2025-05-20 04:43:11 +08:00