chore(immich): drop the IMMICH_URL hook

A deployment no longer suggests an address for the first server: every
address is each account's own and is typed in the app, so the field opens
blank with a placeholder. The env var, its compose passthrough, the example
line and the `defaultUrl` field that carried it are all gone; the backend's
config route now answers with the saved list alone.
This commit is contained in:
2026-10-10 17:10:30 +07:00
parent 8901e0c378
commit c557108eee
8 changed files with 19 additions and 43 deletions
+5 -3
View File
@@ -133,7 +133,7 @@ await context.route('**/api/**', (route) => {
if (path === '/api/immich/config') {
if (req.method() === 'GET') {
return send(200, { ok: true, defaultUrl: 'https://photos.example.com', servers: saved.map(view) });
return send(200, { ok: true, servers: saved.map(view) });
}
if (req.method() === 'DELETE') {
const at = saved.findIndex((s) => s.id === url.searchParams.get('id'));
@@ -297,10 +297,12 @@ await page.waitForSelector('[data-key="lib-add-immich"]', { timeout: 60_000 });
await page.click('[data-key="lib-add-immich"]');
await page.waitForSelector('[data-key="immich-url"]');
step(
'the dialog opens with the address the deployment suggests already in it',
(await page.inputValue('[data-key="immich-url"]')) === 'https://photos.example.com',
'the dialog opens blank: the address is each reader’s to type, with a nudge in the field',
(await page.inputValue('[data-key="immich-url"]')) === '' &&
(await page.getAttribute('[data-key="immich-url"]', 'placeholder')) === 'https://photos.example.com',
await page.inputValue('[data-key="immich-url"]')
);
await page.fill('[data-key="immich-url"]', 'https://photos.example.com');
await page.fill('[data-key="immich-key"]', 'good-key');
await page.click('[data-key="immich-check"]');
await page.waitForSelector('[data-key="immich-status"]');