feat: 移除管理台模型配置列表关键信息列

简化界面展示,提升安全性:
- 移除配置列表表格中的关键信息列
- 移除生效配置卡片中的关键信息展示
- 更新规格文档,移除列表页密钥掩码要求
This commit is contained in:
2026-03-30 09:50:21 +08:00
parent 9d30c5e21f
commit a67b0262d4
2 changed files with 4 additions and 10 deletions

View File

@@ -9,8 +9,8 @@
#### Scenario: 查看配置列表页
- **WHEN** 管理员进入模型配置管理页面
- **THEN** 系统展示当前生效配置卡片(包含名称、类型、关键信息
- **AND** 系统展示配置列表表格(包含名称、类型、关键信息摘要、状态、操作按钮)
- **THEN** 系统展示当前生效配置卡片(包含名称、类型)
- **AND** 系统展示配置列表表格(包含名称、类型、状态、操作按钮)
#### Scenario: 区分配置状态
- **WHEN** 配置列表中有多个配置
@@ -103,11 +103,7 @@
- **AND** 新类型自动在类型选择器和表单中生效
### Requirement: 密钥字段掩码显示
系统 SHALL 对所有敏感字段API 密钥、App Secret 等)使用掩码显示。
#### Scenario: 列表页密钥掩码
- **WHEN** 配置列表展示配置信息
- **THEN** API 密钥、App Secret 字段显示为掩码格式(如"sk-****xxxx"
系统 SHALL 在配置表单页对所有敏感字段API 密钥、App Secret 等)使用掩码显示。
#### Scenario: 表单页密钥掩码
- **WHEN** 编辑配置时表单显示已保存的密钥

View File

@@ -2,7 +2,7 @@ import { useState } from 'react';
import { useNavigate } from 'react-router-dom';
import { FiPlus } from 'react-icons/fi';
import { api } from '../../services/api.js';
import { MODEL_CONFIG_TYPES, getConfigSummary } from '../../data/configTypes.js';
import { MODEL_CONFIG_TYPES } from '../../data/configTypes.js';
import Modal from '../../components/common/Modal.jsx';
function ModelConfigsPage() {
@@ -57,7 +57,6 @@ function ModelConfigsPage() {
<tr>
<th>配置名称</th>
<th>配置类型</th>
<th>关键信息</th>
<th>状态</th>
<th className="col-actions">操作</th>
</tr>
@@ -67,7 +66,6 @@ function ModelConfigsPage() {
<tr key={config.id} className={config.isActive ? 'active-row' : ''}>
<td><strong>{config.name}</strong></td>
<td>{MODEL_CONFIG_TYPES[config.type]?.label || config.type}</td>
<td>{getConfigSummary(config)}</td>
<td>
{config.isActive ? (
<span className="status status-running">生效中</span>