feat: add createdAt timestamps to check-in logs and improve i18n translations

- Added createdAt timestamps to various check-in log entries in checkinService.ts for better tracking.
- Updated i18n translations in Models.tsx to improve user experience with accurate Chinese translations.
- Reduced default page size in ProgramLogs.tsx and ProxyLogs.tsx from 80 and 100 to 50 for better performance.
- Enhanced ProxyLogs.tsx with memoization for filtered logs and summary statistics.
- Implemented support for parsing Unix timestamps and PostgreSQL-style timezone offsets in checkinLogTime.ts.
- Added comprehensive tests for database proxy query wrapper in index.proxy-wrap.test.ts to ensure functionality.
This commit is contained in:
cita
2026-03-05 21:18:49 +08:00
parent 0d5e56f478
commit fdf4f30987
19 changed files with 313 additions and 156 deletions
+1
View File
@@ -274,6 +274,7 @@ async function appendTokenSyncEvent(result: SyncExecutionResult) {
level,
relatedId: result.accountId,
relatedType: 'account',
createdAt: new Date().toISOString(),
}).run();
} catch {}
}
+2
View File
@@ -244,6 +244,7 @@ export async function sitesRoutes(app: FastifyInstance) {
level: 'warning',
relatedId: id,
relatedType: 'site',
createdAt: new Date().toISOString(),
}).run();
} catch {}
} else {
@@ -260,6 +261,7 @@ export async function sitesRoutes(app: FastifyInstance) {
level: 'info',
relatedId: id,
relatedType: 'site',
createdAt: new Date().toISOString(),
}).run();
} catch {}
}