Skip to content

Commit

Permalink
feat(web): use time buckets of person detail page (3) (immich-app#3557)
Browse files Browse the repository at this point in the history
* feat: add personId to time bucket endpoints

* chore: open api

* feat(web): time bucket on person detail page
  • Loading branch information
jrasm91 authored Aug 5, 2023
1 parent 68b5202 commit ff32506
Show file tree
Hide file tree
Showing 19 changed files with 395 additions and 309 deletions.
46 changes: 36 additions & 10 deletions cli/src/api/open-api/api.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 8 additions & 4 deletions mobile/openapi/doc/AssetApi.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 20 additions & 6 deletions mobile/openapi/lib/api/asset_api.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions mobile/openapi/test/asset_api_test.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions server/immich-openapi-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -1684,6 +1684,15 @@
"type": "string"
}
},
{
"name": "personId",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "isArchived",
"required": false,
Expand Down Expand Up @@ -1787,6 +1796,15 @@
"type": "string"
}
},
{
"name": "personId",
"required": false,
"in": "query",
"schema": {
"format": "uuid",
"type": "string"
}
},
{
"name": "isArchived",
"required": false,
Expand Down
1 change: 1 addition & 0 deletions server/src/domain/asset/asset.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ export interface TimeBucketOptions {
isArchived?: boolean;
isFavorite?: boolean;
albumId?: string;
personId?: string;
}

export interface TimeBucketItem {
Expand Down
3 changes: 3 additions & 0 deletions server/src/domain/asset/dto/time-bucket.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export class TimeBucketDto {
@ValidateUUID({ optional: true })
albumId?: string;

@ValidateUUID({ optional: true })
personId?: string;

@IsOptional()
@IsBoolean()
@Transform(toBoolean)
Expand Down
Loading

0 comments on commit ff32506

Please sign in to comment.