From 6adfdcdd4fe0e5c35018bf0e4857c203dd24e5d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9A=E7=AB=A0=E6=B5=A9?= Date: Sat, 17 Oct 2026 16:24:00 +0800 Subject: [PATCH] =?UTF-8?q?fix(qaops):=20=E4=BF=AE=E5=A4=8D=E9=95=BF?= =?UTF-8?q?=E9=83=A8=E9=97=A8=E8=B7=AF=E5=BE=84=E6=8C=A4=E5=87=BA=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E4=B8=8E=E4=BE=9D=E6=8D=AE=E5=88=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 1 + web/src/QARegions.test.tsx | 10 ++++++++++ web/src/qaRegions.css | 6 ++++++ 3 files changed, 17 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 096638a..b066623 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Added - 新增治理侧通讯录实时桥接,复用既有周报读取能力,向源端读取真实缺失祖先以补齐部门树;不改旧周报脚本、配置或输出。私有 JSON 与受控子进程执行器拒绝不完整数据、模拟同步、公开文件和异常输出,超时清理临时人员文件;网页触发的后台同步队列及问答组织关联尚未接入。 +- 区域归属表支持长部门路径换行,避免继承全局不换行规则后将生效区域与归属依据列挤出桌面面板。 - **「问答运营 → 区域使用」区域归属配置切片**:按稳定部门 ID 搜索和勾选完整路径,预览去重归属人数,保存版本后重新读取;父部门包含子部门、子部门显式配置优先,多部门跨区域人员单独待核对。预览不写入,过期版本和不完整部门树被阻断。当前不是实时通讯录同步或使用/绩效统计验收,翻译及 AI 评估模型接入按用户要求暂缓。 - 新增治理侧组织快照与区域修订迁移、受确认保护的后台导入命令;不修改 DobotAI 原表或钉钉组织结构。 - **「问答运营 → 问答记录」首个开发切片**:在现有导航中查看 DobotAI 2.0 钉钉问答,支持半开时间范围、原问题关键词、稳定游标分页和完整详情;按整个筛选结果隐藏空列,反馈聚合不放大问答条数。外语翻译、AI 评估、人员区域映射尚未接入,不标为第一阶段完成。 diff --git a/web/src/QARegions.test.tsx b/web/src/QARegions.test.tsx index ad8e254..af92399 100644 --- a/web/src/QARegions.test.tsx +++ b/web/src/QARegions.test.tsx @@ -1,4 +1,6 @@ import { renderToStaticMarkup } from 'react-dom/server' +// @ts-expect-error The test runner provides Node; the browser bundle intentionally omits @types/node. +import { readFileSync } from 'node:fs' import { describe, expect, it, vi } from 'vitest' import { RegionMappingView } from './QARegions' import { parseOrganization } from './qaOrg' @@ -49,6 +51,14 @@ const props = { onRemoveMissing: vi.fn(), } describe('region mapping workbench', () => { + it('lets long directory paths wrap instead of inheriting the global nowrap table rule', () => { + const css = readFileSync(new URL('./qaRegions.css', import.meta.url), 'utf8') + const bodyRule = css.match(/\.qa-region-table td\s*\{([^}]+)\}/)?.[1] ?? '' + expect(bodyRule).toMatch(/white-space:\s*normal/) + expect(bodyRule).toMatch(/overflow-wrap:\s*anywhere/) + const statusRule = css.match(/\.qa-region-table td:nth-child\(4\)\s*\{([^}]+)\}/)?.[1] ?? '' + expect(statusRule).toMatch(/white-space:\s*nowrap/) + }) it('shows a dated historical roster, conflicts and no invented performance verdict', () => { const html = renderToStaticMarkup() expect(html).toContain('历史快照') diff --git a/web/src/qaRegions.css b/web/src/qaRegions.css index e121a63..acac9f8 100644 --- a/web/src/qaRegions.css +++ b/web/src/qaRegions.css @@ -64,6 +64,8 @@ .qa-region-table td { padding: 10px 12px; border-bottom: 1px solid var(--line, #d8e1eb); + white-space: normal; + overflow-wrap: anywhere; } .qa-region-table th { position: sticky; @@ -75,6 +77,10 @@ min-width: 240px; overflow-wrap: anywhere; } +.qa-region-table td:nth-child(3), +.qa-region-table td:nth-child(4) { + white-space: nowrap; +} .qa-region-table input[type='checkbox'] { width: 17px; height: 17px;