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:
@@ -13,6 +13,8 @@ import {
|
||||
checkContact,
|
||||
checkLegal,
|
||||
checkPrivacy,
|
||||
checkContentPages,
|
||||
checkSettingValues,
|
||||
worstLevel,
|
||||
} from '../admin/doctor';
|
||||
|
||||
@@ -444,3 +446,58 @@ describe('checkPrivacy', () => {
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
describe('checkContentPages (#722)', () => {
|
||||
it('stays silent without pages or references', () => {
|
||||
expect(checkContentPages({ menuRefs: [], pages: [], collisions: [] })).toBeNull();
|
||||
});
|
||||
|
||||
it('is ok when every reference has a file and no slug is taken', () => {
|
||||
const f = checkContentPages({
|
||||
menuRefs: ['pricing'],
|
||||
pages: ['pricing', 'faq'],
|
||||
collisions: [],
|
||||
});
|
||||
expect(f?.level).toBe('ok');
|
||||
expect(f?.id).toBe('content-pages');
|
||||
});
|
||||
|
||||
it('warns about a menu reference without a file, naming it', () => {
|
||||
const f = checkContentPages({
|
||||
menuRefs: ['pricing', 'gone'],
|
||||
pages: ['pricing'],
|
||||
collisions: [],
|
||||
});
|
||||
expect(f?.level).toBe('warn');
|
||||
expect(f?.detail).toContain('"gone"');
|
||||
});
|
||||
|
||||
it('reports a slug collision as an error', () => {
|
||||
const f = checkContentPages({
|
||||
menuRefs: [],
|
||||
pages: ['travel'],
|
||||
collisions: [{ slug: 'travel', reason: '/travel is already a subpage.' }],
|
||||
});
|
||||
expect(f?.level).toBe('error');
|
||||
expect(f?.detail).toContain('/travel is already a subpage.');
|
||||
});
|
||||
});
|
||||
|
||||
describe('checkSettingValues (QA A-14)', () => {
|
||||
it('is ok when every checked value is used as written', () => {
|
||||
expect(checkSettingValues([]).level).toBe('ok');
|
||||
});
|
||||
|
||||
it('warns and names the fields the site replaces', () => {
|
||||
const f = checkSettingValues([{ field: 'theme.accent' }, { field: 'grid.columns' }]);
|
||||
expect(f.level).toBe('warn');
|
||||
expect(f.title).toBe('2 settings are ignored');
|
||||
expect(f.detail).toContain('accent colour, grid columns');
|
||||
});
|
||||
|
||||
it('points at the settings section of the first field', () => {
|
||||
expect(checkSettingValues([{ field: 'url' }]).settingsSection).toBe('seo');
|
||||
expect(checkSettingValues([{ field: 'grid.gap' }]).settingsSection).toBe('grid');
|
||||
expect(checkSettingValues([{ field: 'theme.accent' }]).settingsSection).toBe('theme');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user