feat(web): page admin des sources de métadonnées et de l'automatisation
Configuration des providers (activation, priorité, clé API), réglages d'automatisation (watch des bibliothèques, auto-enrichissement, planifications scan/enrichissement) et déclenchement manuel, avec client API, mocks et styles associés. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
|
||||
.brand-button,
|
||||
.side-rail nav button,
|
||||
.admin-tabs button,
|
||||
.ghost-button,
|
||||
.primary-button {
|
||||
display: inline-flex;
|
||||
@ -138,7 +139,8 @@ h2 {
|
||||
|
||||
.ghost-button:hover,
|
||||
.side-rail nav button:hover,
|
||||
.brand-button:hover {
|
||||
.brand-button:hover,
|
||||
.admin-tabs button:hover {
|
||||
border-color: rgba(213, 168, 77, 0.55);
|
||||
}
|
||||
|
||||
@ -380,6 +382,15 @@ input {
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
select {
|
||||
min-height: 42px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
padding: 0 34px 0 12px;
|
||||
color: var(--ink);
|
||||
background: rgba(0, 0, 0, 0.22);
|
||||
}
|
||||
|
||||
.full-width {
|
||||
width: 100%;
|
||||
margin-top: 12px;
|
||||
@ -442,6 +453,138 @@ input {
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.admin-tabs {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 8px;
|
||||
margin-top: 14px;
|
||||
}
|
||||
|
||||
.admin-tabs button {
|
||||
min-width: 170px;
|
||||
padding: 0 14px;
|
||||
}
|
||||
|
||||
.admin-tabs button.active {
|
||||
border-color: rgba(213, 168, 77, 0.72);
|
||||
background: rgba(213, 168, 77, 0.16);
|
||||
color: var(--brass);
|
||||
}
|
||||
|
||||
.automation-grid {
|
||||
display: grid;
|
||||
grid-column: 1 / -1;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 16px;
|
||||
}
|
||||
|
||||
.compact-heading {
|
||||
align-items: flex-start;
|
||||
}
|
||||
|
||||
.compact-heading h2 {
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.toggle-stack,
|
||||
.provider-list,
|
||||
.schedule-controls {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.toggle-row {
|
||||
grid-template-columns: auto minmax(0, 1fr);
|
||||
align-items: start;
|
||||
}
|
||||
|
||||
.toggle-row input[type="checkbox"] {
|
||||
width: 20px;
|
||||
min-height: 20px;
|
||||
margin-top: 2px;
|
||||
accent-color: var(--brass);
|
||||
}
|
||||
|
||||
.toggle-row span,
|
||||
.provider-row > div:first-child {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.toggle-row strong,
|
||||
.provider-row strong {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
.provider-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(210px, 1fr) minmax(190px, 280px) auto;
|
||||
gap: 12px;
|
||||
align-items: center;
|
||||
padding: 12px;
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
background: rgba(255, 255, 255, 0.035);
|
||||
}
|
||||
|
||||
.provider-local {
|
||||
grid-template-columns: minmax(0, 1fr) auto;
|
||||
}
|
||||
|
||||
.provider-row span,
|
||||
.provider-row small {
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.provider-actions,
|
||||
.save-bar,
|
||||
.save-bar div {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.provider-actions {
|
||||
justify-content: end;
|
||||
}
|
||||
|
||||
.icon-button {
|
||||
width: 42px;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.icon-text-button {
|
||||
padding: 0 12px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.status-pill {
|
||||
width: max-content;
|
||||
max-width: 100%;
|
||||
padding: 5px 8px;
|
||||
border-radius: 999px;
|
||||
border: 1px solid var(--line);
|
||||
color: var(--ink-muted);
|
||||
font-size: 0.78rem;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.status-pill.active {
|
||||
border-color: rgba(45, 111, 99, 0.72);
|
||||
color: #d8fff5;
|
||||
background: rgba(45, 111, 99, 0.18);
|
||||
}
|
||||
|
||||
.schedule-controls {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.save-bar {
|
||||
justify-content: space-between;
|
||||
color: var(--ink-muted);
|
||||
}
|
||||
|
||||
.empty-state,
|
||||
.loading-state {
|
||||
display: grid;
|
||||
@ -592,7 +735,7 @@ input {
|
||||
}
|
||||
|
||||
.side-rail nav {
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
@ -638,7 +781,24 @@ input {
|
||||
}
|
||||
|
||||
.library-table > div,
|
||||
.search-form {
|
||||
.search-form,
|
||||
.automation-grid,
|
||||
.provider-row,
|
||||
.provider-local,
|
||||
.schedule-controls,
|
||||
.save-bar {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
|
||||
.save-bar,
|
||||
.save-bar div,
|
||||
.provider-actions {
|
||||
justify-content: stretch;
|
||||
}
|
||||
|
||||
.save-bar div,
|
||||
.provider-actions {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user