Ajoute une table de gestion des utilisateurs

This commit is contained in:
2026-04-15 21:53:24 +02:00
parent 655637072c
commit 0e6115e423
8 changed files with 865 additions and 189 deletions

View File

@@ -1582,84 +1582,94 @@ body.site-menu-hidden .site-menu-shell {
margin-top: 0.8rem;
}
.admin-list-panel,
.admin-table-panel,
.admin-detail-panel {
display: grid;
align-content: start;
gap: 1rem;
}
.admin-detail-panel {
grid-column: span 8;
}
.admin-toolbar {
display: grid;
gap: 0.9rem;
}
.admin-toolbar-grid {
grid-template-columns: minmax(0, 1fr) auto;
align-items: end;
}
.admin-search-field {
margin: 0;
}
.admin-user-list {
display: grid;
.admin-toolbar-actions {
display: flex;
flex-wrap: wrap;
justify-content: flex-end;
gap: 0.75rem;
max-height: 60rem;
overflow-y: auto;
}
.admin-user-card {
appearance: none;
width: 100%;
display: grid;
gap: 0.8rem;
padding: 1rem;
.admin-table-shell {
overflow-x: auto;
border-radius: 24px;
border: 1px solid var(--panel-border);
border-radius: 22px;
background: var(--panel-alt);
color: var(--text);
}
.admin-table {
width: 100%;
min-width: 980px;
border-collapse: collapse;
}
.admin-table th,
.admin-table td {
padding: 1rem;
border-bottom: 1px solid var(--panel-border);
vertical-align: middle;
text-align: left;
cursor: pointer;
transition:
transform 160ms ease,
border-color 160ms ease,
background 160ms ease;
}
.admin-user-card:hover {
transform: translateY(-2px);
border-color: rgba(52, 141, 255, 0.32);
.admin-table th {
color: var(--muted);
font-size: 0.85rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.admin-user-card.is-selected {
border-color: rgba(52, 141, 255, 0.52);
.admin-table tbody tr {
transition: background 160ms ease;
}
.admin-table tbody tr:hover {
background: rgba(255, 255, 255, 0.03);
}
.admin-table tbody tr.is-selected {
background: linear-gradient(180deg, rgba(17, 103, 255, 0.14), rgba(17, 103, 255, 0.08));
}
.admin-user-card-head {
display: flex;
justify-content: space-between;
gap: 0.75rem;
align-items: flex-start;
.admin-table tbody tr:last-child td {
border-bottom: 0;
}
.admin-user-card-head strong {
display: block;
margin-bottom: 0.15rem;
}
.admin-user-card-head span,
.admin-user-card-meta {
color: var(--muted);
}
.admin-user-card-meta {
.admin-cell-stack {
display: grid;
gap: 0.3rem;
gap: 0.2rem;
}
.admin-cell-stack span {
color: var(--muted);
font-size: 0.92rem;
}
.admin-actions-cell {
display: flex;
flex-wrap: wrap;
gap: 0.55rem;
}
.admin-chip-success {
background: rgba(69, 185, 127, 0.14);
color: #dff7ea;
@@ -1670,6 +1680,16 @@ body.site-menu-hidden .site-menu-shell {
color: #ffd8de;
}
.admin-chip-neutral {
background: rgba(52, 141, 255, 0.14);
color: #d6e5ff;
}
.admin-chip-outline {
background: transparent;
color: var(--muted);
}
.admin-toggle-grid,
.admin-form-grid {
display: grid;
@@ -1703,6 +1723,14 @@ body.site-menu-hidden .site-menu-shell {
color: var(--muted);
}
.admin-modal-card {
width: min(980px, 100%);
}
.admin-confirm-card {
width: min(560px, 100%);
}
@media (max-width: 1100px) {
.hero,
.setup-grid,
@@ -1732,10 +1760,6 @@ body.site-menu-hidden .site-menu-shell {
grid-template-columns: 1fr;
}
.admin-detail-panel {
grid-column: span 12;
}
.phase-header {
grid-template-columns: 1fr;
text-align: center;
@@ -1950,6 +1974,18 @@ body.site-menu-hidden .site-menu-shell {
grid-template-columns: 1fr;
}
.admin-toolbar-grid {
grid-template-columns: 1fr;
}
.admin-toolbar-actions {
justify-content: stretch;
}
.admin-toolbar-actions .button {
width: 100%;
}
.setup-actions,
.resume-actions,
.modal-actions {
@@ -1966,10 +2002,6 @@ body.site-menu-hidden .site-menu-shell {
padding: 0.55rem 0 0.55rem;
}
.admin-user-list {
max-height: none;
}
.phase-header {
grid-template-columns: auto 1fr auto;
gap: 0.45rem;