);
}
/** Immich: whether the photo library is healthy — the disk under it, how many it holds, and whether its background jobs are failing quietly. */
export default function Immich() {
const [data, setData] = useState(null);
const [error, setError] = useState(null);
useEffect(() => {
const load = () =>
api.immich
.list()
.then((r) => {
setData(r.immiches);
setError(null);
})
.catch((err) => setError(readableError(err)));
void load();
const t = setInterval(load, 60_000);
return () => clearInterval(t);
}, []);
return (
<>
Immich
Photos are what cannot be made again, and Immich fails quietly. It is read every few minutes with an API key (see {t("Integrations")}). A disk under the library that is filling up and background jobs that have failed (thumbnails and
metadata that were never made) are alerts — see {t("Alerts")}.
{!data && !error && }
{data && data.length === 0 && (