gitdataai/admin/src/lib
ZhenYi fb27918285 feat(admin): remove daily report, add platform metrics endpoint
Remove daily report system (page, API routes, cron scheduler) as it is
no longer needed. Add /api/metrics endpoint exposing total and time-
windowed counts (27h, 7d, 30d) for users, workspaces, projects, repos,
rooms, and skills.

Also clean up dead code:
- Remove OpenRouter sync and alerts check routes
- Remove syncModels/checkAlerts from adminrpc client
- Remove unused adminRpcAvailable state from platform sessions page
- Fix handleEdit displayName comparison bug in platform users page
- Simplify pricing sync to create 0-price defaults
2026-04-26 14:44:21 +08:00
..
adminrpc feat(admin): remove daily report, add platform metrics endpoint 2026-04-26 14:44:21 +08:00
db feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
admin-rpc.ts chore(admin): remove all metrics/observability features 2026-04-23 15:42:00 +08:00
api-token.ts feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
auth.ts fix(admin): touchSession persist state, platform session prefix to user:, middleware pass permissions header 2026-04-22 20:54:24 +08:00
db.ts feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
env.ts fix(admin): correct adminrpc k8s DNS name 2026-04-23 00:59:58 +08:00
log.ts feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
logger.ts feat(admin): add structured error logger for all API routes 2026-04-23 09:55:35 +08:00
rbac-middleware.ts feat(admin): add admin panel with billing alerts and model sync 2026-04-19 20:48:59 +08:00
rbac.ts fix(admin): workspace_billing_history user column + rbac listUsers pagination params order 2026-04-22 20:53:22 +08:00
redis.ts fix(admin): touchSession persist state, platform session prefix to user:, middleware pass permissions header 2026-04-22 20:54:24 +08:00