- Added `RestoreMessageHandler` and route at `/account/messages/restore`
- Updated `users_messages` table to support `archived_at` reset
- Added restore button to archived messages template
- Ensures archived messages can be moved back into inbox
- Added `RestoreMessageHandler` and route at `/account/messages/restore`
- Updated `users_messages` table to support `archived_at` reset
- Added restore button to archived messages template
- Ensures archived messages can be moved back into inbox
- Implemented message inbox and archived messages view
- Added pagination logic to both inbox and archive handlers
- Integrated message sending functionality with CSRF protection
- Updated schema to include `archived_at` timestamp
- Included archive button and logic with feedback flash messaging
- Fixed message dropdown routing and rendering in topbar
- Cleaned up template load paths and error handling
Added users_messages schema with correct field naming (senderId, recipientId)
Implemented message count and recent message fetch via storage.GetMessageCount and GetRecentMessages
Fixed field mismatches in SQL queries (recipientId vs recipient_id)
Displayed unread message badge in topbar with truncation for body preview
Linked messages in dropdown to full view (/account/messages/read?id=...)
Added fallback handling for unauthorized/invalid message access
Cleaned up BuildTemplateData to support full message context
Ensured CSRF/session/user context remains intact throughout
Implemented message retrieval and read logic in storage layer
Added handlers for inbox and individual message view
Integrated messages into topbar dropdown with unread badge
Added truncate helper to template functions
Created new templates: messages/index.html and messages/read.html
Fixed missing template function error in topbar rendering
- Added dedicated route and view for reading individual notifications (/account/notifications/read)
- Ensured notification is only marked as read if it hasn't already been
- Updated Notification model to use Subject and Body fields
- Fixed field references in templates (Title → Subject, Message → Body)
- Updated topbar dropdown to use correct field names and display logic
- Gracefully handle "notification not found" cases in template output
- Ensured consistent template parsing with layout and topbar inclusion
- Improved error logging for better diagnosis
- Created /account/notifications/read endpoint secured by session middleware
- Ensured users can only mark their own notifications as read
- Updated dropdown links to point to /account/notifications/read?id={id}
- Improved notification security by matching user_id in DB update
- Added redirect flow to full notifications page after marking read
- Logged DB errors to assist debugging