From f11bb8ffb9291749c36c01700bc5b8d17f202385 Mon Sep 17 00:00:00 2001 From: David Myriel Date: Sun, 6 Oct 2024 14:11:54 -0700 Subject: [PATCH] fix homepage and sidebar (#241) --- src/components/InteractiveTutorial/TutorialSubpages.jsx | 2 +- src/components/Sidebar/Sidebar.jsx | 3 ++- src/pages/Welcome.jsx | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/InteractiveTutorial/TutorialSubpages.jsx b/src/components/InteractiveTutorial/TutorialSubpages.jsx index 67eada2b..e09f4e62 100644 --- a/src/components/InteractiveTutorial/TutorialSubpages.jsx +++ b/src/components/InteractiveTutorial/TutorialSubpages.jsx @@ -18,6 +18,7 @@ import * as LoadContent from './MdxPages/LoadContent.mdx'; export const tutorialIndexPage = Index; const tutorialSubPages = [ ['quickstart', Quickstart], + ['loadcontent', LoadContent], ['filteringbeginner', FilteringBeginner], ['filteringadvanced', FilteringAdvanced], ['filteringfulltext', FilteringFullText], @@ -25,7 +26,6 @@ const tutorialSubPages = [ ['sparsevectors', SparseVectors], ['hybridsearch', HybridSearch], ['multitenancy', Multitenancy], - ['loadcontent', LoadContent], // add more pages here ]; diff --git a/src/components/Sidebar/Sidebar.jsx b/src/components/Sidebar/Sidebar.jsx index 087ccc21..79da826c 100644 --- a/src/components/Sidebar/Sidebar.jsx +++ b/src/components/Sidebar/Sidebar.jsx @@ -4,7 +4,7 @@ import { styled } from '@mui/material/styles'; import MuiDrawer from '@mui/material/Drawer'; import { List, Typography, Divider, ListItem, ListItemButton, ListItemIcon, ListItemText } from '@mui/material'; import { Link } from 'react-router-dom'; -import { LibraryBooks, Terminal, Animation, Key } from '@mui/icons-material'; +import { LibraryBooks, Terminal, Animation, Key, RocketLaunch } from '@mui/icons-material'; import Tooltip from '@mui/material/Tooltip'; import SidebarTutorialSection from './SidebarTutorialSection'; @@ -63,6 +63,7 @@ export default function Sidebar({ open, version, jwtEnabled, jwtVisible }) { + {sidebarItem('Welcome', , '/welcome', open)} {sidebarItem('Console', , '/console', open)} {sidebarItem('Collections', , '/collections', open)} diff --git a/src/pages/Welcome.jsx b/src/pages/Welcome.jsx index 06a4df33..0d42574b 100644 --- a/src/pages/Welcome.jsx +++ b/src/pages/Welcome.jsx @@ -49,6 +49,9 @@ const Welcome = () => { Load Sample Data + + Vector Search Tutorials +