mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
feat(server): Merge Faces sorted by Similarity (#14635)
* Merge Faces sorted by Similarity * Adds face sorting to the side panel face merger * run make open-api * Make it one query * Only have the single order by when sorting by closest face
This commit is contained in:
parent
8945a5d862
commit
12e55f5bf0
11 changed files with 136 additions and 44 deletions
|
|
@ -8,7 +8,6 @@
|
|||
import { getPersonNameWithHiddenValue } from '$lib/utils/person';
|
||||
import {
|
||||
createPerson,
|
||||
getAllPeople,
|
||||
getFaces,
|
||||
reassignFacesById,
|
||||
AssetTypeEnum,
|
||||
|
|
@ -53,7 +52,6 @@
|
|||
|
||||
// search people
|
||||
let showSelectedFaces = $state(false);
|
||||
let allPeople: PersonResponseDto[] = $state([]);
|
||||
|
||||
// timers
|
||||
let loaderLoadingDoneTimeout: ReturnType<typeof setTimeout>;
|
||||
|
|
@ -64,8 +62,6 @@
|
|||
async function loadPeople() {
|
||||
const timeout = setTimeout(() => (isShowLoadingPeople = true), timeBeforeShowLoadingSpinner);
|
||||
try {
|
||||
const { people } = await getAllPeople({ withHidden: true });
|
||||
allPeople = people;
|
||||
peopleWithFaces = await getFaces({ id: assetId });
|
||||
} catch (error) {
|
||||
handleError(error, $t('errors.cant_get_faces'));
|
||||
|
|
@ -322,7 +318,6 @@
|
|||
|
||||
{#if showSelectedFaces && editedFace}
|
||||
<AssignFaceSidePanel
|
||||
{allPeople}
|
||||
{editedFace}
|
||||
{assetId}
|
||||
{assetType}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue