From c9648cc9ccb1c7d3ba02b2f1072a793670bc62e3 Mon Sep 17 00:00:00 2001 From: Shahed Nasser Date: Fri, 7 Nov 2025 13:05:25 +0200 Subject: [PATCH] docs: added kapa logo + link to mcp server (#14005) --- .../AiAssistant/ChatWindow/Footer/index.tsx | 33 ++++++++++++------- .../AiAssistant/ChatWindow/Input/index.tsx | 2 +- .../AiAssistant/Suggestions/index.tsx | 17 ++++++++++ .../src/components/Icons/Kapa/index.tsx | 22 +++++++++++++ 4 files changed, 61 insertions(+), 13 deletions(-) create mode 100644 www/packages/docs-ui/src/components/Icons/Kapa/index.tsx diff --git a/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Footer/index.tsx b/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Footer/index.tsx index 6ce54c4827..c80f741e5c 100644 --- a/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Footer/index.tsx +++ b/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Footer/index.tsx @@ -1,27 +1,36 @@ import React from "react" import clsx from "clsx" import { Kbd } from "../../../Kbd" +import { KapaIcon } from "../../../Icons/Kapa" +import { Tooltip } from "../../../Tooltip" export const AiAssistantChatWindowFooter = () => { return (
- Chat is cleared on refresh - -
- Line break -
- - ⇧ - - - ↵ - + + + + + +
+ Chat is cleared on refresh + +
+ Line break +
+ + ⇧ + + + ↵ + +
diff --git a/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Input/index.tsx b/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Input/index.tsx index 59d1441571..fd0c92b20b 100644 --- a/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Input/index.tsx +++ b/www/packages/docs-ui/src/components/AiAssistant/ChatWindow/Input/index.tsx @@ -158,7 +158,7 @@ export const AiAssistantChatWindowInput = ({ placeholder="Ask me a question about Medusa..." disabled={loading} /> -
+
diff --git a/www/packages/docs-ui/src/components/AiAssistant/Suggestions/index.tsx b/www/packages/docs-ui/src/components/AiAssistant/Suggestions/index.tsx index fec4a41953..1da871ce1b 100644 --- a/www/packages/docs-ui/src/components/AiAssistant/Suggestions/index.tsx +++ b/www/packages/docs-ui/src/components/AiAssistant/Suggestions/index.tsx @@ -5,10 +5,15 @@ import { SearchSuggestionType } from "../../Search/Suggestions" import { SearchHitGroupName } from "../../Search/Hits/GroupName" import { SearchSuggestionItem } from "../../Search/Suggestions/Item" import { useChat } from "@kapaai/react-sdk" +import { Link } from "../../Link" +import { useSiteConfig } from "../../../providers" type AiAssistantSuggestionsProps = React.AllHTMLAttributes export const AiAssistantSuggestions = (props: AiAssistantSuggestionsProps) => { + const { + config: { baseUrl }, + } = useSiteConfig() const { submitQuery } = useChat() const suggestions: SearchSuggestionType[] = [ { @@ -34,6 +39,18 @@ export const AiAssistantSuggestions = (props: AiAssistantSuggestionsProps) => { return (
+ + Ask any questions about Medusa. Get help with your development. +
+ You can also use the{" "} + + Medusa MCP server + {" "} + in Cursor, VSCode, etc... +
{suggestions.map((suggestion, index) => ( diff --git a/www/packages/docs-ui/src/components/Icons/Kapa/index.tsx b/www/packages/docs-ui/src/components/Icons/Kapa/index.tsx new file mode 100644 index 0000000000..3971f37a8b --- /dev/null +++ b/www/packages/docs-ui/src/components/Icons/Kapa/index.tsx @@ -0,0 +1,22 @@ +import React from "react" +import { IconProps } from "@medusajs/icons/dist/types" + +export const KapaIcon = (props: IconProps) => { + return ( + + + + ) +}