Commit Graph

3 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 791ae45a0b fix: add rate limiting to preview API routes (CodeQL alert)
- Add per-IP rate limiting (60 req/min) to preview routes
- Periodic cleanup of expired rate limit entries

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:52:13 +00:00
copilot-swe-agent[bot] b4a835b8a7 fix: address code review feedback - validation, sanitization, docs
- Fix email validation JSDoc comment in chat.js
- Add explicit format validation for devId/project in preview routes
- Sanitize contact field input in build route
- Add detailed token estimation comment in memory-injector
- Add warning log when ws module is not available

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:50:12 +00:00
copilot-swe-agent[bot] 6f02d67ecd feat: implement split-screen layout, enhanced email modal, preview panel, and WebSocket
- chat.html: Enhanced modal with email+contact fields, split-screen HTML structure,
  resizer divider, preview panel with status bar and iframe
- chat.js: Email validation (frontend regex), email prefill on repeat visits,
  split-screen enterDevMode(), draggable resizer with touch support,
  preview panel status updates, WebSocket connection for build progress
- style.css: Split-screen dev-mode layout, resizer styles, preview panel styles
  with status indicators (waiting/building/done/error), modal field styles
- backend: Preview API route, WebSocket server for progress push,
  enhanced build route with email validation and broadcast,
  enhanced email template with file list and brand signature

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-11 11:47:50 +00:00