fix(industry): 审计收尾 — MEDIUM + LOW 全部清零
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
M-1: Industries 创建弹窗添加 cold_start_template + pain_seed_categories M-3: industryStore console.warn → createLogger 结构化日志 B2: classify_with_industries 平局打破 + 归一化因子 3.0 文档化 S3: set_account_industries 验证移入事务内消除 TOCTOU T1: 4 个 SaaS 请求类型添加 deny_unknown_fields I3: store_trigger_experience Debug 格式 → signal_name 描述名 L-1: 删除 Accounts.tsx 死代码 editingIndustries L-3: Industries.tsx filters 类型补全 source 字段
This commit is contained in:
@@ -42,7 +42,6 @@ export default function Accounts() {
|
||||
const [modalOpen, setModalOpen] = useState(false)
|
||||
const [editingId, setEditingId] = useState<string | null>(null)
|
||||
const [searchParams, setSearchParams] = useState<Record<string, string>>({})
|
||||
const [editingIndustries, setEditingIndustries] = useState<string[]>([])
|
||||
|
||||
const { data, isLoading } = useQuery({
|
||||
queryKey: ['accounts', searchParams],
|
||||
@@ -67,7 +66,6 @@ export default function Accounts() {
|
||||
useEffect(() => {
|
||||
if (accountIndustries && editingId) {
|
||||
const ids = accountIndustries.map((item) => item.industry_id)
|
||||
setEditingIndustries(ids)
|
||||
form.setFieldValue('industry_ids', ids)
|
||||
}
|
||||
}, [accountIndustries, editingId, form])
|
||||
@@ -212,7 +210,6 @@ export default function Accounts() {
|
||||
const handleClose = () => {
|
||||
setModalOpen(false)
|
||||
setEditingId(null)
|
||||
setEditingIndustries([])
|
||||
form.resetFields()
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ function IndustryListPanel() {
|
||||
const queryClient = useQueryClient()
|
||||
const [page, setPage] = useState(1)
|
||||
const [pageSize, setPageSize] = useState(20)
|
||||
const [filters, setFilters] = useState<{ status?: string }>({})
|
||||
const [filters, setFilters] = useState<{ status?: string; source?: string }>({})
|
||||
const [editId, setEditId] = useState<string | null>(null)
|
||||
const [createOpen, setCreateOpen] = useState(false)
|
||||
|
||||
@@ -337,6 +337,12 @@ function IndustryCreateModal({ open, onClose }: {
|
||||
<Form.Item name="system_prompt" label="系统提示词">
|
||||
<TextArea rows={4} placeholder="行业专属系统提示词" />
|
||||
</Form.Item>
|
||||
<Form.Item name="cold_start_template" label="冷启动模板" extra="新用户首次对话时使用的引导模板">
|
||||
<TextArea rows={3} placeholder="如:您好!我是您的{行业}管家,可以帮您处理..." />
|
||||
</Form.Item>
|
||||
<Form.Item name="pain_seed_categories" label="痛点种子类别" extra="预置的痛点分类,用逗号或回车分隔">
|
||||
<Select mode="tags" placeholder="如:库存管理、客户服务、合规" />
|
||||
</Form.Item>
|
||||
</Form>
|
||||
</Modal>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user