diff --git a/search/grounded-generation-playground/package-lock.json b/search/grounded-generation-playground/package-lock.json index 658ef60e8b9..cfd4562fd80 100644 --- a/search/grounded-generation-playground/package-lock.json +++ b/search/grounded-generation-playground/package-lock.json @@ -20,6 +20,7 @@ "@radix-ui/react-switch": "^1.1.0", "@radix-ui/react-tabs": "^1.1.0", "@radix-ui/react-tooltip": "^1.1.2", + "@types/react-helmet": "^6.1.11", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "gaxios": "^6.7.1", @@ -3107,6 +3108,15 @@ "@types/react": "*" } }, + "node_modules/@types/react-helmet": { + "version": "6.1.11", + "resolved": "https://registry.npmjs.org/@types/react-helmet/-/react-helmet-6.1.11.tgz", + "integrity": "sha512-0QcdGLddTERotCXo3VFlUSWO3ztraw8nZ6e3zJSgG7apwV5xt+pJUS8ewPBqT4NYB1optGLprNQzFleIY84u/g==", + "license": "MIT", + "dependencies": { + "@types/react": "*" + } + }, "node_modules/@types/stack-utils": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", diff --git a/search/grounded-generation-playground/package.json b/search/grounded-generation-playground/package.json index 43c6bfface1..98bb7ca8084 100644 --- a/search/grounded-generation-playground/package.json +++ b/search/grounded-generation-playground/package.json @@ -26,6 +26,7 @@ "@radix-ui/react-switch": "^1.1.0", "@radix-ui/react-tabs": "^1.1.0", "@radix-ui/react-tooltip": "^1.1.2", + "@types/react-helmet": "^6.1.11", "class-variance-authority": "^0.7.0", "clsx": "^2.1.1", "gaxios": "^6.7.1", diff --git a/search/grounded-generation-playground/src/components/ui/about-page-content.tsx b/search/grounded-generation-playground/src/components/ui/about-page-content.tsx index 3828c6dd555..b55ef62e6f4 100644 --- a/search/grounded-generation-playground/src/components/ui/about-page-content.tsx +++ b/search/grounded-generation-playground/src/components/ui/about-page-content.tsx @@ -63,7 +63,7 @@ const AboutPageContent: React.FC = ({ value="javascript" className="data-[state=active]:bg-zinc-700 data-[state=active]:text-white text-white" > - Javascript + JavaScript { const PROJECT_NUMBER = process.env.PROJECT_NUMBER; const API_ENDPOINT = `https://discoveryengine.googleapis.com/v1alpha/projects/${PROJECT_NUMBER}/locations/global:streamGenerateGroundedContent`; diff --git a/search/grounded-generation-playground/src/components/ui/icons.tsx b/search/grounded-generation-playground/src/components/ui/icons.tsx index f78e2c3cf7e..2091fefb3e8 100644 --- a/search/grounded-generation-playground/src/components/ui/icons.tsx +++ b/search/grounded-generation-playground/src/components/ui/icons.tsx @@ -79,42 +79,62 @@ const IconGemini = ({ className, ...props }: React.ComponentProps<'svg'>) => { const IconVertexAi = ({ className, ...props }: React.ComponentProps<'svg'>) => { return ( + + + - + - - - - + + + + + + + + + + + + + + + + ); }; - const IconElastic = ({ className, ...props }: React.ComponentProps<'svg'>) => { return ( void; @@ -24,30 +9,46 @@ interface PageHeaderProps { const PageHeader: React.FC = ({ toggleSidebar }) => { return ( -
-
-
-

- Vertex AI Search Grounded Generation Playground -

- + <> + + + +
+
+
+

+ Vertex AI Search Grounded Generation Playground +

+ +
-
- + + ); }; -export default PageHeader; +export default PageHeader; \ No newline at end of file