Skip to content

Commit 171a89f

Browse files
authored
Language consistency - use Explore instead of Search (blakeblackshear#15709)
1 parent 8114b54 commit 171a89f

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

web/src/components/settings/SearchSettings.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default function SearchSettings({
4646
const trigger = (
4747
<Button
4848
className="flex items-center gap-2"
49-
aria-label="Search Settings"
49+
aria-label="Explore Settings"
5050
size="sm"
5151
>
5252
<FaCog className="text-secondary-foreground" />

web/src/pages/Explore.tsx

+4-4
Original file line numberDiff line numberDiff line change
@@ -328,12 +328,12 @@ export default function Explore() {
328328
<div className="flex max-w-96 flex-col items-center justify-center space-y-3 rounded-lg bg-background/50 p-5">
329329
<div className="my-5 flex flex-col items-center gap-2 text-xl">
330330
<TbExclamationCircle className="mb-3 size-10" />
331-
<div>Search Unavailable</div>
331+
<div>Explore is Unavailable</div>
332332
</div>
333333
{embeddingsReindexing && allModelsLoaded && (
334334
<>
335335
<div className="text-center text-primary-variant">
336-
Search can be used after tracked object embeddings have
336+
Explore can be used after tracked object embeddings have
337337
finished reindexing.
338338
</div>
339339
<div className="pt-5 text-center">
@@ -384,8 +384,8 @@ export default function Explore() {
384384
<>
385385
<div className="text-center text-primary-variant">
386386
Frigate is downloading the necessary embeddings models to
387-
support semantic searching. This may take several minutes
388-
depending on the speed of your network connection.
387+
support the Semantic Search feature. This may take several
388+
minutes depending on the speed of your network connection.
389389
</div>
390390
<div className="flex w-96 flex-col gap-2 py-5">
391391
<div className="flex flex-row items-center justify-center gap-2">

web/src/pages/Settings.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import UiSettingsView from "@/views/settings/UiSettingsView";
4040

4141
const allSettingsViews = [
4242
"UI settings",
43-
"search settings",
43+
"explore settings",
4444
"camera settings",
4545
"masks / zones",
4646
"motion tuner",
@@ -175,7 +175,7 @@ export default function Settings() {
175175
</div>
176176
<div className="mt-2 flex h-full w-full flex-col items-start md:h-dvh md:pb-24">
177177
{page == "UI settings" && <UiSettingsView />}
178-
{page == "search settings" && (
178+
{page == "explore settings" && (
179179
<SearchSettingsView setUnsavedChanges={setUnsavedChanges} />
180180
)}
181181
{page == "debug" && (

web/src/views/settings/SearchSettingsView.tsx

+5-5
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export default function SearchSettingsView({
9191
)
9292
.then((res) => {
9393
if (res.status === 200) {
94-
toast.success("Search settings have been saved.", {
94+
toast.success("Explore settings have been saved.", {
9595
position: "top-center",
9696
});
9797
setChangedValue(false);
@@ -128,7 +128,7 @@ export default function SearchSettingsView({
128128
if (changedValue) {
129129
addMessage(
130130
"search_settings",
131-
`Unsaved search settings changes`,
131+
`Unsaved Explore settings changes`,
132132
undefined,
133133
"search_settings",
134134
);
@@ -140,7 +140,7 @@ export default function SearchSettingsView({
140140
}, [changedValue]);
141141

142142
useEffect(() => {
143-
document.title = "Search Settings - Frigate";
143+
document.title = "Explore Settings - Frigate";
144144
}, []);
145145

146146
if (!config) {
@@ -152,7 +152,7 @@ export default function SearchSettingsView({
152152
<Toaster position="top-center" closeButton={true} />
153153
<div className="scrollbar-container order-last mb-10 mt-2 flex h-full w-full flex-col overflow-y-auto rounded-lg border-[1px] border-secondary-foreground bg-background_alt p-2 md:order-none md:mb-0 md:mr-2 md:mt-0">
154154
<Heading as="h3" className="my-2">
155-
Search Settings
155+
Explore Settings
156156
</Heading>
157157
<Separator className="my-2 flex bg-secondary" />
158158
<Heading as="h4" className="my-2">
@@ -221,7 +221,7 @@ export default function SearchSettingsView({
221221
<div className="text-md">Model Size</div>
222222
<div className="space-y-1 text-sm text-muted-foreground">
223223
<p>
224-
The size of the model used for semantic search embeddings.
224+
The size of the model used for Semantic Search embeddings.
225225
</p>
226226
<ul className="list-disc pl-5 text-sm">
227227
<li>

0 commit comments

Comments
 (0)