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>
32 lines
1.3 KiB
TypeScript
32 lines
1.3 KiB
TypeScript
import { describe, it, expect } from 'vitest';
|
|
import fs from 'fs';
|
|
import path from 'path';
|
|
|
|
/**
|
|
* The page renders albums and essays from several branches — subpage album,
|
|
* essay, single-album subpage, standalone album — and each one passes the
|
|
* proofing props by hand. The dialog hides its email button without a
|
|
* recipient (#736), so a branch that forwards `allowMailto` but forgets
|
|
* `encodedMailto` silently loses the button on that kind of page. #746 missed
|
|
* two of the four; this keeps the next branch from doing the same.
|
|
*/
|
|
|
|
const source = fs.readFileSync(path.join(__dirname, '..', 'page.tsx'), 'utf8');
|
|
|
|
/** Every `<AlbumDetailView … />` and `<EssayView … />` element in the page. */
|
|
const elements = source.match(/<(AlbumDetailView|EssayView)\b[\s\S]*?\/>/g) ?? [];
|
|
|
|
describe('proofing email wiring in the catch-all page', () => {
|
|
it('finds the album and essay views', () => {
|
|
expect(elements.length).toBeGreaterThanOrEqual(4);
|
|
});
|
|
|
|
it('passes the recipient wherever it passes the email switch', () => {
|
|
const missing = elements
|
|
.filter((el) => el.includes('allowMailto='))
|
|
.filter((el) => !el.includes('encodedMailto='))
|
|
.map((el) => el.split('\n').slice(0, 3).join(' ').trim());
|
|
expect(missing).toEqual([]);
|
|
});
|
|
});
|