From 8174dbfc8006892f61102497fbd766cdbb707ba7 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 13:32:24 +0000 Subject: [PATCH 01/12] Improve search UI: relocate search bar, add command+k shortcut, enhance UX Co-Authored-By: Francisco Javier Arceo --- ui/src/components/GlobalSearchShortcut.tsx | 25 +++++ ui/src/components/RegistrySearch.tsx | 121 +++++++++++++-------- ui/src/pages/Layout.tsx | 78 ++++++++++++- ui/src/pages/ProjectOverviewPage.tsx | 3 - 4 files changed, 178 insertions(+), 49 deletions(-) create mode 100644 ui/src/components/GlobalSearchShortcut.tsx diff --git a/ui/src/components/GlobalSearchShortcut.tsx b/ui/src/components/GlobalSearchShortcut.tsx new file mode 100644 index 00000000000..33ce3ebb2a8 --- /dev/null +++ b/ui/src/components/GlobalSearchShortcut.tsx @@ -0,0 +1,25 @@ +import React, { useEffect } from "react"; + +interface GlobalSearchShortcutProps { + onOpen: () => void; +} + +const GlobalSearchShortcut: React.FC = ({ onOpen }) => { + useEffect(() => { + const handleKeyDown = (event: KeyboardEvent) => { + if ((event.metaKey || event.ctrlKey) && event.key === "k") { + event.preventDefault(); + onOpen(); + } + }; + + document.addEventListener("keydown", handleKeyDown); + return () => { + document.removeEventListener("keydown", handleKeyDown); + }; + }, [onOpen]); + + return null; // This component doesn't render anything +}; + +export default GlobalSearchShortcut; diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index b859249963b..685ff2cd764 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -1,5 +1,5 @@ -import React, { useState } from "react"; -import { EuiText, EuiFieldSearch, EuiSpacer } from "@elastic/eui"; +import React, { useState, useRef, forwardRef, useImperativeHandle } from "react"; +import { EuiText, EuiFieldSearch, EuiSpacer, EuiHorizontalRule } from "@elastic/eui"; import EuiCustomLink from "./EuiCustomLink"; interface RegistrySearchProps { @@ -10,8 +10,27 @@ interface RegistrySearchProps { }[]; } -const RegistrySearch: React.FC = ({ categories }) => { +export interface RegistrySearchRef { + focusSearchInput: () => void; +} + +const RegistrySearch = forwardRef(({ categories }, ref) => { const [searchText, setSearchText] = useState(""); + const searchInputRef = useRef(null); + + const focusSearchInput = () => { + if (searchInputRef.current) { + searchInputRef.current.focus(); + } + }; + + useImperativeHandle( + ref, + () => ({ + focusSearchInput, + }), + [] + ); const searchResults = categories.map(({ name, data, getLink }) => { const filteredItems = searchText @@ -32,59 +51,75 @@ const RegistrySearch: React.FC = ({ categories }) => { return ( <> - - -

Search in registry

-
- setSearchText(e.target.value)} isClearable fullWidth + inputRef={searchInputRef} + aria-label="Search registry" + compressed + append={ + + ⌘K + + } /> - - + {searchText && ( - -

Search Results

+ <> + +

Search Results

+
+ {searchResults.some(({ items }) => items.length > 0) ? ( - searchResults.map(({ name, items, getLink }, index) => - items.length > 0 ? ( -
-

{name}

-
    - {items.map((item, idx) => { - const itemName = - "name" in item - ? item.name - : "spec" in item - ? item.spec?.name - : "Unknown"; - - const itemLink = getLink(item); - - return ( -
  • - - {itemName} - -
  • - ); - })} -
- -
- ) : null, - ) +
+ {searchResults.map(({ name, items, getLink }, index) => + items.length > 0 ? ( +
+ +
{name}
+
+ +
    + {items.map((item, idx) => { + const itemName = + "name" in item + ? item.name + : "spec" in item + ? item.spec?.name + : "Unknown"; + + const itemLink = getLink(item); + + return ( +
  • + + {itemName} + +
  • + ); + })} +
+ {index < searchResults.filter(result => result.items.length > 0).length - 1 && ( + + )} +
+ ) : null + )} +
) : ( -

No matches found.

+
+
+

No matches found.

+
+
)} -
+ )} ); -}; +}); export default RegistrySearch; diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index 24251be4483..f82926adc0d 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -1,4 +1,4 @@ -import React from "react"; +import React, { useState, useRef } from "react"; import { EuiPage, @@ -7,34 +7,93 @@ import { EuiErrorBoundary, EuiHorizontalRule, EuiSpacer, + EuiPageHeader, + EuiFlexGroup, + EuiFlexItem, } from "@elastic/eui"; import { Outlet } from "react-router-dom"; import RegistryPathContext from "../contexts/RegistryPathContext"; import { useParams } from "react-router-dom"; import { useLoadProjectsList } from "../contexts/ProjectListContext"; +import useLoadRegistry from "../queries/useLoadRegistry"; import ProjectSelector from "../components/ProjectSelector"; import Sidebar from "./Sidebar"; import FeastWordMark from "../graphics/FeastWordMark"; import ThemeToggle from "../components/ThemeToggle"; +import RegistrySearch from "../components/RegistrySearch"; +import GlobalSearchShortcut from "../components/GlobalSearchShortcut"; const Layout = () => { // Registry Path Context has to be inside Layout // because it has to be under routes // in order to use useParams let { projectName } = useParams(); + const [isSearchOpen, setIsSearchOpen] = useState(false); + const searchRef = useRef(null); - const { data } = useLoadProjectsList(); + const { data: projectsData } = useLoadProjectsList(); - const currentProject = data?.projects.find((project) => { + const currentProject = projectsData?.projects.find((project) => { return project.id === projectName; }); const registryPath = currentProject?.registryPath || ""; + const { data } = useLoadRegistry(registryPath); + + const categories = data + ? [ + { + name: "Data Sources", + data: data.objects.dataSources || [], + getLink: (item) => `/p/${projectName}/data-source/${item.name}`, + }, + { + name: "Entities", + data: data.objects.entities || [], + getLink: (item) => `/p/${projectName}/entity/${item.name}`, + }, + { + name: "Features", + data: data.allFeatures || [], + getLink: (item) => { + const featureView = item?.featureView; + return featureView + ? `/p/${projectName}/feature-view/${featureView}/feature/${item.name}` + : "#"; + }, + }, + { + name: "Feature Views", + data: data.mergedFVList || [], + getLink: (item) => `/p/${projectName}/feature-view/${item.name}`, + }, + { + name: "Feature Services", + data: data.objects.featureServices || [], + getLink: (item) => { + const serviceName = item?.name || item?.spec?.name; + return serviceName + ? `/p/${projectName}/feature-service/${serviceName}` + : "#"; + }, + }, + ] + : []; + + const handleSearchOpen = () => { + setIsSearchOpen(true); + setTimeout(() => { + if (searchRef.current) { + searchRef.current.focusSearchInput(); + } + }, 100); + }; return ( + { + {isSearchOpen && data && ( + + + + + + + + )} diff --git a/ui/src/pages/ProjectOverviewPage.tsx b/ui/src/pages/ProjectOverviewPage.tsx index 17269b776d2..746bbb4e059 100644 --- a/ui/src/pages/ProjectOverviewPage.tsx +++ b/ui/src/pages/ProjectOverviewPage.tsx @@ -171,9 +171,6 @@ const ProjectOverviewPage = () => { {selectedTabId === "visualization" && } - - {isSuccess && } - ); }; From 4ca047c8d868d28f359b9ac1d6764d9eba4076ec Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:31:25 +0000 Subject: [PATCH 02/12] Fix TypeScript errors in search components Co-Authored-By: Francisco Javier Arceo --- ui/src/components/RegistrySearch.tsx | 10 +++++----- ui/src/pages/Layout.tsx | 17 ++++++++--------- 2 files changed, 13 insertions(+), 14 deletions(-) diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index 685ff2cd764..f660cca6b83 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -16,11 +16,11 @@ export interface RegistrySearchRef { const RegistrySearch = forwardRef(({ categories }, ref) => { const [searchText, setSearchText] = useState(""); - const searchInputRef = useRef(null); + const [inputElement, setInputElement] = useState(null); const focusSearchInput = () => { - if (searchInputRef.current) { - searchInputRef.current.focus(); + if (inputElement) { + inputElement.focus(); } }; @@ -29,7 +29,7 @@ const RegistrySearch = forwardRef(({ cat () => ({ focusSearchInput, }), - [] + [inputElement] ); const searchResults = categories.map(({ name, data, getLink }) => { @@ -57,7 +57,7 @@ const RegistrySearch = forwardRef(({ cat onChange={(e) => setSearchText(e.target.value)} isClearable fullWidth - inputRef={searchInputRef} + inputRef={(node) => setInputElement(node)} aria-label="Search registry" compressed append={ diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index f82926adc0d..530c9d2da4a 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -22,7 +22,7 @@ import ProjectSelector from "../components/ProjectSelector"; import Sidebar from "./Sidebar"; import FeastWordMark from "../graphics/FeastWordMark"; import ThemeToggle from "../components/ThemeToggle"; -import RegistrySearch from "../components/RegistrySearch"; +import RegistrySearch, { RegistrySearchRef } from "../components/RegistrySearch"; import GlobalSearchShortcut from "../components/GlobalSearchShortcut"; const Layout = () => { @@ -31,7 +31,7 @@ const Layout = () => { // in order to use useParams let { projectName } = useParams(); const [isSearchOpen, setIsSearchOpen] = useState(false); - const searchRef = useRef(null); + const searchRef = useRef(null); const { data: projectsData } = useLoadProjectsList(); @@ -47,17 +47,17 @@ const Layout = () => { { name: "Data Sources", data: data.objects.dataSources || [], - getLink: (item) => `/p/${projectName}/data-source/${item.name}`, + getLink: (item: any) => `/p/${projectName}/data-source/${item.name}`, }, { name: "Entities", data: data.objects.entities || [], - getLink: (item) => `/p/${projectName}/entity/${item.name}`, + getLink: (item: any) => `/p/${projectName}/entity/${item.name}`, }, { name: "Features", data: data.allFeatures || [], - getLink: (item) => { + getLink: (item: any) => { const featureView = item?.featureView; return featureView ? `/p/${projectName}/feature-view/${featureView}/feature/${item.name}` @@ -67,12 +67,12 @@ const Layout = () => { { name: "Feature Views", data: data.mergedFVList || [], - getLink: (item) => `/p/${projectName}/feature-view/${item.name}`, + getLink: (item: any) => `/p/${projectName}/feature-view/${item.name}`, }, { name: "Feature Services", data: data.objects.featureServices || [], - getLink: (item) => { + getLink: (item: any) => { const serviceName = item?.name || item?.spec?.name; return serviceName ? `/p/${projectName}/feature-service/${serviceName}` @@ -120,8 +120,7 @@ const Layout = () => { {isSearchOpen && data && ( From a3747df5ed4633cd8d6df546d8ff473cdcf132a9 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:35:03 +0000 Subject: [PATCH 03/12] Fix inputRef handling in RegistrySearch component Co-Authored-By: Francisco Javier Arceo --- ui/src/components/RegistrySearch.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index f660cca6b83..b768ed2f64e 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -16,11 +16,11 @@ export interface RegistrySearchRef { const RegistrySearch = forwardRef(({ categories }, ref) => { const [searchText, setSearchText] = useState(""); - const [inputElement, setInputElement] = useState(null); + const inputRef = useRef(null); const focusSearchInput = () => { - if (inputElement) { - inputElement.focus(); + if (inputRef.current) { + inputRef.current.focus(); } }; @@ -29,7 +29,7 @@ const RegistrySearch = forwardRef(({ cat () => ({ focusSearchInput, }), - [inputElement] + [focusSearchInput] ); const searchResults = categories.map(({ name, data, getLink }) => { @@ -57,7 +57,7 @@ const RegistrySearch = forwardRef(({ cat onChange={(e) => setSearchText(e.target.value)} isClearable fullWidth - inputRef={(node) => setInputElement(node)} + inputRef={(node) => { inputRef.current = node; }} aria-label="Search registry" compressed append={ From cfc450a6aaf6eaeb74998085b11baee42e7945fe Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:38:30 +0000 Subject: [PATCH 04/12] Format code with prettier Co-Authored-By: Francisco Javier Arceo --- ui/src/components/GlobalSearchShortcut.tsx | 4 +- ui/src/components/RegistrySearch.tsx | 224 +++++++++++---------- ui/src/pages/Layout.tsx | 11 +- 3 files changed, 133 insertions(+), 106 deletions(-) diff --git a/ui/src/components/GlobalSearchShortcut.tsx b/ui/src/components/GlobalSearchShortcut.tsx index 33ce3ebb2a8..2c116c6dd63 100644 --- a/ui/src/components/GlobalSearchShortcut.tsx +++ b/ui/src/components/GlobalSearchShortcut.tsx @@ -4,7 +4,9 @@ interface GlobalSearchShortcutProps { onOpen: () => void; } -const GlobalSearchShortcut: React.FC = ({ onOpen }) => { +const GlobalSearchShortcut: React.FC = ({ + onOpen, +}) => { useEffect(() => { const handleKeyDown = (event: KeyboardEvent) => { if ((event.metaKey || event.ctrlKey) && event.key === "k") { diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index b768ed2f64e..24d6886d4d5 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -1,5 +1,15 @@ -import React, { useState, useRef, forwardRef, useImperativeHandle } from "react"; -import { EuiText, EuiFieldSearch, EuiSpacer, EuiHorizontalRule } from "@elastic/eui"; +import React, { + useState, + useRef, + forwardRef, + useImperativeHandle, +} from "react"; +import { + EuiText, + EuiFieldSearch, + EuiSpacer, + EuiHorizontalRule, +} from "@elastic/eui"; import EuiCustomLink from "./EuiCustomLink"; interface RegistrySearchProps { @@ -14,112 +24,120 @@ export interface RegistrySearchRef { focusSearchInput: () => void; } -const RegistrySearch = forwardRef(({ categories }, ref) => { - const [searchText, setSearchText] = useState(""); - const inputRef = useRef(null); +const RegistrySearch = forwardRef( + ({ categories }, ref) => { + const [searchText, setSearchText] = useState(""); + const inputRef = useRef(null); - const focusSearchInput = () => { - if (inputRef.current) { - inputRef.current.focus(); - } - }; - - useImperativeHandle( - ref, - () => ({ - focusSearchInput, - }), - [focusSearchInput] - ); + const focusSearchInput = () => { + if (inputRef.current) { + inputRef.current.focus(); + } + }; - const searchResults = categories.map(({ name, data, getLink }) => { - const filteredItems = searchText - ? data.filter((item) => { - const itemName = - "name" in item - ? String(item.name) - : "spec" in item && item.spec && "name" in item.spec - ? String(item.spec.name ?? "Unknown") - : "Unknown"; + useImperativeHandle( + ref, + () => ({ + focusSearchInput, + }), + [focusSearchInput], + ); - return itemName.toLowerCase().includes(searchText.toLowerCase()); - }) - : []; + const searchResults = categories.map(({ name, data, getLink }) => { + const filteredItems = searchText + ? data.filter((item) => { + const itemName = + "name" in item + ? String(item.name) + : "spec" in item && item.spec && "name" in item.spec + ? String(item.spec.name ?? "Unknown") + : "Unknown"; - return { name, items: filteredItems, getLink }; - }); + return itemName.toLowerCase().includes(searchText.toLowerCase()); + }) + : []; - return ( - <> - setSearchText(e.target.value)} - isClearable - fullWidth - inputRef={(node) => { inputRef.current = node; }} - aria-label="Search registry" - compressed - append={ - - ⌘K - - } - /> - - {searchText && ( - <> - -

Search Results

-
- - {searchResults.some(({ items }) => items.length > 0) ? ( -
- {searchResults.map(({ name, items, getLink }, index) => - items.length > 0 ? ( -
- -
{name}
-
- -
    - {items.map((item, idx) => { - const itemName = - "name" in item - ? item.name - : "spec" in item - ? item.spec?.name - : "Unknown"; - - const itemLink = getLink(item); - - return ( -
  • - - {itemName} - -
  • - ); - })} -
- {index < searchResults.filter(result => result.items.length > 0).length - 1 && ( - - )} -
- ) : null - )} -
- ) : ( -
-
-

No matches found.

+ return { name, items: filteredItems, getLink }; + }); + + return ( + <> + setSearchText(e.target.value)} + isClearable + fullWidth + inputRef={(node) => { + inputRef.current = node; + }} + aria-label="Search registry" + compressed + append={ + + ⌘K + + } + /> + + {searchText && ( + <> + +

Search Results

+
+ + {searchResults.some(({ items }) => items.length > 0) ? ( +
+ {searchResults.map(({ name, items, getLink }, index) => + items.length > 0 ? ( +
+ +
{name}
+
+ +
    + {items.map((item, idx) => { + const itemName = + "name" in item + ? item.name + : "spec" in item + ? item.spec?.name + : "Unknown"; + + const itemLink = getLink(item); + + return ( +
  • + + {itemName} + +
  • + ); + })} +
+ {index < + searchResults.filter( + (result) => result.items.length > 0, + ).length - + 1 && } +
+ ) : null, + )} +
+ ) : ( +
+
+

No matches found.

+
-
- )} - - )} - - ); -}); + )} + + )} + + ); + }, +); export default RegistrySearch; diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index 530c9d2da4a..c31ba973e75 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -22,7 +22,9 @@ import ProjectSelector from "../components/ProjectSelector"; import Sidebar from "./Sidebar"; import FeastWordMark from "../graphics/FeastWordMark"; import ThemeToggle from "../components/ThemeToggle"; -import RegistrySearch, { RegistrySearchRef } from "../components/RegistrySearch"; +import RegistrySearch, { + RegistrySearchRef, +} from "../components/RegistrySearch"; import GlobalSearchShortcut from "../components/GlobalSearchShortcut"; const Layout = () => { @@ -120,7 +122,12 @@ const Layout = () => { {isSearchOpen && data && ( From 82927c3cd65bf76ea17971bfa82f04010b2b6b0d Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:39:14 +0000 Subject: [PATCH 05/12] Add search button to sidebar for easier access Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index c31ba973e75..5fdcfe3732a 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -112,7 +112,24 @@ const Layout = () => { - +
+ + +
)} From f8edf84a459c853440c74231d01211e7f70d500e Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:45:44 +0000 Subject: [PATCH 06/12] Format Layout.tsx with prettier Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index 5fdcfe3732a..ccfdf6b2240 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -112,22 +112,30 @@ const Layout = () => { -
+
-
From cd60a7a02b0bf02247f065eac2703063124cd96d Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:52:13 +0000 Subject: [PATCH 07/12] Fix search bar width and center it Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index ccfdf6b2240..748aee9877b 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -154,8 +154,8 @@ const Layout = () => { borderBottom: "1px solid #D3DAE6", }} > - - + + From 45e2a57ca36b6d1931c7e005193f8cdb51eef345 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:53:29 +0000 Subject: [PATCH 08/12] Remove redundant search indicator from search bar Co-Authored-By: Francisco Javier Arceo --- ui/src/components/RegistrySearch.tsx | 5 ----- 1 file changed, 5 deletions(-) diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index 24d6886d4d5..1e462d1a940 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -73,11 +73,6 @@ const RegistrySearch = forwardRef( }} aria-label="Search registry" compressed - append={ - - ⌘K - - } /> {searchText && ( From 56e23a77b04fc6d00d98cf2cc0754b07547522b6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 14:55:05 +0000 Subject: [PATCH 09/12] Format Layout.tsx with yarn format Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index 748aee9877b..a1aa3f0be50 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -155,7 +155,10 @@ const Layout = () => { }} > - + From d427486d23675acf48a8207c74e617f5ed0d4e63 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 15:21:32 +0000 Subject: [PATCH 10/12] =?UTF-8?q?Remove=20Search=20(=E2=8C=98K)=20text=20f?= =?UTF-8?q?rom=20sidebar=20button?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index a1aa3f0be50..37053be5ed5 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -135,7 +135,6 @@ const Layout = () => { 🔍 - Search (⌘K)
From db323d1b6f21a8ffc3c16f8e6b06764fc93992a3 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 15:34:41 +0000 Subject: [PATCH 11/12] =?UTF-8?q?Add=20=E2=8C=98K=20indicator=20to=20searc?= =?UTF-8?q?h=20input=20and=20remove=20magnifying=20glass=20from=20navbar?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Francisco Javier Arceo --- ui/src/components/RegistrySearch.tsx | 5 +++++ ui/src/pages/Layout.tsx | 18 +----------------- 2 files changed, 6 insertions(+), 17 deletions(-) diff --git a/ui/src/components/RegistrySearch.tsx b/ui/src/components/RegistrySearch.tsx index 1e462d1a940..24d6886d4d5 100644 --- a/ui/src/components/RegistrySearch.tsx +++ b/ui/src/components/RegistrySearch.tsx @@ -73,6 +73,11 @@ const RegistrySearch = forwardRef( }} aria-label="Search registry" compressed + append={ + + ⌘K + + } /> {searchText && ( diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index 37053be5ed5..ffa614ca76e 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -115,27 +115,11 @@ const Layout = () => {
-
)} From 9c08880fbe625906717b3547199793aed4500fef Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Thu, 1 May 2025 15:39:54 +0000 Subject: [PATCH 12/12] Fix theme toggle position to be left-justified Co-Authored-By: Francisco Javier Arceo --- ui/src/pages/Layout.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/pages/Layout.tsx b/ui/src/pages/Layout.tsx index ffa614ca76e..633d9303a4d 100644 --- a/ui/src/pages/Layout.tsx +++ b/ui/src/pages/Layout.tsx @@ -115,7 +115,7 @@ const Layout = () => {