mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-02 08:33:36 +00:00
Keyboard accessibility: - Add role="button", tabIndex, onKeyDown, and aria-label to clickable divs in project-status-card, recent-activity-feed, and running-agents-panel Bug fixes: - Fix handleActivityClick to use projectPath instead of projectId for initializeProject and check result before navigating - Fix error handling in use-multi-project-status to use data.error string directly instead of data.error?.message Improvements: - Use GitBranch icon instead of Folder for branch display in running-agents-panel - Add error logging for failed project loads in overview.ts - Use type import for FeatureLoader in projects/index.ts - Add data-testid to mobile Overview button in dashboard-view - Add locale options for consistent time formatting in overview-view Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
919 B
TypeScript
28 lines
919 B
TypeScript
/**
|
|
* Projects routes - HTTP API for multi-project overview and management
|
|
*/
|
|
|
|
import { Router } from 'express';
|
|
import type { FeatureLoader } from '../../services/feature-loader.js';
|
|
import type { AutoModeService } from '../../services/auto-mode-service.js';
|
|
import type { SettingsService } from '../../services/settings-service.js';
|
|
import type { NotificationService } from '../../services/notification-service.js';
|
|
import { createOverviewHandler } from './routes/overview.js';
|
|
|
|
export function createProjectsRoutes(
|
|
featureLoader: FeatureLoader,
|
|
autoModeService: AutoModeService,
|
|
settingsService: SettingsService,
|
|
notificationService: NotificationService
|
|
): Router {
|
|
const router = Router();
|
|
|
|
// GET /overview - Get aggregate status for all projects
|
|
router.get(
|
|
'/overview',
|
|
createOverviewHandler(featureLoader, autoModeService, settingsService, notificationService)
|
|
);
|
|
|
|
return router;
|
|
}
|