From ce5c4b65d398bd69193b5e1c453eefacdbfea20b Mon Sep 17 00:00:00 2001 From: Steven Date: Thu, 27 Jul 2023 22:25:36 +0800 Subject: [PATCH] chore: update seed data --- store/db/seed/10002__shortcut.sql | 4 ++-- web/src/components/Navigator.tsx | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/store/db/seed/10002__shortcut.sql b/store/db/seed/10002__shortcut.sql index 8749dfb..0056e61 100644 --- a/store/db/seed/10002__shortcut.sql +++ b/store/db/seed/10002__shortcut.sql @@ -32,7 +32,7 @@ VALUES 'ai-infra', 'https://star-history.com/blog/open-source-ai-infra-projects', 'PUBLIC', - 'star-history AI', + 'star-history ai', '{"title":"Open Source AI Infra for Your Next Project","description":"Some open-source infra projects that can be directly used for your next project. 💡","image":"https://star-history.com/blog/assets/open-source-ai-infra-projects/banner.webp"}' ); @@ -72,7 +72,7 @@ VALUES 101, 'sqlchat', 'https://www.sqlchat.ai', - 'ai chatbot', + 'ai chatbot sql', 'WORKSPACE' ); diff --git a/web/src/components/Navigator.tsx b/web/src/components/Navigator.tsx index 629f049..eb2a54c 100644 --- a/web/src/components/Navigator.tsx +++ b/web/src/components/Navigator.tsx @@ -9,6 +9,7 @@ const Navigator = () => { const { shortcutList } = useAppSelector((state) => state.shortcut); const tags = uniq(shortcutList.map((shortcut) => shortcut.tags).flat()); const currentTab = viewStore.filter.tab || `tab:all`; + const sortedTagMap = sortTags(tags); return (
@@ -30,7 +31,7 @@ const Navigator = () => { Mine - {tags.map((tag) => ( + {Array.from(sortedTagMap.keys()).map((tag) => (