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:
@@ -110,3 +110,67 @@ describe('reading', () => {
|
||||
expect(ops.followMovedIndex(open, from, to)).toBe(expected);
|
||||
});
|
||||
});
|
||||
|
||||
describe('menu with content pages (#722)', () => {
|
||||
const withPages = (): GalleryState => ({
|
||||
...state(),
|
||||
// pricing before Japan, faq between Trips and Korea.
|
||||
pageRefs: [
|
||||
{ slug: 'pricing', position: 0 },
|
||||
{ slug: 'faq', position: 2 },
|
||||
],
|
||||
});
|
||||
const labels = (g: GalleryState) =>
|
||||
ops.menuItems(g).map((i) => (i.kind === 'page' ? `page:${i.slug}` : g.subpages[i.index].name));
|
||||
|
||||
it('interleaves pages and subpages', () => {
|
||||
expect(labels(withPages())).toEqual(['page:pricing', 'Japan', 'Trips', 'page:faq', 'Korea']);
|
||||
});
|
||||
|
||||
it('moves a page between subpages', () => {
|
||||
const g = ops.moveMenuItem(withPages(), 0, 2);
|
||||
expect(labels(g)).toEqual(['Japan', 'Trips', 'page:pricing', 'page:faq', 'Korea']);
|
||||
});
|
||||
|
||||
it('moves a subpage past a page and follows the open sheet', () => {
|
||||
const before = withPages();
|
||||
// Japan (row 1) to the end (row 4).
|
||||
expect(ops.followMenuMove(before, 0, 1, 4)).toBe(2);
|
||||
const g = ops.moveMenuItem(before, 1, 4);
|
||||
expect(labels(g)).toEqual(['page:pricing', 'Trips', 'page:faq', 'Korea', 'Japan']);
|
||||
expect(g.subpages.map((s) => s.name)).toEqual(['Trips', 'Korea', 'Japan']);
|
||||
});
|
||||
|
||||
it('puts a page in the menu at the end, or before a row, and takes it out', () => {
|
||||
let g = ops.setPageInMenu(state(), 'about-me', true);
|
||||
expect(labels(g)).toEqual(['Japan', 'Trips', 'Korea', 'page:about-me']);
|
||||
g = ops.setPageInMenu(g, 'rates', true, 1);
|
||||
expect(labels(g)).toEqual(['Japan', 'page:rates', 'Trips', 'Korea', 'page:about-me']);
|
||||
g = ops.setPageInMenu(g, 'rates', false);
|
||||
expect(labels(g)).toEqual(['Japan', 'Trips', 'Korea', 'page:about-me']);
|
||||
expect(ops.isPageInMenu(g, 'rates')).toBe(false);
|
||||
});
|
||||
|
||||
it('keeps pages in place when a subpage is removed', () => {
|
||||
const g = ops.removeSubpage(withPages(), 0);
|
||||
expect(labels(g)).toEqual(['page:pricing', 'Trips', 'page:faq', 'Korea']);
|
||||
});
|
||||
|
||||
it('follows a rename', () => {
|
||||
const g = ops.renamePageRef(withPages(), 'faq', 'questions');
|
||||
expect(labels(g)).toContain('page:questions');
|
||||
expect(labels(g)).not.toContain('page:faq');
|
||||
});
|
||||
});
|
||||
|
||||
describe('addHeroes (#602)', () => {
|
||||
it('appends a multi-pick in pick order, skipping duplicates', () => {
|
||||
expect(ops.addHeroes(state(), ['h9', 'h2', 'h8', 'h9']).hero).toEqual([
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'h9',
|
||||
'h8',
|
||||
]);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user