mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
refactor(web): show & hide people (#10933)
This commit is contained in:
parent
cb40db9555
commit
e9683b326a
6 changed files with 312 additions and 260 deletions
12
web/src/test-data/factories/person-factory.ts
Normal file
12
web/src/test-data/factories/person-factory.ts
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
import { faker } from '@faker-js/faker';
|
||||
import type { PersonResponseDto } from '@immich/sdk';
|
||||
import { Sync } from 'factory.ts';
|
||||
|
||||
export const personFactory = Sync.makeFactory<PersonResponseDto>({
|
||||
birthDate: Sync.each(() => faker.date.past().toISOString()),
|
||||
id: Sync.each(() => faker.string.uuid()),
|
||||
isHidden: Sync.each(() => faker.datatype.boolean()),
|
||||
name: Sync.each(() => faker.person.fullName()),
|
||||
thumbnailPath: Sync.each(() => faker.system.filePath()),
|
||||
updatedAt: Sync.each(() => faker.date.recent().toISOString()),
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue