From 64576da7dc22a8f15a751b82af289fdf72e14ed1 Mon Sep 17 00:00:00 2001 From: Felipe Cardoso Date: Thu, 1 Jan 2026 17:21:28 +0100 Subject: [PATCH] chore(frontend): update exports and fix lint issues MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update projects/index.ts to export new list components - Update prototypes page to reflect #53 implementation at / - Fix unused variable in ErrorBoundary.test.tsx 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- frontend/src/app/[locale]/prototypes/page.tsx | 4 +- frontend/src/components/projects/index.ts | 38 ++++++++++++++++++- .../components/common/ErrorBoundary.test.tsx | 4 +- 3 files changed, 40 insertions(+), 6 deletions(-) diff --git a/frontend/src/app/[locale]/prototypes/page.tsx b/frontend/src/app/[locale]/prototypes/page.tsx index 4756b2f..94616f8 100644 --- a/frontend/src/app/[locale]/prototypes/page.tsx +++ b/frontend/src/app/[locale]/prototypes/page.tsx @@ -22,8 +22,8 @@ const implementedPrototypes = [ title: 'Main Dashboard', description: 'Landing page with projects list, activity feed, and quick stats overview', icon: Home, - issue: '#47', - implementedAt: '/projects', + issue: '#53', + implementedAt: '/', }, { id: 'project-dashboard', diff --git a/frontend/src/components/projects/index.ts b/frontend/src/components/projects/index.ts index 01ce7f0..c931ecc 100644 --- a/frontend/src/components/projects/index.ts +++ b/frontend/src/components/projects/index.ts @@ -6,10 +6,42 @@ * @module components/projects */ +// Dashboard Components +export { ProjectDashboard } from './ProjectDashboard'; +export { ProjectHeader } from './ProjectHeader'; +export { AgentPanel } from './AgentPanel'; +export { SprintProgress } from './SprintProgress'; +export { BurndownChart } from './BurndownChart'; +export { IssueSummary } from './IssueSummary'; +export { RecentActivity } from './RecentActivity'; +export { ProjectStatusBadge, AutonomyBadge } from './StatusBadge'; +export { ProgressBar } from './ProgressBar'; + +// List Components +export { ProjectCard, ProjectCardSkeleton } from './ProjectCard'; +export { ProjectFilters } from './ProjectFilters'; +export { ProjectsGrid } from './ProjectsGrid'; + // Wizard Components export { ProjectWizard, StepIndicator, SelectableCard } from './wizard'; -// Re-export wizard types +// Re-export types +export type { + Project, + ProjectStatus, + AutonomyLevel as ProjectAutonomyLevel, + AgentInstance, + AgentStatus, + Sprint, + SprintStatus, + Issue, + IssueStatus, + IssuePriority, + IssueCountSummary, + ActivityItem, + BurndownDataPoint, +} from './types'; + export type { WizardState, WizardStep, @@ -17,3 +49,7 @@ export type { ClientMode, AutonomyLevel, } from './wizard'; + +export type { ProjectCardProps } from './ProjectCard'; +export type { ProjectFiltersProps, ViewMode, SortBy, SortOrder, Complexity } from './ProjectFilters'; +export type { ProjectsGridProps } from './ProjectsGrid'; diff --git a/frontend/tests/components/common/ErrorBoundary.test.tsx b/frontend/tests/components/common/ErrorBoundary.test.tsx index 7530aa0..11a6203 100644 --- a/frontend/tests/components/common/ErrorBoundary.test.tsx +++ b/frontend/tests/components/common/ErrorBoundary.test.tsx @@ -299,9 +299,7 @@ describe('ErrorBoundary', () => { expect(icons.length).toBeGreaterThan(0); }); - it('reset button is keyboard accessible', async () => { - const user = userEvent.setup(); - + it('reset button is keyboard accessible', () => { render(