Add the optional Immich integration and manual gallery push

Immich connections stay server-side with an encrypted API key, albums can be
imported, and photos are only sent back when an event's push button is pressed:
originals upload once, edited photos re-render, and edits hashes plus checksums
skip anything already in Immich. This also lands the accompanying editor, cloud
and administration work that was still uncommitted.

🤖 Generated with Codebuff
Co-Authored-By: Codebuff <noreply@codebuff.com>
This commit is contained in:
2026-11-25 17:43:05 +00:00
parent e0c76ba965
commit 0b3ab76405
26 changed files with 4323 additions and 144 deletions
+18
View File
@@ -128,6 +128,9 @@ interface Props {
onLocalClipboard: (layer: LocalLayer | null) => void;
onExport: () => void;
onPrint: () => void;
canPushImmich?: boolean;
onPushImmich?: () => void;
onOpenImmich?: () => void;
presets: Preset[];
onSavePreset: (name: string, edits: Edits) => void;
onDelete: () => void;
@@ -155,6 +158,9 @@ export default function Develop({
onLocalClipboard,
onExport,
onPrint,
canPushImmich = false,
onPushImmich,
onOpenImmich,
presets,
onSavePreset,
onDelete,
@@ -1453,6 +1459,12 @@ export default function Develop({
{ label: 'Paste settings', shortcut: '⌘V', onSelect: onPaste, disabled: !clipboard },
{ label: 'Reset settings', onSelect: resetAll },
'separator',
...(canPushImmich && onPushImmich
? ([{ label: 'Send edit to Immich', onSelect: onPushImmich }] as MenuEntry[])
: []),
...(onOpenImmich
? ([{ label: 'Open in Immich', onSelect: onOpenImmich }] as MenuEntry[])
: []),
{ label: 'Export…', onSelect: onExport },
{ label: 'Delete photo…', danger: true, onSelect: onDelete },
];
@@ -1462,6 +1474,12 @@ export default function Develop({
{ label: 'Paste settings', onSelect: onPaste, disabled: !clipboard },
{ label: 'Reset settings', onSelect: resetAll },
'separator',
...(canPushImmich && onPushImmich
? ([{ label: 'Send edit to Immich', onSelect: onPushImmich }] as MenuEntry[])
: []),
...(onOpenImmich
? ([{ label: 'Open in Immich', onSelect: onOpenImmich }] as MenuEntry[])
: []),
{ label: 'Export…', onSelect: onExport },
{ label: 'Delete photo…', danger: true, onSelect: onDelete },
];