feat: unify repository creation flow for desktop and mobile
- ProjectCard.tsx: add onAddRepository prop, show 'Add Repository' button in expanded view - ProjectCard.tsx: add showBackButton/onBack props for mobile detail reuse - ProjectsPage.tsx (desktop): wire onAddRepository to open RepositoryCreateDialog - ProjectsPage.tsx (mobile): reuse ProjectCard for detail view instead of inline duplication - pages/projects.css: add .project-add-repo style Both platforms now use the same ProjectCard component and RepositoryCreateDialog for adding repositories to projects. Quality gates: tsc --noEmit pass, npm run build pass, 80/80 tests pass
This commit is contained in:
@@ -130,3 +130,11 @@
|
||||
color: var(--danger);
|
||||
}
|
||||
|
||||
.project-add-repo {
|
||||
margin-top: var(--space-4);
|
||||
padding-top: var(--space-4);
|
||||
border-top: 1px solid var(--border);
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user