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:
@@ -17,6 +17,26 @@ export function isLegacyAssetRef(assetId: string): boolean {
|
||||
return assetId.length > 0 && !ASSET_UUID.test(assetId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Slots after a multi-pick (#602): picked photos fill the empty slots first,
|
||||
* in pick order, and the rest are appended. With `capacity` (a pair holds two)
|
||||
* the list never grows past it; overflow picks are dropped.
|
||||
*/
|
||||
export function fillAssetSlots(slots: string[], picked: string[], capacity?: number): string[] {
|
||||
const next = [...slots];
|
||||
const queue = [...picked];
|
||||
for (let i = 0; i < next.length && queue.length > 0; i++) {
|
||||
if (!next[i]) next[i] = queue.shift()!;
|
||||
}
|
||||
next.push(...queue);
|
||||
return capacity === undefined ? next : next.slice(0, capacity);
|
||||
}
|
||||
|
||||
/** One photo block per picked asset, for "+ Photos" (#602). */
|
||||
export function createPhotoBlocks(assetIds: string[]): JournalBlock[] {
|
||||
return assetIds.map((assetId) => ({ type: 'photo', assetId, caption: '', layout: 'contained' }));
|
||||
}
|
||||
|
||||
/** The block the "Add Block" toolbar inserts for each type. */
|
||||
export function createBlock(type: JournalBlock['type']): JournalBlock {
|
||||
switch (type) {
|
||||
|
||||
Reference in New Issue
Block a user