fix(linear): clarify setup actions and MCP configuration
This commit is contained in:
1 parent
d699088705
commit
1fc44e091b
20 files changed
+228
-121
No files matched your search
@@ -1,3 +1,4 @@
|
||||
import { channelUiContribution } from "@/channel-plugins/registry";
|
||||
import { CircleHelp, ExternalLink } from "lucide-react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { channelSetup } from "@/components/settings/channels/ChannelIdentity";
|
||||
@@ -16,7 +17,8 @@ export function ChannelHelpMenu({ feature, chatAppsDocsUrl }: {
|
||||
{ url: setup.officialUrl, label: setup.officialLabel },
|
||||
{ url: docsUrlWithBase(setup.docsUrl, chatAppsDocsUrl), label: setup.docsLabel },
|
||||
].filter((link) => link.url);
|
||||
if (!links.length) return null;
|
||||
const HelpContent = channelUiContribution(feature.name, feature.webui)?.HelpContent;
|
||||
if (!links.length && !HelpContent) return null;
|
||||
const label = t("settings.channels.help", { defaultValue: "Help" });
|
||||
return (
|
||||
<TooltipProvider>
|
||||
@@ -33,6 +35,7 @@ export function ChannelHelpMenu({ feature, chatAppsDocsUrl }: {
|
||||
<TooltipContent>{label}</TooltipContent>
|
||||
</Tooltip>
|
||||
<DropdownMenuContent align="end">
|
||||
{HelpContent ? <HelpContent feature={feature} /> : null}
|
||||
{links.map((link) => (
|
||||
<DropdownMenuItem key={link.url} asChild>
|
||||
<a href={link.url} target="_blank" rel="noreferrer">
|
||||
|
||||
Reference in new issue
Block a user