refactor: rename clip -> smart search (#6713)

This commit is contained in:
Mert 2024-01-29 09:51:22 -05:00 committed by GitHub
parent e5a70329c9
commit ae7f174948
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 162 additions and 119 deletions

View file

@ -85,7 +85,7 @@
icon: mdiImageSearch,
title: api.getJobName(JobName.SmartSearch),
subtitle: 'Run machine learning on assets to support smart search',
disabled: !$featureFlags.clipEncode,
disabled: !$featureFlags.smartSearch,
},
[JobName.FaceDetection]: {
icon: mdiFaceRecognition,

View file

@ -15,11 +15,11 @@
$: showClearIcon = value.length > 0;
function onSearch() {
let clipSearch = 'true';
let smartSearch = 'true';
let searchValue = value;
if (value.slice(0, 2) == 'm:') {
clipSearch = 'false';
smartSearch = 'false';
searchValue = value.slice(2);
}
@ -28,7 +28,7 @@
const params = new URLSearchParams({
q: searchValue,
clip: clipSearch,
smart: smartSearch,
});
showBigSearchBar = false;

View file

@ -63,7 +63,7 @@ export const dateFormats = {
export enum QueryParameter {
ACTION = 'action',
ASSET_INDEX = 'assetIndex',
CLIP = 'clip',
SMART_SEARCH = 'smartSearch',
MEMORY_INDEX = 'memoryIndex',
ONBOARDING_STEP = 'step',
OPEN_SETTING = 'openSetting',

View file

@ -5,7 +5,7 @@ export type FeatureFlags = ServerFeaturesDto & { loaded: boolean };
export const featureFlags = writable<FeatureFlags>({
loaded: false,
clipEncode: true,
smartSearch: true,
facialRecognition: true,
sidecar: true,
map: true,