Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(agents): use Lark and Slack marks outside Settings too (#6817)

Bohan Jiang8c0185019738
diff --git a/packages/views/agents/components/tabs/integrations-tab.tsx b/packages/views/agents/components/tabs/integrations-tab.tsx
index 76aa5acf97..ef955a0041 100644
--- a/packages/views/agents/components/tabs/integrations-tab.tsx
+++ b/packages/views/agents/components/tabs/integrations-tab.tsx
@@ -1,7 +1,6 @@
"use client";
import { useQuery } from "@tanstack/react-query";
-import { MessagesSquare, Webhook } from "lucide-react";
import type { Agent } from "@multica/core/types";
import { useAuthStore } from "@multica/core/auth";
import { useWorkspaceId } from "@multica/core/hooks";
@@ -11,7 +10,9 @@ import { dingtalkInstallationsOptions } from "@multica/core/dingtalk";
import { wecomInstallationsOptions } from "@multica/core/wecom";
import { memberListOptions } from "@multica/core/workspace/queries";
import { LarkAgentBindButton } from "../../../settings/components/lark-tab";
+import { LarkMark } from "../../../settings/components/lark-mark";
import { SlackAgentBindButton } from "../../../settings/components/slack-tab";
+import { SlackMark } from "../../../settings/components/slack-mark";
import { DingTalkAgentBindButton } from "../../../settings/components/dingtalk-tab";
import { DingTalkMark } from "../../../settings/components/dingtalk-mark";
import { WecomAgentBindButton } from "../../../settings/components/wecom-tab";
@@ -126,7 +127,7 @@ export function IntegrationsTab({ agent }: { agent: Agent }) {
<section className="rounded-lg border">
<div className="flex items-start gap-3 p-4">
<span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md border bg-muted/40 text-muted-foreground">
- <Webhook className="h-4 w-4" />
+ <LarkMark className="h-4 w-4" />
</span>
<div className="min-w-0 flex-1 space-y-1">
<h3 className="text-body font-medium">{ts(($) => $.lark.section_title)}</h3>
@@ -173,7 +174,7 @@ export function IntegrationsTab({ agent }: { agent: Agent }) {
<section className="rounded-lg border">
<div className="flex items-start gap-3 p-4">
<span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-md border bg-muted/40 text-muted-foreground">
- <MessagesSquare className="h-4 w-4" />
+ <SlackMark className="h-4 w-4" />
</span>
<div className="min-w-0 flex-1 space-y-1">
<h3 className="text-body font-medium">{ts(($) => $.slack.section_title)}</h3>
diff --git a/packages/views/settings/components/slack-tab.tsx b/packages/views/settings/components/slack-tab.tsx
index 8f959c7588..ae5670bee8 100644
--- a/packages/views/settings/components/slack-tab.tsx
+++ b/packages/views/settings/components/slack-tab.tsx
@@ -3,7 +3,8 @@
import { useState } from "react";
import { useQuery, useQueryClient } from "@tanstack/react-query";
import { toast } from "sonner";
-import { ChevronRight, ExternalLink, MessagesSquare, Trash2 } from "lucide-react";
+import { ChevronRight, ExternalLink, Trash2 } from "lucide-react";
+import { SlackMark } from "./slack-mark";
import { cn } from "@multica/ui/lib/utils";
import { Button } from "@multica/ui/components/ui/button";
import { Card, CardContent } from "@multica/ui/components/ui/card";
@@ -367,7 +368,7 @@ export function SlackAgentBindButton({
}
data-testid="slack-agent-connect"
>
- <MessagesSquare className="h-3 w-3" />
+ <SlackMark className="h-3 w-3" />
{t(($) => $.slack.bind_button)}
</Button>