threadr.lostcave.ddnss.de/templates/pages
Joca e76049a353
Chat: Add draft auto-save to localStorage with restore and discard options
- Add draft management functions to app.js (saveDraft, loadDraft, clearDraft, getDraftTimestamp)
- Implement draft auto-save in chat that saves every 2 seconds after typing stops
- Show draft restoration banner on page load if draft exists and is less than 7 days old
- Display draft age with "X minutes/hours/days ago" format
- Add Restore and Discard buttons to draft indicator
- Clear draft automatically after successfully sending a message
- Add draft indicator styles matching beige/blue/pink theme with cyan restore button
- Support dark mode with appropriate color adjustments
- Draft indicator slides in from top with smooth animation

Draft key format: draft_chat_{boardId} for per-board draft storage.
2026-01-15 23:23:12 -03:00
..
about.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
board.html UI: Add navigation improvements with breadcrumbs, back buttons, scroll-to-top, and keyboard shortcuts 2026-01-15 22:49:54 -03:00
boards.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
chat.html Chat: Add draft auto-save to localStorage with restore and discard options 2026-01-15 23:23:12 -03:00
home.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
login.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
news.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
preferences.html Preferences: Add user preferences system with database table and settings page 2026-01-15 23:21:03 -03:00
profile.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
profile_edit.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
signup.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00
thread.html UI: Add navigation improvements with breadcrumbs, back buttons, scroll-to-top, and keyboard shortcuts 2026-01-15 22:49:54 -03:00
userhome.html UI: Add Phase 1 QOL improvements 2026-01-15 22:39:30 -03:00