- Add source, team_slug, team_role fields to AccessPermissionResponse schema - Update list_project_permissions endpoint to include team members with source="team" - Display team-based access in AccessManagement component with read-only styling - Add "Source" column to differentiate explicit vs team-based permissions - Team-based access shows "Via team" in actions column (not editable)
146 lines
2.4 KiB
CSS
146 lines
2.4 KiB
CSS
.access-management {
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.access-management__header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.access-management__header h3 {
|
|
margin: 0;
|
|
}
|
|
|
|
.access-management__form {
|
|
background: var(--bg-tertiary);
|
|
padding: 1rem;
|
|
border-radius: 6px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.access-management__form .form-row {
|
|
display: flex;
|
|
gap: 1rem;
|
|
align-items: flex-end;
|
|
}
|
|
|
|
.access-management__form .form-group {
|
|
flex: 1;
|
|
}
|
|
|
|
.access-management__form .form-group:last-of-type {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.access-management__list {
|
|
margin-top: 1rem;
|
|
}
|
|
|
|
.access-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.access-table th,
|
|
.access-table td {
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--border-color);
|
|
}
|
|
|
|
.access-table th {
|
|
font-weight: 600;
|
|
color: var(--text-secondary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.access-table td.actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.access-badge {
|
|
display: inline-block;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
text-transform: capitalize;
|
|
}
|
|
|
|
.access-badge--read {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.access-badge--write {
|
|
background: var(--color-info-bg);
|
|
color: var(--color-info);
|
|
}
|
|
|
|
.access-badge--admin {
|
|
background: var(--color-success-bg);
|
|
color: var(--color-success);
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn-danger {
|
|
background: var(--color-error);
|
|
color: white;
|
|
}
|
|
|
|
.btn-danger:hover {
|
|
background: #c0392b;
|
|
}
|
|
|
|
/* Expired permission styling */
|
|
.expired {
|
|
color: var(--color-error);
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Date input styling in table */
|
|
.access-table input[type="date"] {
|
|
padding: 0.25rem 0.5rem;
|
|
background: var(--bg-tertiary);
|
|
border: 1px solid var(--border-primary);
|
|
border-radius: 4px;
|
|
font-size: 0.875rem;
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* Access source styling */
|
|
.access-source {
|
|
display: inline-block;
|
|
padding: 0.2rem 0.4rem;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.access-source--explicit {
|
|
background: var(--bg-tertiary);
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.access-source--team {
|
|
background: var(--color-info-bg, #e3f2fd);
|
|
color: var(--color-info, #1976d2);
|
|
}
|
|
|
|
/* Team access row styling */
|
|
.team-access-row {
|
|
background: var(--bg-secondary, #fafafa);
|
|
}
|
|
|
|
.team-access-row td.actions .text-muted {
|
|
font-size: 0.8125rem;
|
|
font-style: italic;
|
|
}
|