feat: add messaging system with admin bulk messages and user conversations

- Add conversations and direct_messages tables to schema
- User messaging page at /messages (users can start conversations, see admin responses)
- Admin messaging page at /admin/messages (view all conversations, reply to users)
- Admin bulk messaging: send to all customers, specific users, or admins
- Mail icon in navbar for logged-in users (links to appropriate messaging page)
- Show first name of admin who responded in conversation view
- Clean build cache after middleware changes
This commit is contained in:
2026-07-03 00:06:07 -05:00
parent dc0c5fd289
commit 1e66e918ac
24 changed files with 1862 additions and 171 deletions
+1 -1
View File
@@ -13,7 +13,7 @@
"@chenglou/pretext": "^0.0.8",
"bcryptjs": "^2.4.3",
"jose": "^5.6.3",
"next": "14.2.28",
"next": "^14.2.35",
"pg": "^8.12.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",