Skip to content

Commit 70dbc21

Browse files
committed
feat(bailian): 增加高级配置区和相关交互优化
- 将配置字段调整为高级配置隐藏,支持折叠展开展示 - 为API Key和工作空间ID添加“去获取”外部链接,引导用户至控制台 - 优化填写状态提示,新增已配置完成的绿色成功提示 - 新增高级配置按钮,折叠字段组及保存、放弃操作 - 细化自动填充状态处理,支持失败、等待登录、成功及已配置等多状态显示 - 更新本地化文本,支持高级配置及“去获取”等新文案 - 调整CSS样式,新增高级配置相关样式和状态样式 - 升级版本号至0.1.15
1 parent 8714f61 commit 70dbc21

4 files changed

Lines changed: 253 additions & 91 deletions

File tree

packages/tool-bailian-kb/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ali/bailian-kb-dsh",
3-
"version": "0.1.12",
3+
"version": "0.1.15",
44
"description": "Bailian knowledge-base tools for DeepSeek Harness: kb_search and kb_chat over the DashScope RAG API, plus the bl CLI management skill.",
55
"type": "module",
66
"main": "lib/index.js",

packages/tool-bailian-kb/src/web/BailianCard.module.css

Lines changed: 93 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,14 +87,33 @@
8787
}
8888

8989
.label {
90-
flex: 1;
91-
min-width: 0;
9290
font-size: 13px;
9391
font-weight: 500;
9492
line-height: 1.5;
9593
color: var(--dsw-alias-label-primary);
9694
}
9795

96+
.labelWrap {
97+
display: flex;
98+
align-items: center;
99+
gap: 8px;
100+
flex: 1;
101+
min-width: 0;
102+
}
103+
104+
.getLink {
105+
flex: none;
106+
font-size: 12px;
107+
line-height: 1.5;
108+
color: var(--dsw-alias-brand-primary);
109+
text-decoration: none;
110+
white-space: nowrap;
111+
}
112+
113+
.getLink:hover {
114+
text-decoration: underline;
115+
}
116+
98117
.badges {
99118
display: inline-flex;
100119
align-items: center;
@@ -112,6 +131,17 @@
112131
color: var(--dsw-alias-label-secondary);
113132
}
114133

134+
.badgeSuccess {
135+
border-radius: 999px;
136+
padding: 1px 8px;
137+
font-size: 11px;
138+
line-height: 17px;
139+
white-space: nowrap;
140+
font-weight: 500;
141+
background: var(--dsw-alias-state-success-tertiary);
142+
color: var(--dsw-alias-state-success-primary);
143+
}
144+
115145
.badgeMuted {
116146
border-radius: 999px;
117147
padding: 1px 8px;
@@ -169,6 +199,67 @@
169199
color: var(--dsw-alias-label-tertiary);
170200
}
171201

202+
.autofillNoticeSuccess {
203+
margin: 0;
204+
font-size: 12px;
205+
line-height: 1.5;
206+
color: var(--dsw-alias-state-success-primary);
207+
}
208+
209+
.advancedSection {
210+
border-top: none;
211+
}
212+
213+
.field + .advancedSection,
214+
.notice + .advancedSection {
215+
border-top: 1px solid var(--dsw-alias-border-l2);
216+
}
217+
218+
.advancedToggle {
219+
display: flex;
220+
align-items: center;
221+
justify-content: space-between;
222+
width: 100%;
223+
padding: 12px 0;
224+
border: none;
225+
background: none;
226+
font: inherit;
227+
font-size: 13px;
228+
font-weight: 500;
229+
line-height: 1.5;
230+
color: var(--dsw-alias-label-primary);
231+
cursor: pointer;
232+
}
233+
234+
.advancedToggle:hover {
235+
color: var(--dsw-alias-label-secondary);
236+
}
237+
238+
.advancedToggle::after {
239+
content: '';
240+
display: inline-block;
241+
width: 6px;
242+
height: 6px;
243+
border-right: 1.5px solid currentColor;
244+
border-bottom: 1.5px solid currentColor;
245+
transform: translateY(-2px) rotate(45deg);
246+
transition: transform 0.2s ease;
247+
}
248+
249+
.advancedToggle[aria-expanded='true']::after {
250+
transform: translateY(1px) rotate(-135deg);
251+
}
252+
253+
.advancedFields {
254+
display: flex;
255+
flex-direction: column;
256+
}
257+
258+
.advancedFields .field:first-child {
259+
padding-top: 0;
260+
border-top: 1px solid var(--dsw-alias-border-l2);
261+
}
262+
172263
.footer {
173264
display: flex;
174265
align-items: center;

0 commit comments

Comments
 (0)