Skip to content

A team of long-lived bots for DeepSeek Harness, with main bots, bot-to-bot messages and group chats.

Drop the warning badge on Connect plugins

Fei2411704413f3c566
diff --git a/ds-bot/client.js b/ds-bot/client.js
index 77c1b6e9..74c09e55 100644
--- a/ds-bot/client.js
+++ b/ds-bot/client.js
@@ -95,7 +95,6 @@ var ZH = {
"Bot list": "Bot 列表",
"Setting up your Main Bot…": "正在设置你的主 Bot…",
"Connect plugins": "连接插件",
- "Plugin compatibility is not fully verified.": "插件兼容性未完全验证",
"Automation tasks": "自动化任务",
Connectors: "连接器",
"Search connectors": "搜索连接器",
@@ -2276,10 +2275,6 @@ body[data-bt-motion=quiet] .bt-mark[data-poke]{cursor:default}
.bt-connect:hover{background:var(--bt-hover)}
.bt-connect svg{flex:none;width:15px;height:15px}
.bt-connect-wrap{position:relative;display:flex;flex:1 1 auto;min-width:0}
-.bt-connect-warn{flex:none;width:16px;height:16px;border-radius:50%;background:#E5484D;color:#fff;font-size:11px;line-height:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
-.bt-connect-tip{position:fixed;box-sizing:border-box;width:max-content;max-width:260px;padding:8px 12px;border-radius:10px;background:var(--bt-main);border:.5px solid var(--bt-line-2);box-shadow:0 8px 24px -4px rgba(0,0,0,.14);color:var(--bt-ink);font-size:12px;line-height:17px;white-space:normal;text-align:center;z-index:70;transform-origin:bottom left;animation:bt-tip-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing}}
-@keyframes bt-tip-in{from{opacity:0;transform:scale(.96);filter:blur(4px)}}
-@media (prefers-reduced-motion:reduce){.bt-connect-tip{animation:none}}
.bt-head{position:relative;display:flex;justify-content:center;align-items:center;height:40px;flex:none;pointer-events:none}
.bt-pill{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;height:40px;padding:7.5px 13.5px 7.5px 7.5px;border-radius:999px;background:var(--bt-main);border:.5px solid var(--bt-line-2);box-shadow:0 2px 8px -1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);color:var(--bt-ink);font-family:inherit;font-size:14px;line-height:20px;cursor:pointer;max-width:70%;box-sizing:border-box;transition:background-color .12s ease,transform ${SPRING_TAP.duration}ms ${SPRING_TAP.easing}}
@@ -5780,52 +5775,20 @@ function UpdateButton({ useUpdate, actions }) {
);
}
function ConnectPlugins({ wide, actions }) {
- const tipId = (0, import_react10.useId)();
- const [tip, setTip] = (0, import_react10.useState)(false);
- const timer = (0, import_react10.useRef)(0);
- const button = (0, import_react10.useRef)(null);
- const [box, setBox] = (0, import_react10.useState)(null);
- (0, import_react10.useEffect)(() => () => clearTimeout(timer.current), []);
if (!wide) return null;
- const show = () => {
- clearTimeout(timer.current);
- timer.current = setTimeout(() => {
- const rect = button.current?.getBoundingClientRect();
- if (!rect) return;
- const left = Math.max(8, Math.min(rect.left, window.innerWidth - 268));
- setBox({ left, bottom: window.innerHeight - rect.top + 10 });
- setTip(true);
- }, 250);
- };
- const hide = () => {
- clearTimeout(timer.current);
- setTip(false);
- };
return (0, import_react10.createElement)(
"span",
{ className: "bt-connect-wrap" },
(0, import_react10.createElement)(
"button",
{
- ref: button,
type: "button",
className: "bt-connect bt-connect-foot",
- "aria-describedby": tip ? tipId : void 0,
- onMouseEnter: show,
- onMouseLeave: hide,
- onFocus: show,
- onBlur: hide,
onClick: () => actions.selectPanel("plugins")
},
(0, import_react10.createElement)(PlugIcon),
- t("Connect plugins"),
- (0, import_react10.createElement)("span", { className: "bt-connect-warn", "aria-hidden": true }, "!")
- ),
- tip && box ? (0, import_react_dom3.createPortal)((0, import_react10.createElement)(
- "span",
- { role: "tooltip", id: tipId, className: "bt-connect-tip", style: box },
- t("Plugin compatibility is not fully verified.")
- ), document.body) : null
+ t("Connect plugins")
+ )
);
}
function YouAvatar() {
diff --git a/ds-bot/src/client/i18n.js b/ds-bot/src/client/i18n.js
index 9487ce38..5ee8b39a 100644
--- a/ds-bot/src/client/i18n.js
+++ b/ds-bot/src/client/i18n.js
@@ -59,7 +59,6 @@ const ZH = {
'Bot list': 'Bot 列表',
'Setting up your Main Bot…': '正在设置你的主 Bot…',
'Connect plugins': '连接插件',
- 'Plugin compatibility is not fully verified.': '插件兼容性未完全验证',
'Automation tasks': '自动化任务',
Connectors: '连接器',
'Search connectors': '搜索连接器',
diff --git a/ds-bot/src/client/sidebar.js b/ds-bot/src/client/sidebar.js
index 72271744..5b0e1933 100644
--- a/ds-bot/src/client/sidebar.js
+++ b/ds-bot/src/client/sidebar.js
@@ -1,4 +1,4 @@
-import { createElement as h, Fragment, useEffect, useId, useLayoutEffect, useMemo, useRef, useState } from 'react'
+import { createElement as h, Fragment, useEffect, useLayoutEffect, useMemo, useRef, useState } from 'react'
import { createPortal } from 'react-dom'
import { FishLogo } from './dsh-primitives.js'
import { isMainOf } from './sources.js'
@@ -402,36 +402,15 @@ function UpdateButton({ useUpdate, actions }) {
}, dshPhase === 'installing' ? t('Updating…') : dshPhase === 'failed' ? t('Try again') : t('Update')))) : null), document.body) : null)
}
-// The footer entry to the shell's plugin panel, marked as not yet adapted: the red
-// badge and a hover tip explain that plugin support lands step by step.
+// The footer entry to the shell's plugin panel.
export function ConnectPlugins({ wide, actions }) {
- const tipId = useId()
- const [tip, setTip] = useState(false)
- const timer = useRef(0)
- const button = useRef(null)
- const [box, setBox] = useState(null)
- useEffect(() => () => clearTimeout(timer.current), [])
if (!wide) return null
- const show = () => {
- clearTimeout(timer.current)
- timer.current = setTimeout(() => {
- const rect = button.current?.getBoundingClientRect()
- if (!rect) return
- const left = Math.max(8, Math.min(rect.left, window.innerWidth - 268))
- setBox({ left, bottom: window.innerHeight - rect.top + 10 })
- setTip(true)
- }, 250)
- }
- const hide = () => { clearTimeout(timer.current); setTip(false) }
return h('span', { className: 'bt-connect-wrap' },
h('button', {
- ref: button, type: 'button', className: 'bt-connect bt-connect-foot', 'aria-describedby': tip ? tipId : undefined,
- onMouseEnter: show, onMouseLeave: hide, onFocus: show, onBlur: hide,
+ type: 'button', className: 'bt-connect bt-connect-foot',
onClick: () => actions.selectPanel('plugins'),
},
- h(PlugIcon), t('Connect plugins'), h('span', { className: 'bt-connect-warn', 'aria-hidden': true }, '!')),
- tip && box ? createPortal(h('span', { role: 'tooltip', id: tipId, className: 'bt-connect-tip', style: box },
- t('Plugin compatibility is not fully verified.')), document.body) : null)
+ h(PlugIcon), t('Connect plugins')))
}
// Account seat of the Settings trigger: the visible label stays for assistive tech only.
diff --git a/ds-bot/src/client/styles.js b/ds-bot/src/client/styles.js
index f0db9510..dceffcf9 100644
--- a/ds-bot/src/client/styles.js
+++ b/ds-bot/src/client/styles.js
@@ -149,10 +149,6 @@ body[data-bt-motion=quiet] .bt-mark[data-poke]{cursor:default}
.bt-connect:hover{background:var(--bt-hover)}
.bt-connect svg{flex:none;width:15px;height:15px}
.bt-connect-wrap{position:relative;display:flex;flex:1 1 auto;min-width:0}
-.bt-connect-warn{flex:none;width:16px;height:16px;border-radius:50%;background:#E5484D;color:#fff;font-size:11px;line-height:16px;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
-.bt-connect-tip{position:fixed;box-sizing:border-box;width:max-content;max-width:260px;padding:8px 12px;border-radius:10px;background:var(--bt-main);border:.5px solid var(--bt-line-2);box-shadow:0 8px 24px -4px rgba(0,0,0,.14);color:var(--bt-ink);font-size:12px;line-height:17px;white-space:normal;text-align:center;z-index:70;transform-origin:bottom left;animation:bt-tip-in ${SPRING_SHAPE.duration}ms ${SPRING_SHAPE.easing}}
-@keyframes bt-tip-in{from{opacity:0;transform:scale(.96);filter:blur(4px)}}
-@media (prefers-reduced-motion:reduce){.bt-connect-tip{animation:none}}
.bt-head{position:relative;display:flex;justify-content:center;align-items:center;height:40px;flex:none;pointer-events:none}
.bt-pill{pointer-events:auto;display:inline-flex;align-items:center;gap:8px;height:40px;padding:7.5px 13.5px 7.5px 7.5px;border-radius:999px;background:var(--bt-main);border:.5px solid var(--bt-line-2);box-shadow:0 2px 8px -1px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);color:var(--bt-ink);font-family:inherit;font-size:14px;line-height:20px;cursor:pointer;max-width:70%;box-sizing:border-box;transition:background-color .12s ease,transform ${SPRING_TAP.duration}ms ${SPRING_TAP.easing}}
diff --git a/ds-bot/test/style-debt.json b/ds-bot/test/style-debt.json
index b82d43f0..b60bcce3 100644
--- a/ds-bot/test/style-debt.json
+++ b/ds-bot/test/style-debt.json
@@ -50,11 +50,10 @@
"#777": 2,
"#a97efe": 1,
"#e02135": 1,
- "#e5484d": 1,
"#ff3e51": 4,
"#ff5eb1": 1,
"#ffaf38": 1,
- "#fff": 10,
+ "#fff": 9,
"rgba(20,20,20,.035)": 1,
"rgba(20,20,20,.04)": 1,
"rgba(20,20,20,.05)": 1,