mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat: people infinite scroll (#11326)
* feat: people infinite scroll * add infinite scroll to show & hide modal * update unit tests * show total people count instead of currently loaded * update personsearchdto
This commit is contained in:
parent
152421e288
commit
8e6bc13540
17 changed files with 276 additions and 67 deletions
9
web/src/lib/__mocks__/intersection-observer.mock.ts
Normal file
9
web/src/lib/__mocks__/intersection-observer.mock.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { vi } from 'vitest';
|
||||
|
||||
export const getIntersectionObserverMock = () =>
|
||||
vi.fn(() => ({
|
||||
disconnect: vi.fn(),
|
||||
observe: vi.fn(),
|
||||
takeRecords: vi.fn(),
|
||||
unobserve: vi.fn(),
|
||||
}));
|
||||
Loading…
Add table
Add a link
Reference in a new issue