release: v0.19.0

Release v0.19.0. See the `## [0.19.0] — 2026-09-29` section of
[CHANGELOG.md](https://github.com/ralksta/immich-folio/blob/dev/CHANGELOG.md)
for the full list.

Highlights: client proofing links (#683), custom content pages (#738),
asset picker search (#740), concurrent-edit detection (#742), env-locked
settings (#739), an accessibility baseline (#741), three security fixes
with advisories (#737, #755, #759), and a pre-release quality pass
(#780–#797).

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: ralksta <ralksta@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Co-authored-by: Ralf <rohlenbo79@gmail.com>
Co-authored-by: Paul Thies <110185070+ImScheinox@users.noreply.github.com>
Co-authored-by: lancetm714 <108419425+lancetm714@users.noreply.github.com>
Co-authored-by: Lance Martin <lancetaylor95@gmail.com>
This commit is contained in:
Ralksta
2026-09-29 22:50:30 +02:00
committed by GitHub
parent 5f251923f0
commit ad8b09700b
297 changed files with 19398 additions and 1800 deletions

View File

@@ -108,6 +108,11 @@ export function useDraft<T>(key: string, value: T, dirty: boolean) {
*/
const holdRef = useRef(false);
const [status, setStatus] = useState<DraftStatus>('none');
/** The value as last rendered, for `saved()` when edits arrived during the save. */
const valueRef = useRef(value);
useEffect(() => {
valueRef.current = value;
}, [value]);
// Mirror the edits while there are any, and drop the draft once there are
// none — a save or a discard. Nothing is written before `load()` has set a
@@ -142,12 +147,19 @@ export function useDraft<T>(key: string, value: T, dirty: boolean) {
[key],
);
/** Call after a successful save, with the fingerprint of what was saved. */
/**
* Call after a successful save, with the fingerprint of what was saved.
* `stillDirty` when the editor was changed while the save was in flight: those
* edits stay a draft, now on top of the version just written. Clearing it
* would leave them unkept until the next keystroke, since the mirror effect
* above only runs when the value or the dirty flag changes.
*/
const saved = useCallback(
(base: string) => {
(base: string, stillDirty = false) => {
baseRef.current = base;
holdRef.current = false;
clearDraft(key);
if (stillDirty) writeDraft(key, { base, value: valueRef.current });
else clearDraft(key);
setStatus('none');
},
[key],