syntaxbullet
5863418ae9
refactor: replace dynamic imports with event bus pattern
...
Replace 12 dynamic `await import()` calls with domain events emitted
through the existing systemEvents bus, breaking circular dependencies
between services (economy/inventory/leveling -> quest, * -> dashboard).
- Add `emitAsync` to SystemEventEmitter for sequential listener awaiting,
preserving DB transaction atomicity for quest progress tracking
- Add DOMAIN event constants (BALANCE_CHANGED, XP_GAINED, ITEM_COLLECTED,
ITEM_USED, TRANSFER_COMPLETED, DAILY_CLAIMED, TRIVIA_*, EXAM_PASSED)
- Create shared/lib/eventWiring.ts to register all domain event listeners
- Convert quest event calls to `await systemEvents.emitAsync()` (5 calls)
- Convert dashboard event calls to `systemEvents.emit()` fire-and-forget (5 calls)
- Convert exam.service.ts userService import to static import (1 call)
- Convert dashboard.service.ts events import to static import (1 call)
- Leave inventory.service.ts validateAndExecuteEffect import unchanged (Task 3)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com >
2026-03-18 12:59:15 +01:00
syntaxbullet
9a2fc101da
chore: Enhance database debugging setup and expand test mocks for Drizzle queries and Discord API interactions.
Deploy to Production / test (push) Failing after 29s
Deploy to Production / build (push) Has been skipped
Deploy to Production / deploy (push) Has been skipped
2026-01-30 16:12:15 +01:00
syntaxbullet
2a72beb0ef
feat: Implement new settings pages and refactor application layout and navigation with new components and hooks.
2026-01-16 12:49:17 +01:00
syntaxbullet
d870ef69d5
feat: (ui) leaderboards
2026-01-09 16:45:36 +01:00
syntaxbullet
682e9d208e
feat: more stat components
2026-01-09 16:18:52 +01:00
syntaxbullet
4a691ac71d
feat: (ui) first dynamic data
2026-01-09 15:22:13 +01:00
syntaxbullet
d46434de18
feat(dashboard): expand stats & remove admin token auth
2026-01-08 22:14:13 +01:00
syntaxbullet
6763e3c543
fix: address code review findings for analytics and security
2026-01-08 21:39:01 +01:00
syntaxbullet
11e07a0068
feat: implement visual analytics and activity charts
2026-01-08 21:36:19 +01:00
syntaxbullet
5d2d4bb0c6
refactor: improve type safety and remove forced casts in dashboard service
2026-01-08 21:31:40 +01:00
syntaxbullet
19206b5cc7
fix: address security review findings, implement real cache clearing, and fix lifecycle promises
2026-01-08 21:29:09 +01:00
syntaxbullet
0f6cce9b6e
feat: implement administrative control panel with real-time bot actions
2026-01-08 21:19:16 +01:00
syntaxbullet
3f3a6c88e8
fix(dash): resolve test regressions, await promises, and improve TypeScript strictness
2026-01-08 21:12:41 +01:00
syntaxbullet
8253de9f73
fix(dash): address safety constraints, validation, and test quality issues
2026-01-08 21:08:47 +01:00
syntaxbullet
1251df286e
feat: implement real-time dashboard updates via WebSockets
2026-01-08 21:01:33 +01:00
syntaxbullet
fff90804c0
feat(dash): Revamp dashboard UI with glassmorphism and real bot data
2026-01-08 20:58:57 +01:00
syntaxbullet
17cb70ec00
feat: integrate real data into dashboard
...
- Created dashboard service with DB queries for users, economy, events
- Added client stats provider with 30s caching for Discord metrics
- Implemented /api/stats endpoint aggregating all dashboard data
- Created useDashboardStats React hook with auto-refresh
- Updated Dashboard.tsx to display real data with loading/error states
- Added comprehensive test coverage (11 tests passing)
- Replaced all mock values with live Discord and database metrics
2026-01-08 18:50:44 +01:00