feat(KB-618): add multi-project support to dashboard

- Add project API methods and types (fetchProjects, registerProject, fetchProjectHealth, etc.)
- Add ProjectCard component with health metrics, status badges, and pause/resume actions
- Add server-side project management routes for multi-project orchestration
- Add ActivityFeed component with grouped entries and project badges
- Add SetupWizard component with 5-step project creation flow
- Fix TypeScript errors in server routes for listProjects and getGlobalConcurrencyState
This commit is contained in:
gsxdsm
2026-03-31 23:19:03 -07:00
parent 38f7cec604
commit 7344a80e40
52 changed files with 498 additions and 1643 deletions

View File

@@ -122,8 +122,6 @@ export class CentralDatabase {
// Enable WAL mode for concurrent reader/writer access
this.db.exec("PRAGMA journal_mode = WAL");
// Ensure data reaches disk on commit (NORMAL is safe with WAL mode)
this.db.exec("PRAGMA synchronous = NORMAL");
// Enable foreign key enforcement
this.db.exec("PRAGMA foreign_keys = ON");
}
@@ -146,14 +144,8 @@ export class CentralDatabase {
/**
* Close the database connection.
* Checkpoints the WAL first to ensure all writes are flushed to the main db file.
*/
close(): void {
try {
this.db.exec("PRAGMA wal_checkpoint(TRUNCATE)");
} catch {
// Best-effort: checkpoint failure is non-fatal
}
this.db.close();
}