fix: resolve architecture disconnects and codebase weaknesses
- Standardize MessageRecord types — single source of truth from @bete/shared - Clean up config: remove unused GUILD_ID/TEXT_GUILD_ID/TEXT_CHANNEL_ID, fix WEBSERVER_PORT default (3001), remove default admin password - Move mascot_chat_messages table to Drizzle schema with proper migration - Remove runtime DDL (CREATE TABLE IF NOT EXISTS) from mascot-chat repository - Remove phantom analytics/ module from documentation - Add better-sqlite3 dependency to root devDependencies - Replace 'as any' casts with proper type assertions across AI moderation - Add error logging to silent catch blocks in LLM client - Apply Biome formatting and import organization Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
67d66bb5dd
commit
3614d32701
@@ -111,7 +111,6 @@ Express 5 + Helmet HTTP server with WebSocket (ws) on port 3001 (default).
|
||||
- `recordings/` — Voice recording listing
|
||||
- `ui-state/` — Persistent UI state for dashboard
|
||||
- `config/` — App config endpoint
|
||||
- `analytics/` — Analytics (schema defined)
|
||||
|
||||
**WebSocket events (outbound to frontend):**
|
||||
- `message_created`, `message_updated`, `message_deleted`, `message_analyzed`
|
||||
@@ -222,7 +221,6 @@ React 19 + Vite 8 + Tailwind CSS 4 + TypeScript dashboard.
|
||||
- Hooks: `useVoiceControl`, `useMediaControl`
|
||||
- `messages/` — Message list with filters
|
||||
- Hooks: `useMessages`
|
||||
- `analytics/` — Analytics (hook scaffolded)
|
||||
- `shared/`
|
||||
- `api/client.ts` — All HTTP API calls + types
|
||||
- `ws/socket.ts` — WebSocket singleton with `useDashboardSocket` hook
|
||||
|
||||
Reference in New Issue
Block a user