Import page in the web UI, worker service and import monitoring
- New Import page: upload an export (with upload progress) or, when the server has a Last.fm API key, import straight from a Last.fm username; jobs list with live progress, counts, errors and cancelling - docker compose runs the import worker from the API image; the API image no longer sets PROMETHEUS_MULTIPROC_DIR (gunicorn.conf.py does, and other commands must not inherit multiprocess mode) - Prometheus scrapes the worker; Usage dashboard gains an Imports row; ImportWorkerDown and ImportJobsWaiting alerts - README and .env.example document imports and LASTFM_API_KEY Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MK52BGoJbPhZ1vSFuKcGUW
This commit is contained in:
1 parent
eebd7b8730
commit
e40a074a64
12 files changed
+754
-3
No files matched your search
@@ -779,3 +779,68 @@ input {
|
||||
transition: width 1s linear;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- Import --------------------------------------------------------------- */
|
||||
.import-sources {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
|
||||
gap: 2rem 3rem;
|
||||
margin-bottom: 3rem;
|
||||
}
|
||||
|
||||
.import-sources section + section {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.import-sources h2 {
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.import-sources .muted {
|
||||
margin-bottom: 1.1rem;
|
||||
}
|
||||
|
||||
.stacked-form .button {
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
.field input[type="file"] {
|
||||
padding: 0.45rem;
|
||||
}
|
||||
|
||||
.bar {
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--bar);
|
||||
overflow: hidden;
|
||||
margin: 0.6rem 0;
|
||||
}
|
||||
|
||||
.bar-fill {
|
||||
height: 100%;
|
||||
width: 0;
|
||||
background: var(--slate);
|
||||
}
|
||||
|
||||
.upload-progress {
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
.import-status {
|
||||
margin-top: 0.35rem;
|
||||
}
|
||||
|
||||
.import-running .bar-fill {
|
||||
background: var(--ok);
|
||||
}
|
||||
|
||||
.import-date {
|
||||
font-size: var(--step--1);
|
||||
margin-top: 0.25rem;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
.bar-fill {
|
||||
transition: width 0.4s ease-out;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user