feat: add project settings page with tabbed layout

- Create SettingsTabLayout component with sidebar navigation
- Create ProjectSettingsPage with General settings tab
- Create RepositoriesSettingsTab for repo management
- Add Members placeholder tab
- Update router with settings routes
- Add CSS styles for settings layout
- Navigate to /projects/:id/settings from workspace header
This commit is contained in:
Fusion
2026-05-19 15:26:57 +02:00
parent 965f6f6585
commit 0bc0d99c21
17 changed files with 1136 additions and 16 deletions
+170 -1
View File
@@ -707,11 +707,62 @@ a {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
padding: 1rem 1.5rem;
border-bottom: 1px solid var(--border);
background: var(--panel);
}
.workspace-header-left {
display: flex;
align-items: center;
gap: 0.75rem;
}
.workspace-header-icon {
font-size: 1.5rem;
}
.workspace-header-info {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.workspace-header-title {
margin: 0;
font-size: 1.25rem;
font-weight: 600;
}
.workspace-header-subtitle {
color: var(--muted);
font-size: 0.875rem;
}
.workspace-header-actions {
display: flex;
gap: 0.5rem;
}
.workspace-header-action-btn {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.5rem 1rem;
border: 1px solid var(--border);
border-radius: 8px;
background: var(--panel);
color: var(--ink);
font-size: 0.875rem;
cursor: pointer;
transition: all 0.2s;
}
.workspace-header-action-btn:hover {
background: var(--bg);
border-color: var(--brand);
}
.workspace-title {
display: flex;
align-items: center;
@@ -1034,3 +1085,121 @@ a {
background: rgba(16, 185, 129, 0.1);
border-radius: 4px;
}
/* Settings Layout */
.settings-layout {
display: flex;
gap: 2rem;
padding: 1.5rem 0;
}
.settings-sidebar {
width: 200px;
flex-shrink: 0;
}
.settings-nav {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.settings-nav-link {
padding: 0.625rem 1rem;
border-radius: 8px;
color: var(--muted);
text-decoration: none;
font-size: 0.95rem;
transition: all 0.2s;
}
.settings-nav-link:hover {
background: var(--bg);
color: var(--ink);
}
.settings-nav-link.active {
background: var(--brand);
color: white;
font-weight: 500;
}
.settings-content {
flex: 1;
min-width: 0;
}
.settings-panel {
background: var(--panel);
border: 1px solid var(--border);
border-radius: 14px;
padding: 1.5rem;
}
.settings-panel h2 {
margin: 0 0 1.25rem;
font-size: 1.25rem;
}
.settings-breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 0.9rem;
color: var(--muted);
margin-bottom: 1rem;
}
.settings-breadcrumb a {
color: var(--brand);
text-decoration: none;
}
.settings-breadcrumb a:hover {
text-decoration: underline;
}
.project-settings-page {
padding: 1.5rem;
}
/* Repositories Settings Tab */
.repositories-settings-tab h2 {
margin: 0 0 1.25rem;
font-size: 1.25rem;
}
.repositories-list {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.repository-card {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem;
background: var(--bg);
border: 1px solid var(--border);
border-radius: 10px;
}
.repository-info h3 {
margin: 0 0 0.25rem;
font-size: 1rem;
}
.repository-info p {
margin: 0 0 0.5rem;
font-size: 0.85rem;
color: var(--muted);
}
.repo-type {
font-size: 0.75rem;
padding: 0.2rem 0.5rem;
background: var(--brand);
color: white;
border-radius: 999px;
}