Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
427095212b |
No files matched your search
@@ -1,12 +0,0 @@
|
||||
# Native exports include intentional whitespace; preserve their original bytes.
|
||||
tests/v1_1/fixtures/native-complex/*.txt -text whitespace=-trailing-space
|
||||
tests/v1_1/fixtures/native-complex/*.kyn -text whitespace=-trailing-space
|
||||
# Copied acceptance reports retain the SHA256 of the original local artifacts.
|
||||
docs/testing/evidence/2026-11-12-r17/* -text whitespace=cr-at-eol
|
||||
docs/testing/evidence/2026-11-13-pr27/* -text whitespace=cr-at-eol
|
||||
# JUnit failure excerpts retain the original blank source lines and spaces.
|
||||
docs/testing/evidence/2026-11-13-pr27/broad-results.xml -text whitespace=cr-at-eol,-trailing-space
|
||||
docs/testing/evidence/2026-11-13-pr27/ci-f9d5e56-failure.txt -text whitespace=cr-at-eol,-trailing-space
|
||||
docs/testing/evidence/2026-11-13-pr27-followup/* -text whitespace=cr-at-eol
|
||||
# Raw fault-injection logs include original source excerpt whitespace.
|
||||
docs/testing/evidence/2026-11-13-pr27-followup/*.txt -text whitespace=cr-at-eol,-trailing-space
|
||||
@@ -1,159 +0,0 @@
|
||||
name: Core regression
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, 'codex/**']
|
||||
tags: ['v*']
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
portable-regression:
|
||||
name: Python core, intervention UI and release configuration
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
QT_QPA_PLATFORM: offscreen
|
||||
DSH_TELEMETRY_DISABLED: '1'
|
||||
PATH: /opt/ci-node/node_modules/.bin:/opt/ci-python/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Install runner Python and test dependencies
|
||||
run: |
|
||||
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
||||
[ -f "$apt_source" ] || continue
|
||||
sed -i 's|http://deb.debian.org|https://deb.debian.org|g' "$apt_source"
|
||||
done
|
||||
if ! apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update; then
|
||||
for apt_source in /etc/apt/sources.list /etc/apt/sources.list.d/*.sources; do
|
||||
[ -f "$apt_source" ] || continue
|
||||
sed -i 's|https://deb.debian.org|https://mirrors.ustc.edu.cn|g' "$apt_source"
|
||||
done
|
||||
apt-get -o Acquire::Retries=2 -o APT::Update::Error-Mode=any update
|
||||
fi
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -o Acquire::Retries=2 install -y --no-install-recommends python3 python3-venv libegl1 libopengl0 libgl1 libxkbcommon0 libdbus-1-3 libfontconfig1 libglib2.0-0 libxcb-cursor0 fonts-dejavu-core libnss3 libasound2 libxcomposite1 libxdamage1 libxrandr2 libxtst6 libgbm1 libxkbfile1 libxss1 libxshmfence1 libx11-xcb1
|
||||
python3 -m venv /opt/ci-python
|
||||
/opt/ci-python/bin/python3 -m pip install 'pytest>=8,<9' 'pytest-qt>=4.4,<5' 'PySide6>=6.7,<7' 'openpyxl>=3.1,<4'
|
||||
/opt/ci-python/bin/python3 --version
|
||||
/opt/ci-python/bin/python3 -c "from PySide6.QtWebEngineCore import QWebEnginePage; from PySide6.QtWebEngineWidgets import QWebEngineView; print('Qt WebEngine native libraries loaded')"
|
||||
- name: Install supported Node and locked offline Harness dependencies
|
||||
run: |
|
||||
# The cached Node 20 image boots this runner; Harness requires Node 24.9+.
|
||||
npm install --prefix /opt/ci-node --no-audit --no-fund node@24.11.1
|
||||
node --version
|
||||
npm ci --prefix integration/dsh --no-audit --no-fund
|
||||
- name: Read-only model availability (real Harness, no remote model calls)
|
||||
run: |
|
||||
node tools/verify_dsh_model_availability.mjs
|
||||
node --test tests/integration/test_dsh_standard_compat.mjs
|
||||
node tools/verify_dsh_incident_restart.mjs
|
||||
- name: Compile application and build helpers
|
||||
run: python3 -m compileall -q src packaging tools
|
||||
- name: Core regression (no CAD or production credentials)
|
||||
run: >-
|
||||
python3 -m pytest -q
|
||||
tests/dsh/test_core.py
|
||||
tests/dsh/test_failure_policy.py
|
||||
tests/dsh/test_decision_log.py
|
||||
tests/dsh/test_experience.py
|
||||
tests/dsh/test_issue_broker.py
|
||||
tests/dsh/test_incidents.py
|
||||
tests/dsh/test_availability.py
|
||||
tests/dsh/test_availability_harness.py
|
||||
tests/dsh/test_availability_retry.py
|
||||
tests/dsh/test_health.py
|
||||
tests/ui/test_dsh_native_menu.py
|
||||
tests/ui/test_dsh_blockers.py
|
||||
tests/ui/test_dsh_blocker_sources.py
|
||||
tests/ui/test_dsh_diagnosis_lifecycle.py
|
||||
tests/ui/test_dsh_status_indicator.py
|
||||
tests/ui/test_nonblocking_controls.py
|
||||
tests/ui/test_pr10_review_edges.py
|
||||
tests/ui/test_query_observability.py
|
||||
tests/packaging/test_dsh_runtime_staging.py
|
||||
tests/packaging/test_release_configuration.py
|
||||
tests/packaging/test_self_extracting_release.py
|
||||
tests/trial_task_center/test_bom_template_contract.py
|
||||
tests/trial_task_center/test_bom_import_review.py
|
||||
tests/v1_1/test_cad_dialogs.py
|
||||
tests/v1_1/test_lxb_blocking_recovery.py
|
||||
tests/v1_1/test_nonblocking_items.py
|
||||
tests/v1_1/test_component_scope.py
|
||||
tests/v1_1/test_deferred_problem_pass.py
|
||||
tests/v1_1/test_problem_workflow.py
|
||||
tests/v1_1/test_problem_pass_outcomes.py
|
||||
tests/v1_1/test_multi_project_regression.py
|
||||
tests/v1_1/test_worker_cleanup_confirmation.py
|
||||
tests/v1_1/test_headless_core.py
|
||||
tests/v1_1/test_nonblocking_acceptance.py
|
||||
tests/v1_1/test_nonblocking_resume.py
|
||||
tests/v1_1/test_project_session_health.py
|
||||
tests/v1_1/test_bom_actual_metadata.py
|
||||
tests/v1_1/test_manual_dialog_native.py
|
||||
tests/v1_1/test_workspace_execution.py
|
||||
tests/v1_1/test_nonblocking_bom_values.py
|
||||
tests/v1_1/test_value_readback.py
|
||||
tests/dsh/test_run_journal.py
|
||||
tests/dsh/test_incident_admission.py
|
||||
tests/dsh/test_native_runtime.py
|
||||
tests/dsh/test_impact.py
|
||||
tests/dsh/test_pr27_run_finalization.py
|
||||
tests/v1_1/test_pr27_bom_failures.py
|
||||
tests/v1_1/test_pr27_netlist_pause.py
|
||||
tests/v1_1/test_native_cli_netlist.py
|
||||
tests/v1_1/test_netlist_execution.py
|
||||
tests/v1_1/test_pr27_watchdog.py
|
||||
tests/v1_1/test_pr27_pre_dispatch_failure.py
|
||||
tests/v1_1/test_pr27_process_launch.py
|
||||
tests/ui/test_pr27_confirmation_admission.py
|
||||
tests/ui/test_dsh_ai_nonblocking.py
|
||||
tests/ui/test_dsh_ai_nonblocking_main.py
|
||||
tests/ui/test_dsh_task_lifecycle.py
|
||||
tests/ui/test_dsh_operations.py
|
||||
--junitxml=build/ci-results.xml --tb=short
|
||||
- name: Report whether regressions actually executed
|
||||
if: always()
|
||||
run: |
|
||||
summary="${GITHUB_STEP_SUMMARY:-/tmp/dsh-ci-summary}"
|
||||
if [ ! -f build/ci-results.xml ]; then
|
||||
echo 'Regression tests did not execute. Inspect checkout and dependency installation steps.' | tee "$summary"
|
||||
else
|
||||
python3 -c "import xml.etree.ElementTree as E; r=E.parse('build/ci-results.xml').getroot(); s=list(r.iter('testsuite')); print('Executed:',sum(int(x.get('tests',0)) for x in s),'Failures:',sum(int(x.get('failures',0)) for x in s),'Errors:',sum(int(x.get('errors',0)) for x in s),'Skipped:',sum(int(x.get('skipped',0)) for x in s))" | tee "$summary"
|
||||
fi
|
||||
- name: Windows release scope
|
||||
run: |
|
||||
echo 'Windows PyInstaller, Qt WebEngine startup, full runtime file hashes and extracted EXE smoke are validated on the Windows build host.'
|
||||
echo 'This Linux job does not claim Windows/CAD or live model acceptance.'
|
||||
|
||||
javascript-regression:
|
||||
name: JavaScript syntax
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: node:20-bookworm
|
||||
timeout-minutes: 10
|
||||
steps:
|
||||
- name: Checkout tested commit
|
||||
run: |
|
||||
git init .
|
||||
git remote add origin "${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}.git"
|
||||
git fetch --depth=1 origin "${GITHUB_SHA}"
|
||||
git checkout --detach FETCH_HEAD
|
||||
- name: Check runtime syntax
|
||||
run: |
|
||||
node --check integration/dsh/start.mjs
|
||||
node --check integration/dsh/task-plugin/host.mjs
|
||||
node --check integration/dsh/task-plugin/client.js
|
||||
node --check integration/dsh/model_availability.mjs
|
||||
- name: Intervention panel and bounded model views (no model or network)
|
||||
run: |
|
||||
node tools/verify_dsh_incident_panel.mjs
|
||||
node tools/verify_dsh_dock_startup.mjs
|
||||
node tools/verify_dsh_model_results.mjs
|
||||
node tools/verify_dsh_diagnosis_cancel.mjs
|
||||
@@ -18,5 +18,3 @@ __pycache__/
|
||||
coverage.xml
|
||||
/.worktrees/
|
||||
/.superpowers/
|
||||
node_modules/
|
||||
/integration/dsh/issue-bootstrap.json
|
||||
@@ -0,0 +1,11 @@
|
||||
# 项目维护约定
|
||||
|
||||
## 持续版本记录
|
||||
|
||||
- 项目的统一问题与修改记录是根目录 `版本问题与修改记录.md`。
|
||||
- 后续每次修改功能、修复问题、分析新的诊断包或发布版本,均同步更新该文件;不得只在聊天中说明。
|
||||
- 工作尚未完成时写入“未发布与文档维护”;发布时补全真实版本、日期、问题、证据、修改、验证、限制和交付信息。
|
||||
- 若改变了历史方案,保留旧记录并明确标注替代关系,同时更新“当前有效行为”。
|
||||
- 未验证的根因、版本归属和现场结果写“待核实”;不能把模拟测试、便携版自检写成全部真实 CAD 工程验收通过。
|
||||
- 纯文档维护不自动增加程序版本,不覆盖既有发布 ZIP;需要更新交付包时遵循该次任务范围。
|
||||
- `tools/package_portable.py` 会把主记录复制为包内的 `版本问题与修改记录.md`;以后打包前确保记录已同步。
|
||||
@@ -4,67 +4,27 @@
|
||||
|
||||
面向 **Windows + DxDesigner / Expedition Enterprise 7.9.5** 的器件批量替换工具。一个工程对应一个任务,可以只替换同料号下的部分位号;支持直接编辑和 Excel BOM 导入,同批工程按顺序执行。
|
||||
|
||||
本轮 BOM、Mentor 会话与 Harness 修改尚未发布,详见 [PR 开发及验收清单](docs/testing/2026-11-12-pr-checklist.md)。最新审查修复的本地启动入口为 `outputs/pr27-followup-20261113/app/DxPartReplace/启动程序.cmd`,使用同目录 `data`,候选 SHA256 为 `a96a505b1f8e…`;已验证冻结内容与正常启动退出,尚未完成 20 项实机验收。该候选复用本机不变依赖,不作为独立发行包分发。原 R17 `de35b91aaf4c…` 的记录与产物保留为历史,下方已有发行包不包含本轮修改。
|
||||
**当前本地交付版本:1.2.0-beta.31。** 从早期版本到当前的问题、修改、诊断依据、验证范围及后续更新,统一见 [版本问题与修改记录](版本问题与修改记录.md)。下面的 1.1.x 发布链接和教程属于历史资料,当前行为以该记录为准。
|
||||
|
||||
本轮验证记录见 [本地实机验收](docs/testing/2026-11-12-final-local-validation.md)、[单次与批次分步计时](docs/testing/2026-11-12-final-step-timings.md) 和 [执行、阻塞及恢复流程图](docs/user/execution-flow-2026-11-12.md)。验收按预设的成功、无需替换与失败分别判定;已知的可重试失败任务列表徽标问题在收尾清单单列。
|
||||
本分支附有 [Windows x64 离线依赖和安装说明](dependencies/windows-x64/README.md)。
|
||||
|
||||
2026-11-13 的 [PR #27 审查修复与复核](docs/testing/2026-11-13-pr27-review-fixes.md) 单列最新结果:停滞计时、执行回执、BOM 错误、网表范围与确认后状态检查已修复;新候选启动及冻结校验通过,新 20 项实机仍因 Mentor 退出超时未完成,尚未发布。
|
||||
**历史公开发布:V1.1.4 Beta 4(预发布)** · [下载便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.4-beta.4/DxPartReplace-1.1.4-beta.4.zip) · [版本说明与附件](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/tag/v1.1.4-beta.4) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
|
||||
**当前版本:V1.3.1(实机测试预发布)** · [本版变更与已知问题](docs/releases/v1.3.1.md) · [完整使用说明](docs/user/v1.1.0-project-tasks.md)
|
||||
所有发布均标记为 **Beta 预发布**。V1.1.4 Beta 1 因 BOM 导入缺少 `win32timezone` 已撤回,请使用 Beta 4;旧 Git 标签保留供回溯。升级前备份 `data`,完整更新 EXE 与 `_internal`,不要只替换 EXE。
|
||||
|
||||
V1.3.1 包含 PR #27 的原生 BOM 按需核验、Mentor 批内复用、前后网表比对、完整普通 Harness 及审查修复,沿用紫蓝双环图标和原生三栏 DSH 助手。错误触发自有 Mentor 自动回收,确认相关进程退出后才释放桌面;具体时限与恢复要求见[停止与恢复说明](docs/user/safe-stop-and-recovery.md)。
|
||||
|
||||
本地交付目录为 `outputs/releases/v1.3.1`,包含自解压 EXE、ZIP 便携包、SHA256、逐文件清单和本次构建验证报告。两种包均保留完整 Node/Harness、Qt WebEngine 和应用资源。升级前退出旧程序并备份 `data`,解压到新目录,完整保留 EXE 与 `_internal`,不要只替换 EXE。
|
||||
|
||||
**V1.3.1 下载** · [自解压 EXE](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.3.1/DxPartReplace-1.3.1.exe) · [ZIP 便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.3.1/DxPartReplace-1.3.1.zip) · [版本说明与附件](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/tag/v1.3.1)。本版 Mentor 退出超时仍待实机复核,最新 20 项 CAD 验收未完成。
|
||||
Beta 4 面向停止与资源收尾复测:普通暂停等待当前项保存核验,写入中无进度不再自动杀进程;新增明确确认的强制结束,保留中断证据与恢复入口。[本版变更和复测说明](docs/releases/v1.1.4-beta.4.md)。
|
||||
|
||||
本版提供[目标封装选择](docs/user/target-cell-selection.md):目标封装可留空,此时工具不主动覆写封装,可后续与中心库同步;需要指定时,在料号规则中读取并选择合法封装。BOM 保持原 11 列。
|
||||
|
||||
## DSH助手:在工具内使用 AI
|
||||
|
||||
本项目已将 **DSH助手** 集成到任务中心主窗口。顶部固定显示两个入口:左侧 **任务中心**、右侧 **DSH助手**,单击即可切换,无需展开菜单;助手保留 DeepSeek Harness 官方三栏界面、SVG 动画、模型选择、会话和未发送草稿。也可以使用 `Ctrl+Shift+D` 打开助手。
|
||||
|
||||
DSH助手围绕真实任务中心工作,支持:
|
||||
|
||||
- 用自然语言创建任务、修改规则、复制或归档任务;工程选择和提交仍由原生窗口确认。
|
||||
- 查询任务快照、执行预检、影响范围和实际执行历史。
|
||||
- 识别已保存的逐项 Value 策略(继承、保留、Part Label、料号或自定义);可从对话打开当前任务的原生 BOM 多文件选择流程,校验后仍需核对预览并手动保存。
|
||||
- 在原生确认后按冻结范围执行任务,支持安全暂停、原队列恢复和排期授权。
|
||||
- 顶部 **AI 自动介入** 开关默认开启并记住设置;异常、BOM 校验失败、预检阻断、资源释放问题和后台操作长期无进展时自动新建诊断对话,收集脱敏证据,按规则重试或清理自有资源并核验,未解决则转受限 Git 工单。
|
||||
- 右上角使用无外框、无常驻文字的 **AI 状态灯**:绿色待机、黄色检查或介入中、红色未配置/不可用或待人工处理;关闭 **AI 自动介入** 后显示灰色静默。悬浮可查看状态、介入原因、所属任务和当前阶段,点击进入助手,右键可取消本次介入。未配置模型或 API Key 时,仅提示状态,不自动启动诊断、复盘或工单流程,也不弹窗、锁住任务操作;仍可手动打开助手配置模型。
|
||||
- AI 等待模型、复盘、工单上报及后台查询使用独立工作通道,不锁住普通任务操作。只有实际修复及核验占用任务执行通道;执行前重新核对任务证据和所属轮次,期间有新任务、未保存编辑或现场变化则放弃旧建议,保留证据且不自动重排。在助手面板取消诊断,或右键状态灯选择 **取消本次 AI 介入**,会停止模型请求、保存本地证据并转人工接管;已进入执行的 CAD 步骤仍按原暂停/强停机制安全收尾。拒绝关闭或取消未保存计划的关闭确认时,诊断继续。诊断与复盘从原生会话准备好后共享等待预算,默认 180 秒,随模型超时设置调整为 90–300 秒;运行时启动和会话创建另有最多 300 秒的等待上限,不挤占分析时间。
|
||||
- 后台读取异常先在约 200 毫秒后复查,连续失败才介入;同一持续阻塞不会周期性重复建会话,关闭再开启自动介入可主动重新诊断。面板分别显示清理次数及独立核验结果;资源自行释放显示“自行解除”,不会计作 AI 修复。资源清理使用独立控制,不显示 CAD 暂停或强停按钮。
|
||||
- 模型配置的后台检查不会取消健康的在途诊断,也不会把“配置恢复”当成用户重新开启开关。同一异常保持原事件编号,完成后不因配置状态波动重新发诊断;只恢复此前尚未开始的待处理项。仅新异常、用户重新导入或主动关闭再开启允许再次介入。
|
||||
- 本地模型配置检查仅在超时时补试一次,每次最多 3 秒;连续超时显示检查状态,在途诊断和事件去重保持有效。配置检查不请求远端模型,检查中或临时检查失败时,普通任务的原始错误仍会正常反馈。
|
||||
- 在右侧任务监管中查看运行、影响、排期、经验、工单和用量;审计损坏、证据缺失和未知计数会明确显示。
|
||||
|
||||
普通对话使用官方 Standard Harness,提供 PowerShell/Shell、工作区文件写入与编辑、goal、jobs、子智能体和原生上下文压缩,默认权限策略为 `workspace-write`。启动前设置 `DSH_PERMISSION_MODE=read-only` 并重启,可切换为官方只读策略。任务中心的任务工具仍经过原生确认与执行证据核验;通用 Shell 的实际能力不能用这些任务工具的门禁来描述。本版新建的自动异常诊断及复盘使用独立会话,只能读取绑定事件快照,限制由运行时工具守卫执行。关闭 **AI 自动介入** 停止自动诊断,普通对话的工具能力由其 Harness 权限策略控制。未配置模型时仍可使用任务监管和本地恢复功能。
|
||||
|
||||
首次接入打开 **工具设置 → 模型 → 添加模型提供商 → 自定义模型 API**,填写 API 地址、协议和密钥,点击 **获取可用模型** 并选择需要的模型,也可手动填写模型 ID。保存后在输入框下方选择模型。设置保存在任务中心数据目录的专用 Harness profile,重启会保留;主工具预配置的密钥继续由 Windows DPAPI 保护,模型设置页新增的密钥使用 Harness 本地凭据存储。开发环境也可通过 `DSH_API_BASE`、`DSH_MODEL`、`DSH_API_KEY` 临时提供配置。不要把数据目录、API key 或 Git 凭据提交到 Git。
|
||||
|
||||
对话输入框的 **+ → 文件** 可上传文本、ZIP 等文件;也可通过官方工作区入口选择本地文件夹,或直接提供路径让助手读取、搜索。ZIP 会解压到新的文件夹,返回真实路径后继续分析内容,不覆盖已有文件。启动展示直接使用 Harness 官方加载动画。
|
||||
|
||||
详细的能力边界、异常介入、证据链、排期和工单说明见 [DSH助手使用与监管说明](docs/user/dsh-ai-supervision.md)。源码环境可用下面的命令检查运行时门禁:
|
||||
|
||||
```powershell
|
||||
$env:PYTHONPATH = 'src'
|
||||
python -X utf8 -m dx_productivity.dsh --doctor
|
||||
node tools/verify_dsh_runtime.mjs
|
||||
```
|
||||
|
||||
## 图文教程
|
||||
|
||||
当前开发工作区已调整 BOM 流程:导入先保存待核验清单,确认执行后逐工程使用原生 CLI 核验,读取失败不回退 CAD;替换前后从固定副本异步导出并比对连接网表。见 [新的 BOM 流程说明](docs/user/bom-native-workflow.md) 和 [当前执行、阻塞与恢复流程图](docs/user/execution-flow-2026-11-12.md)。下方旧版截图仍用于说明控件位置,旧发行 EXE 不包含尚未发布的源码修改。
|
||||
|
||||
按下面 **13 步**,完成“创建任务 → 填 BOM → 导入校验 → 保存计划 → 替换 → 查看结果”。本例有两个工程 `Audio_D2128`、`Audio_T605A`,各自只替换 `RV05`,保留同料号下的 `RV11`。
|
||||
|
||||
截图来自真实窗口:起始页为 V1.1.3,后续操作图取自已验收的 V1.1.2 业务流程,操作位置相同。点击图片可以放大查看;BOM 填写图为示意。
|
||||
|
||||
### 第 1 步:解压并打开应用
|
||||
|
||||
推荐下载上方自解压 EXE,双击后选择新的解压目录,完成后运行目录内的 DxPartReplace.exe。自解压引擎已内置,无需另外安装 7-Zip,也无需通过 Windows 资源管理器解压。
|
||||
|
||||
[下载 V1.2.2 便携包](https://git.simgreek.com/Skyworth_Digital_Hardware/dxdesigner-part-replacement/releases/download/v1.2.2/DxPartReplace-1.2.2.zip),**完整解压**,双击 `DxPartReplace.exe`。保留它与 `_internal` 的相对位置,无需安装 Python;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
[下载 V1.1.4 Beta 4 便携包](https://git.simgreek.com/simgreek/dxdesigner-part-replacement/releases/download/v1.1.4-beta.4/DxPartReplace-1.1.4-beta.4.zip),**完整解压**,双击 `DxPartReplace.exe`。保留它与 `_internal` 的相对位置,无需安装 Python;本机需要可用的 DxDesigner、许可证和中央库。
|
||||
|
||||
打开后看到下图主窗口。首次使用请准备完整的工程副本,执行前保存并关闭待处理工程。
|
||||
|
||||
@@ -121,7 +81,7 @@ node tools/verify_dsh_runtime.mjs
|
||||
|
||||
返回应用,在 **本批位号计划** 点击 **导入 BOM**,选择刚保存的 Excel,等待校验结果。
|
||||
|
||||
当前开发版导入先核对表格和工程归属,保存待核验请求;确认执行后,逐工程用原生 CLI 查询需要的器件,读取失败不回退 CAD。**导入不会执行替换。** 下图为旧发行版的控件示例,当前流程以导入报告和执行确认展示的范围为准。
|
||||
导入会检查表格和工程归属,并匹配相关工程的位号。缺少库存时优先调用原生 CLI 采集,不可用时回退到后台 CAD 只读采集。**导入不会执行替换,也不会直接保存计划。**
|
||||
|
||||

|
||||
|
||||
@@ -177,7 +137,7 @@ node tools/verify_dsh_runtime.mjs
|
||||
|
||||
运行期间可以在主桌面查看其他文件,请勿打开或修改本次正在处理的同一工程。需要暂停时,点击 **完成当前项后暂停**,等待当前步骤安全收尾。
|
||||
|
||||
普通暂停等待当前项到达安全边界;执行错误或持续停滞会先写入保护记录,再自动回收自有 Mentor。也可手动选择 **强制结束…**;结果不确定时先核验恢复,不能直接重复替换。详见[停止、强制结束与恢复](docs/user/safe-stop-and-recovery.md)。
|
||||
Beta 4 在保存或核验尚未确认时保留应用等待,可先 **导出诊断包**。只有明确接受中断后需要核验时,才选择 **强制结束…**;之后先核验恢复,不能直接重复替换。详见[停止、强制结束与恢复](docs/user/safe-stop-and-recovery.md)。
|
||||
|
||||
**完成标志:** 任务显示已完成,底部提示本批执行结束。还要打开结果核对,不能只看进度条。
|
||||
|
||||
@@ -242,8 +202,6 @@ DxPartReplace/
|
||||
|
||||
## 验证范围与已知限制
|
||||
|
||||
历史 V1.3.0 本地包的 1358 项回归、图标、版本资源及 66,805 个文件校验记录见 [V1.3.0 构建记录](docs/releases/v1.3.0-build.md),不作为 V1.3.1 的验收结果。V1.3.1 的实际构建验证记录随 Release 附件提供;本版未宣称完成真实 CAD 20 项验收。官方 Harness 前端保留自身的预览版标记,产物未做代码签名。
|
||||
|
||||
V1.1.4 Beta 4 沿用批次后台资源管理:一次 BOM 导入或顺序执行共用一个私有桌面,CAD 按需启动并在同批工程间复用,批次结束统一退出。若提示 **资源释放待处理**,已保存核验的结果保留,请点击 **重新清理资源**;该操作只清理后台资源,不会再次替换。旧的工程保护锁仍按“核验并恢复”处理。设计、异常边界与实机结果见[批次运行时验收记录](docs/testing/2026-10-21-batch-private-runtime.md)。
|
||||
|
||||
资源释放会追加日志:在 **替换结果 / 日志 → 完整日志** 查看本批开始释放、释放成功/失败及重新清理的结果。独立文件位于 `data/batch-resources/<批次ID>/resource-release.log`,记录批次、桌面、CAD PID、退出码、释放耗时、句柄关闭和桌面消失的分别确认,以及失败原因;同时保留 `session.json` 的原始释放证明。重启后重新检查也会追加记录,不覆盖原失败日志。
|
||||
@@ -273,6 +231,3 @@ py -3.12 -m venv .venv
|
||||
- [历史流程和独立 CLI 说明](docs/user/trial-task-center.md)
|
||||
- [CLI 与原生批处理集成](docs/user/part-replacement.md)
|
||||
- [V1.1.3 版本说明](docs/releases/v1.1.3.md)
|
||||
- [V1.3.1 实机测试版说明](docs/releases/v1.3.1.md)
|
||||
- [V1.3.0 版本说明](docs/releases/v1.3.0.md)
|
||||
- [V1.3.0 构建记录与校验值](docs/releases/v1.3.0-build.md)
|
||||
@@ -0,0 +1,16 @@
|
||||
# beta.31 Windows x64 离线依赖
|
||||
|
||||
`wheels/` 收录 Python 3.12 x64 使用的运行、测试和打包依赖。`requirements.lock` 固定每个包的版本和 SHA256。运行库版本与 beta.31 便携包的第三方版本清单一致。
|
||||
|
||||
安装 Python 3.12 x64 后,从仓库根目录执行以下 PowerShell 命令。
|
||||
|
||||
```powershell
|
||||
py -3.12 -m venv .venv
|
||||
.\.venv\Scripts\python.exe -m pip install --no-index --find-links dependencies/windows-x64/wheels --require-hashes -r dependencies/windows-x64/requirements.lock
|
||||
.\.venv\Scripts\python.exe -m pip install --no-index --no-build-isolation --no-deps -e .
|
||||
.\.venv\Scripts\python.exe -m pip check
|
||||
```
|
||||
|
||||
打包入口为 `packaging/Build-DxPartReplace.ps1`。真实 CAD 操作需要本机安装 DxDesigner、有效许可证及工程使用的器件库。
|
||||
|
||||
核对基准为 `DxPartReplace-1.2.0-beta.31-Windows-x64.zip`,SHA256 为 `7f0fc33a9c3e83e647eeb8f29641ae04dc9aa2895b923f91884f499d157b33f6`。已逐一核对包内 103 个应用模块、程序入口及两份 VBS 脚本与本分支导入的源码。
|
||||
@@ -0,0 +1,29 @@
|
||||
# Windows x64, CPython 3.12. Runtime, test and build dependencies.
|
||||
altgraph==0.17.5 --hash=sha256:f3a22400bce1b0c701683820ac4f3b159cd301acab067c51c653e06961600597
|
||||
build==1.6.1 --hash=sha256:ecd351a4be9d35a9eaaba244a7687143c9c7d4aea6ac964e7e7ddab20cbcf4e7
|
||||
colorama==0.4.6 --hash=sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6
|
||||
comtypes==1.4.17 --hash=sha256:4e0a221dde2c589b82977bed802efd71cd5eb67a380347b732e02735e597f586
|
||||
coverage==7.17.0 --hash=sha256:88a1a9fb0075b83389dd9b403bb3fce976031b3c2aa0e05e3e57143cf639de69
|
||||
et_xmlfile==2.0.0 --hash=sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa
|
||||
iniconfig==2.3.1 --hash=sha256:9121e2c1fdb355232495be3194c8dfe87ccc2d5dee45947b78e68f499790d7a7
|
||||
openpyxl==3.1.5 --hash=sha256:5282c12b107bffeef825f4617dc029afaf41d0ea60823bbb665ef3079dc79de2
|
||||
packaging==26.3 --hash=sha256:d7193f7c8e4e93f444fde0262bf90af30e16fa0ad0ad44cb553c87339b23cd1c
|
||||
pefile==2024.8.26 --hash=sha256:76f8b485dcd3b1bb8166f1128d395fa3d87af26360c2358fb75b80019b957c6f
|
||||
pillow==12.3.0 --hash=sha256:a2b55dd6b2a4c4b7d87ffa56bdb33fdc5fdb9a462173861a7bc097f17d91cb09
|
||||
pluggy==1.7.0 --hash=sha256:7dd7b0d8832ba3cb632c306926ded123429211b83641b35dc5c41ad2d34f9bec
|
||||
Pygments==2.21.0 --hash=sha256:2363c69b61c4a97c838da3b130dcd6468f4848992b21a82f2a63ec34377137d9
|
||||
pyinstaller==6.22.3 --hash=sha256:500bd58c7bf7e584a8435adccbd763a0b918d5c12b08d74ff50fd79b2915458b
|
||||
pyinstaller-hooks-contrib==2026.9 --hash=sha256:fb3e67dd64122561724c48ad0366ac9e8c16e638b63bf7d85de03bf3fdbf06c3
|
||||
pyproject_hooks==1.3.3 --hash=sha256:5fc53fdac9f7bd63fbcdc868fb5f90b4784d78a53a3d3388cd738b807441a20b
|
||||
PySide6_Essentials==6.8.3 --hash=sha256:3c0fae5550aff69f2166f46476c36e0ef56ce73d84829eac4559770b0c034b07
|
||||
pytest==8.4.2 --hash=sha256:872f880de3fc3a5bdc88a11b39c9710c3497a547cfa9320bc3c5e62fbf272e79
|
||||
pytest-cov==6.3.0 --hash=sha256:440db28156d2468cafc0415b4f8e50856a0d11faefa38f30906048fe490f1749
|
||||
pytest-qt==4.5.0 --hash=sha256:ed21ea9b861247f7d18090a26bfbda8fb51d7a8a7b6f776157426ff2ccf26eff
|
||||
pywin32==312 --hash=sha256:b457f6d628a47e8a7346ce22acb7e1a46a4a78b52e1d17e1af56871bd19a93bc
|
||||
pywin32-ctypes==0.2.3 --hash=sha256:8a1513379d709975552d202d942d9837758905c8d01eb82b8bcc30918929e7b8
|
||||
pywinauto==0.6.9 --hash=sha256:5924b3072864a1d730c5546bbeb17cf4063ba518b618dbc5e43c18276c7c9356
|
||||
setuptools==84.2.1 --hash=sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2
|
||||
shiboken6==6.8.3 --hash=sha256:bca3a94513ce9242f7d4bbdca902072a1631888e0aa3a8711a52cc5dbe93588f
|
||||
six==1.17.0 --hash=sha256:4721f391ed90541fddacab5acf947aa0d3dc7d27b2e1e8eda2be8970586c3274
|
||||
typing_extensions==4.16.0 --hash=sha256:481caa481374e813c1b176ada14e97f1f67a4539ce9cfeb3f350d78d6370c2e8
|
||||
wheel==0.48.0 --hash=sha256:3217dcc807155e45db462d7ef2431f5ddda0d7273b700d05a67b271ceb1287ab
|
||||
@@ -1,18 +0,0 @@
|
||||
# PR #17 提供方迁移修复
|
||||
|
||||
目标:修复 PR #17 评论 #168 的旧地址与新密钥错配,保留原生自定义提供方及其独立凭据。
|
||||
|
||||
设计:`dx` 且引用启动环境 `DSH_API_KEY` 的配置归主工具管理,每次启动从当前主工具配置完整刷新;独立凭据的提供方保留。Harness 的插件 config 整块替换,因此用户 providers 存在时须同时纳入当前主工具提供方。迁移旧生成配置时,生成的 dx 默认模型回到当前主工具默认值;原生用户选定的有效 dx 模型和自定义提供方默认模型继续保留。没有主工具配置时清除旧应用管理的路由与默认选择。修改前保存原文件备份,重复初始化不重复改写。
|
||||
|
||||
凭据来源补充:上游本地保存的引用优先于环境变量。显式 dx 使用本地保存的 DSH_API_KEY 时,整条路由和密钥作为原生用户覆盖保留。启用了主工具模型、却只有孤立本地密钥时拒绝启动,不从历史 policy 猜测地址;没有主工具模型时不阻断其他独立提供方。首次正常启动即在原生用户配置中物化完整的应用 dx,确保此后模型页仅修改密钥也能保留它所属的地址和模型。配置准备不修改凭据文件,解析错误不包含密钥原文。
|
||||
|
||||
绑定证明以 Harness 真实 composition 为准,保留 name assertion / insert 语义,拒绝凭据、模型适配器和默认模型的重复 ID。从有效 credentials 配置解析实际文件路径。启动前确认最终应用路由与当前配置一致;桌面接入前再次核对实际凭据来源和仅在内存中的密钥摘要,避免环境与文件来源互换。
|
||||
|
||||
不采用只删除旧 dx 的方案:用户的 providers 整块覆盖会遮住新的应用提供方。不采用保留旧地址并换密钥的方案:会破坏凭据绑定。
|
||||
|
||||
执行步骤:
|
||||
|
||||
- [x] 新增真实 Harness/本机 HTTP 回归,覆盖旧 overlay、更换提供方、已有迁移结果、自定义提供方/默认模型、重复启动及主工具配置清除;先确认当前代码失败。
|
||||
- [x] 在启动配置准备阶段按来源刷新应用提供方,保留其他原生配置及凭据文件。
|
||||
- [x] 跑 HTTP 回归、现有 runtime/profile 检查、Python 回归和实际 Qt 模型设置点击;未复现点击失败,保留原脚本。
|
||||
- [x] 更新验收记录与 PR 描述,检查 diff 和秘密泄露后提交、推送到现有 PR;不合并。
|
||||
@@ -0,0 +1,11 @@
|
||||
# DxPartReplace 1.2.0-beta.10
|
||||
|
||||
- 替换结果及 Excel 导出增加原 Value / 实际回读 Value。原值来自替换前快照,实际值在原有属性核验后读取;保存重开核验后重新记录实际值。按 job_id / 返回状态关联并立即保存在事件日志,避免下一个规则覆盖证据。旧历史缺失数据明确标注,不推算实际值。
|
||||
- 左侧工程列表分为正在替换、未完成、已完成,三组独立折叠并记忆偏好;使用蓝色、浅橙色、绿色背景,损坏/校验失败工程额外标红。只将真实活动工程归入正在替换;旧轮次保留在历史。
|
||||
- 按用户要求:损坏/无法读取的工程关闭读取会话后跳过,不修复、不重复尝试打开。只读采集取消、CAD 启动和无进展等待均有界;在确认资源退出后继续后面的工程。
|
||||
- 旧版强制关闭留下的只读监督进程可在新导入前回收,必须同时核验旧主窗口已退出、监督进程 PID 和创建时间吻合、操作属于只读白名单。写入过程保护和其他 CAD 进程不受此规则影响。
|
||||
- 新增“停止当前工程”,外层结束本次自有进程而不等待 COM,标红“已停止 / 结果待核验”。界面批量调度按工程隔离监督进程,保护当前工程后停止本轮;尚未执行的工程可另行继续。原有 Replace Part、属性恢复、保存和核验逻辑不变。安全暂停继续等待当前项收尾。
|
||||
|
||||
升级时保留完整 data,与新 EXE 和 _internal 配套使用。修复的是采集、取消和调度流程,不修复工程 iCDB 数据库。
|
||||
|
||||
验证及边界详见 docs/superpowers/plans/2026-10-29-values-and-project-groups.md。
|
||||
@@ -0,0 +1,13 @@
|
||||
# DxPartReplace 1.2.0-beta.11
|
||||
|
||||
本版增加读取和解析的诊断记录,用于定位 UID 报告格式、CAD 启动、工程打开及器件采集中的具体问题。保持所有解析接受条件、UID 校验、原生替换、Value/NC、取消和资源释放策略不变。
|
||||
|
||||
- `application.log` 增加受监督只读操作的进度、校验返回的通过/失败/未核对行数,以及最多 100 条失败行的工程、Excel 行号和原因。明确区分“调用返回”和“校验通过”。
|
||||
- 每次原生清单/后台 CAD 读取的证据目录增加 `read-trace.jsonl` 和 `read-state.json`,记录 UTC 时间、进程、工程/任务标识、解析阶段和退出结果。后台工作进程每 5 秒记录等待状态、无进展秒数、计数和是否请求取消;不模拟进度。
|
||||
- 原生 UID 错误增加报告文件名、行号、UID 原文和字符编码、附近报告片段;同时保留有界的正常器件标识样例。可区分大写 I、小写 l、数字 1 及隐藏字符;不会自动改写 UID。
|
||||
- 诊断包新增上述记录及现有原生采集元数据、工作进程状态/输出、读取会话释放记录;优先导出近期读取记录。继续执行容量限制和用户路径/凭证脱敏,不导出完整原生报告、BOM、数据库或工程。
|
||||
- 所有新增追踪写入均为尽力记录。诊断存储不可写时,不改变业务结果或跳过资源清理。
|
||||
|
||||
使用:升级后重新导入有问题的清单,出现等待或失败时点击“诊断包”,发送生成的完整 ZIP。仅发送 application.log 无法包含详细报告片段。新版本不能补录旧版已经发生的解析过程。
|
||||
|
||||
便携版已包含运行依赖;仍需本机安装可用的 DxDesigner。升级保留完整 data,并配套使用新 EXE 和 _internal。
|
||||
@@ -0,0 +1,7 @@
|
||||
# DxPartReplace 1.2.0-beta.12
|
||||
|
||||
- 诊断包 `DxPartReplace-诊断-20261030-112928` 显示:工程实际已打开;原生展开报告中的 `POWER_IN`,符号 `in.1` 且没有位号,被误判为缺少 UID 的物料。随后 CAD 采集又因为某对象 UID 或位号为空而停止。该诊断没有记录第二个对象的字段,因此不能断定它就是 POWER_IN,也不能由此认定工程损坏。
|
||||
- 原生解析只排除明确的 POWER_IN/in.1、POWER_OUT/out.1 无位号命名端口,要求符号类型单一、两份报告端口数量一致;其他不明对象继续执行原有安全检查和 CAD 回退。
|
||||
- CAD 采集按 BOM 位号匹配:无位号对象无法作为替换目标,跳过并记录;可定位的器件仍必须具有 UID。保留全部有位号器件,继续检测不同料号下重复位号。跳过对象的 UID、料号及图页写入日志,最多记录 20 条并显示总数。诊断包现在包含相关运行日志。
|
||||
- 真正的“有位号但缺 UID”单独报告器件身份不完整,不再直接断言工程损坏。替换、核验及 Value/NC 规则不变。
|
||||
- 本版按诊断证据构造报告、使用实际 Windows Script Host 运行模拟 CAD 的真实采集脚本,并执行回归及便携版启动检查。未对真实用户工程进行替换验收。
|
||||
@@ -0,0 +1,10 @@
|
||||
# DxPartReplace 1.2.0-beta.13
|
||||
|
||||
- 排查诊断包 `20261030-132517`:`LDO_S2032_SOT23_1V5` 两次通过后台 CAD 采集,随后工程文件指纹不可用;第二次快照读取 `database/icdb.dat` 时返回拒绝访问。当时同一自有只读 CAD 会话仍存活,但记录不足以证明具体占用者。
|
||||
- 当采集后完整指纹无法读取,仅在当前自有只读 CAD 的工程及工作进程已经通过同一工程和会话检查点确认关闭时,释放本次会话后重新读取完整指纹。设计文件变化仍不能通过;仅数据库会话数据变化仍需两次相同的器件清单。资源释放失败立即停止。若确认释放后仍无法核验,报告并跳过该工程,其他工程可以继续。
|
||||
- 原生清单按 `in.1` / `out.1` 类型识别无位号命名端口,如 `POWER_EN`,并保留两份报告的计数核对;不明、重复或不一致的符号仍回退到 CAD 验证。
|
||||
- 端口名称不限制为某个 CBB 或某个器件,可包含中文及常见标点;CAD 回退对无位号对象也采用通用规则。`20261030-134255` 诊断包中,BOB_XPON、CA_CARD_HIGH 等也出现了工程指纹校验失败;由于日志遗漏,不能断定各工程的具体占用原因相同。
|
||||
- Value 识别增加 `_NC`、`_nc`。旧 Value 含标识时,以新 Part Label 加 `/NC`;新值已有任一有效标识不重复,Part Label 不存在时保留旧 Value。`NC_OPTION`、`_NCM` 等较长文本不会误判。
|
||||
- 诊断包优先收集最近任务、后台记录及主日志的有界尾部;文件数与总大小仍有限制,继续脱敏并排除原始工程及数据库。
|
||||
|
||||
升级保留整个 `data`,配套使用 EXE 与 `_internal`。自动测试使用模拟工程和 Windows Script Host;本次未修改真实 CAD 工程,请在目标电脑先重新导入并核对实际结果。
|
||||
@@ -0,0 +1,14 @@
|
||||
# DxPartReplace 1.2.0-beta.9
|
||||
|
||||
修复强制退出后 CBB 导入被旧后台会话记录长期阻塞的问题。
|
||||
|
||||
- 导入/采集/执行前,在独占批次锁内自动复核已退出进程和资源记录,归并中断的监督记录;不重放旧请求。
|
||||
- 主窗口退出时,后台的人工核验等待可在持久保存中断保护后退出收尾,避免等待已不存在的主窗口。
|
||||
- 已退出监督进程、已退出 CAD/工作进程和空私有桌面的联合证据允许回收残留桌面对象;未知或仍存活的资源保持阻断。
|
||||
- 手动“检查后台会话”不再启动另一个清理监督进程;仍有待处理资源时明确提示,不再一律报告成功。
|
||||
- 保留全部中断写入保护、已保存执行结果和历史数据;原生替换和 Value/NC 规则未修改。
|
||||
- 白色界面优化工程名称/次要信息、导航选中态、状态标记、卡片间距和简短错误提示;器件明细保持主要空间,进度仍可折叠。
|
||||
|
||||
升级:关闭旧版,保存并保留完整 data,将新包 EXE 和 _internal 配套更新。若旧版后台已卡住,先保存其他 CAD 工程并重启一次电脑再使用新版。不要删除保护记录绕过核验。此更新处理软件恢复,不修复已损坏的工程 iCDB 数据库。
|
||||
|
||||
验证记录见 2026-10-29 interrupted-import 实施计划。进程级验证仅使用临时目录、真实 Windows 监督进程和模拟业务,没有打开或修改用户 CAD 工程。
|
||||
@@ -1,12 +0,0 @@
|
||||
# V1.2.1
|
||||
|
||||
本版合并 PR #14 的 DSH 启动错误提示,并提供完整 Windows 便携运行包。
|
||||
|
||||
- 包含整个已安装的 DSH Node 依赖目录、Node 可执行文件、官方前端、任务插件、Qt WebEngine 运行库和全部 UI 图标。
|
||||
- 按维护者的部署要求保留 issue reporter 配置;模型 API 密钥及个人任务数据不随包分发。
|
||||
- 应用标题、Python 项目元数据和 Windows 产品版本统一为 1.2.1。
|
||||
- 新增 Gitea Actions 回归,覆盖平台无关核心逻辑与发行配置。Windows 冻结程序另在构建机验收。
|
||||
|
||||
完整解压 `DxPartReplace-1.2.1.zip`,运行目录内的 `DxPartReplace.exe`。请保留 `_internal` 的完整目录结构,升级前备份旧版 `data`。
|
||||
|
||||
旧版在本版通过验证并公开后转为草稿下架,历史标签保留。运行和云端验证的实际结果见发行附件中的 build-validation.json。
|
||||
@@ -1,7 +0,0 @@
|
||||
# V1.2.2
|
||||
|
||||
本版本合并 PR15 的操作历史与安全续跑改进,并提供带内置 7-Zip 解压引擎的 Windows 自解压包。
|
||||
|
||||
下载 `DxPartReplace-1.2.2.exe` 可使用自解压界面选择目标目录;`DxPartReplace-1.2.2.zip` 作为同内容回退包。两种包都包含完整的 `DxPartReplace.exe`、`_internal`、DSH Node 运行时、Qt WebEngine 依赖和资源文件。
|
||||
|
||||
解压后请保留 `DxPartReplace.exe` 与 `_internal` 的相对位置。本机仍需可用的 DxDesigner、许可证和中央库。沿用旧任务前先安全退出旧版本并备份 `data`,不要同时使用不同版本打开同一数据目录。
|
||||
@@ -1,30 +0,0 @@
|
||||
# v1.3.0 本地构建记录
|
||||
|
||||
2026-11-09 从 main `4f8fbd78062b04203c106efb2fad476a5d6dbc82` 准备独立发行工作区,仅带入批准的紫蓝双环图标、1.3.0 版本元数据及发行说明。2026-11-10 整理并提交发行准备源码。
|
||||
|
||||
版本同步到 Python 包、应用显示版本和 Windows PE 资源;正式版标记为 0。图标以 1024×1024 `app-master.png` 为源,导出运行时 PNG、文档图标及 16/20/24/32/40/48/64/96/128/256 像素 ICO。
|
||||
|
||||
## 验证结果
|
||||
|
||||
- 现有 Windows 发行脚本完整回归:1358 passed,1 条 COM 线程模式提示,无失败。
|
||||
- 打包配置与版本检查:8 passed;随后显式指定官方 7-Zip 工具运行真实自解压场景,1 passed。
|
||||
- 冻结主程序及自解压 EXE 的 Windows 版本资源均为 1.3.0 / 1.3.0.0,所有语言资源已更新;10 档图标像素与批准的 ICO 一致。
|
||||
- 冻结监督进程、进程身份识别、自有后台资源释放和正常退出检查通过;从最终包解出的程序再次通过相同检查。
|
||||
- 实际 UI 操作验证原生 Harness 三栏界面、SVG 动画、工具设置、自定义模型入口、未发送草稿和页面切换保留;未配置 Key,未发送模型请求,所有自有子进程正常退出。
|
||||
- 实际运行最终自解压 EXE,66,805 个文件与逐文件清单的 SHA256 完全一致;ZIP 每个成员的 CRC 与 SHA256 通过。该机器实测解压约 306.5 秒。
|
||||
- 交付副本复制后再次核对产物 SHA256,结果一致;安装包不包含用户数据目录。
|
||||
|
||||
## 产物
|
||||
|
||||
| 文件 | 字节数 | SHA256 |
|
||||
| --- | ---: | --- |
|
||||
| `DxPartReplace-1.3.0.exe` | 357640754 | `a179ae3b003d73e7aa9fb2ffc20b76c45cc571a072dc438200bdffd64aa0db1d` |
|
||||
| `DxPartReplace-1.3.0.zip` | 504669931 | `0c3fa4599f7989da7c14d14c70cb04bbcdac2bee1cebb07d2f3325462484fb47` |
|
||||
|
||||
本地交付目录为 `outputs/releases/v1.3.0`,包含安装包、校验文件、逐文件清单、验收报告和界面截图。大型发行二进制不加入 Git 源码提交。
|
||||
|
||||
自解压包使用官方 7-Zip 解压器副本,先替换图标和版本资源,再附加压缩数据;原始安装的 7-Zip 未修改。完整 Node/Harness 与 Qt WebEngine 运行时保留。
|
||||
|
||||
## 范围
|
||||
|
||||
本地包未上传,未创建远端 Release 或 Git 标签,未做代码签名。没有执行真实模型请求、远端测试工单或真实用户 CAD 工程替换。官方 Harness 前端保留自身的预览版标记。源码提交仅补充发行说明,不改变已验收包中的应用代码或图标。
|
||||
@@ -1,13 +0,0 @@
|
||||
# v1.3.0
|
||||
|
||||
以 main `4f8fbd7` 为基础,统一最新紫蓝双环图标,版本信息更新为 1.3.0。发行候选包已完成本地构建与核验,源码发布准备通过 PR 提交;远端 Release 与 Git 标签尚未创建。
|
||||
|
||||
本版包含原生三栏 DSH 助手、自动异常介入与核验、任务创建及多文件 BOM 交接、逐项 Value 策略、按单器件隔离失败及安全恢复。AI 等待与后台查询不占普通任务执行通道;同一持续异常去重,执行前重新核对授权、任务轮次及现场。状态灯以纯圆点显示,悬浮可看状态与原因。配置检查超时最多补试一次,不重建已完成事件。
|
||||
|
||||
交付自解压 EXE、便携 ZIP、SHA256 与逐文件清单。两种包均包含完整 Node/Harness、Qt WebEngine 和应用资源,内容一致。
|
||||
|
||||
升级前退出旧程序并备份 `data`;先解压到新目录,再按需迁移数据。保留主程序和 `_internal` 的相对位置,不只替换单个 EXE,也不要让新旧程序同时使用同一数据目录。新安装需要自行配置 AI 模型及 Key;本机仍需 DxDesigner EE 7.9.5、许可证和中央库才能执行 CAD 操作。
|
||||
|
||||
发行验证以随包的本地验收报告为准。打包和界面启动检查不等于已对真实用户工程完成替换,也不证明远端模型网络连接可用。
|
||||
|
||||
本地构建结果与产物校验值见 [v1.3.0 构建记录](v1.3.0-build.md)。
|
||||
@@ -1,19 +0,0 @@
|
||||
# v1.3.1 实机测试版
|
||||
|
||||
本版包含 PR #27 的 BOM 按需原生核验、Mentor 批内复用、前后固定副本网表比对,以及官方 Standard Harness 的完整普通会话能力。补齐执行恢复与重试失败的持久收尾、心跳停滞判断、BOM 原始错误保留、网表原子写入和自动诊断会话重启后的快照限制。
|
||||
|
||||
本次复审后的调整仅清理无用 import、统一版本标识并修正用户文档。错误触发的 Mentor 自动回收保持原设计:先持久化不确定记录,再清理自有进程,确认退出后释放桌面。默认停滞阈值为 150 秒请求停止、300 秒等待安全边界、约 330 秒仍无业务进展进入失败回收;业务进展重新计时,心跳不重新计时。详见 [停止与恢复说明](../user/safe-stop-and-recovery.md)。
|
||||
|
||||
交付自解压 EXE、便携 ZIP、SHA256、逐文件清单和本次构建验证报告,两种包均包含完整 Node/Harness、Qt WebEngine 和应用资源。普通会话默认 `workspace-write`,支持 Shell、文件编辑、goal、jobs 和子智能体;自动异常诊断只能读取绑定事件快照。
|
||||
|
||||
## 升级与测试
|
||||
|
||||
退出旧程序,备份原 `data`,将新版本解压到新目录。完整保留 EXE 与 `_internal`,不要只覆盖单个 EXE,也不要让新旧程序同时使用同一数据目录。首次验证请使用工程副本;需要 DxDesigner EE 7.9.5、许可证和可用中央库。新目录通过“启动程序.cmd”启动,数据保存在该目录的 `data`。
|
||||
|
||||
建议依次检查启动、BOM 导入、单项替换、暂停/恢复、批内复用和批次结束释放;若出现退出异常,保留任务轮次、日志与诊断包。已保存核验项不要重复替换,结果不确定项先使用“核验并恢复”。
|
||||
|
||||
## 已知待验证问题
|
||||
|
||||
上轮冻结 EXE 实机批次出现 Mentor quit helper 超过 20 秒并触发回收,20 项验收未完成。本版未宣称修复该超时,也没有通过放大超时或解除不确定保护来绕过故障。资源释放不代表回滚,`Close(False)` 仍可能落盘。打包、启动和自动化回归通过不能替代本版本的真实 CAD 验收。
|
||||
|
||||
本版作为预发布提供实机测试,未做代码签名。历史 R17 的 20 项验收和原生/Harness 对照不作为本包的验收结果。
|
||||
@@ -1,50 +0,0 @@
|
||||
# 2026-10-30 优化分支第二轮审查
|
||||
|
||||
本轮在 `.worktrees/project-optimization` 的 `codex/project-optimization` 分支执行。主工作区继续使用 DSH 分支,两个工作目录分别维护各自提交。
|
||||
|
||||
## 已复现并修复的问题
|
||||
|
||||
| 问题 | 触发条件和原因 | 修复 |
|
||||
| --- | --- | --- |
|
||||
| P1:历史资源记录使界面卡顿 | `_update_gates()` 同步调用资源扫描,搜索、选择规则和执行状态更新都会读取全部历史 JSON。500 条已释放记录的一次扫描约需 1.57–1.65 秒 | 新增 `ui/resource_status.py`,后台读取并保留状态快照;初始化、操作收尾和定时复查更新快照,按钮刷新直接读取快照 |
|
||||
| P1:异常退出丢失 BOM 逐行诊断 | `_finish_response()` 在资源复核通过后发现 CAD 退出异常,创建新的 `application_shutdown_failed` 错误,却没有携带原业务错误和 BOM 报告 | 在 `supervisor_result.py` 统一构造退出错误,保留原错误、清理错误和逐行报告;移除报告中的可执行预览 |
|
||||
| P2:规则窗口销毁后访问已释放控件 | 封装读取仍在运行时销毁规则窗口,成功和失败回调均只判断逻辑关闭标记,未判断 Qt 对象是否有效 | 回调先检查 `isValid(self)`,丢弃销毁后的结果;两条路径均有实际 Qt 生命周期回归 |
|
||||
| P2:已完成批次仍显示可执行按钮 | 按钮只判断批次存在;处理函数重新筛选任务后发现没有剩余任务,直接返回 | 抽取 `pending_batch_tasks()`,按钮门控、执行和确认范围共用待执行任务列表 |
|
||||
|
||||
资源快照采用保守处理:首次读取未完成或读取失败时阻断执行;操作结束触发的刷新会合并,操作前的旧快照不能解除门禁。周期检查不会取消慢读取。窗口关闭会停止周期检查并丢弃迟到结果。服务层原有执行前资源检查继续作为最终校验。
|
||||
|
||||
## 测量范围
|
||||
|
||||
使用独立临时目录创建合法的已释放资源记录,无 CAD 进程和工程写入。原同步扫描测得:
|
||||
|
||||
- 0 条:三次分别为 2.68、1.83、1.41 毫秒。
|
||||
- 100 条:293.55、277.36、313.80 毫秒。
|
||||
- 500 条:1650.06、1626.25、1569.35 毫秒。
|
||||
|
||||
接入后台快照后,在真实 `TrialTaskCenterWindow`、`TaskCenterService` 和 `TaskStore` 的空任务窗口中,500 条历史记录下连续调用按钮门控 100 次,总计 6.63 毫秒,期间文件扫描次数为 0。另有已选中任务的 Qt 回归验证后台慢读取期间仍能搜索和响应事件。该结果证明 GUI 热路径移除了扫描,不表示磁盘扫描本身变快,也不代表实际 CAD 替换速度。
|
||||
|
||||
## 前次结论修正
|
||||
|
||||
前次把停止事件轮询从 0.1 秒改成 0.01 秒,并将一次时序测试失败解释为阻塞根因,证据不足。`Event.wait()` 会在事件设置后立即唤醒;初次保护失败后的进度文件写入可能延后重试,固定等待 0.25 秒不能证明保护重试没有发生。
|
||||
|
||||
本轮恢复 0.1 秒等待,回归测试等待明确的强制结束拒绝状态,再检查线程仍存活和保护写入确已重试。不会把这项时序调整计作资源泄漏修复。
|
||||
|
||||
## 测试入口修正
|
||||
|
||||
全仓收集发现 `tests/ui/test_execution_feedback.py` 与 `tests/v1_1/test_execution_feedback.py` 的模块名冲突。UI 文件更名为 `test_ui_execution_feedback.py` 并更新文档引用。
|
||||
|
||||
默认 `python -m pytest -q` 仅覆盖 `tests/v1_1`,不能称为整个仓库测试。全仓历史测试曾启动,随后为实施新确认的 GUI 阻塞修复而主动停止,未将该次运行记作完整通过。当前验证覆盖新版测试、UI 和项目发布要求的安全子集。
|
||||
|
||||
本轮未进行真实 DxDesigner 工程替换或冻结包验收;现场桌面引用残留仍需实际故障机器的进程与句柄证据。
|
||||
|
||||
## 最终验证
|
||||
|
||||
```powershell
|
||||
python -m pytest -q tests/v1_1 tests/ui tests/part_replace/test_verification.py tests/trial_task_center/test_execution_safety.py tests/trial_task_center/test_application.py --durations=5
|
||||
```
|
||||
|
||||
结果:960 passed,1 项既有 pywinauto STA 警告,462.49 秒。此命令覆盖新版测试、UI 和发布安全子集。
|
||||
|
||||
安全停止的真实子进程测试曾在收到首条阶段进度前触发 0.6 秒启动超时,未进入其要验证的保存/强制结束路径。测试现将启动预算与阶段无进度时限区分,并断言目标阶段确实被接收;保存和只读阶段的原 0.3 秒时限继续有效。生产监控超时参数未修改。
|
||||
|
||||
`python -m compileall -q src` 和 `git diff --check` 均通过。
|
||||
@@ -1,73 +0,0 @@
|
||||
{
|
||||
"browser": "156.0.8078.73",
|
||||
"checks": [
|
||||
{
|
||||
"test": "browser-layout-ready",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-running",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-recovery",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-layout-assistant",
|
||||
"ok": true,
|
||||
"width": 1440,
|
||||
"height": 900
|
||||
},
|
||||
{
|
||||
"test": "browser-review-visible",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "escape-cancels-without-execution",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-batch-guard",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-confirm-starts-preparation",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-keeps-running",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-verification-before-pause",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-pause-after-verification",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-solid-material-fallback",
|
||||
"ok": true
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-layout",
|
||||
"ok": true,
|
||||
"width": 980,
|
||||
"height": 700
|
||||
},
|
||||
{
|
||||
"test": "browser-compact-review",
|
||||
"ok": true
|
||||
}
|
||||
],
|
||||
"pageErrors": [],
|
||||
"screenshots": "Chrome headless, screenshot waits for compositor; 1440x900 and 980x700."
|
||||
}
|
||||
|
Before Width: | Height: | Size: 128 KiB |
|
Before Width: | Height: | Size: 108 KiB |
@@ -1,39 +0,0 @@
|
||||
# 细节打磨:文字、交互和表格
|
||||
|
||||
用户要求三方面一起打磨,保留已认可的布局与原生磨砂。
|
||||
|
||||
## 文字、间距与状态
|
||||
|
||||
- 工程标题过长时省略显示,完整名称保留在提示中;不会把小窗口撑宽。
|
||||
- 工程状态保持单行并右对齐,避免“待配置”等短词中途折行;长状态有完整提示。
|
||||
- 按钮图标统一 16px;输入框、按钮、菜单和表格补充焦点、按下、选中与禁用反馈。
|
||||
- 表头与单元格提示说明只读字段、完整内容、UID 和工程身份。
|
||||
|
||||
## 搜索与批量编辑
|
||||
|
||||
- 搜索显示“匹配 X / 总数”,无匹配时显示清楚的空状态;清空后恢复全部行。
|
||||
- 没有查询或结果时,下一条操作不再可用;表格空状态不截获鼠标事件。
|
||||
- 批量填写显示选中行数,未选行或未填新料号时禁用。行选中用于编辑,替换勾选用于计划,两者在提示中区分。
|
||||
|
||||
## 保存与键盘
|
||||
|
||||
- 计划旁显示已保存 / 未保存;没有修改时禁用重复保存。本批 BOM 预览仍保留本批保存范围。
|
||||
- 支持 `Ctrl+F` 定位搜索、`F3` 下一条、`Ctrl+S` 保存。快捷键受当前编辑状态和原有权限门禁约束。
|
||||
- 实际验证并修正了单元格未提交时的保存问题:快捷键先提交当前编辑器,再获取保存快照;鼠标保存也能读取当前输入值。
|
||||
- 编辑中的临时输入参与未保存检测与执行门禁,但不提前改变模型;`Esc` 或放弃操作关闭编辑器并保留原值。
|
||||
|
||||
## 验证
|
||||
|
||||
相关 UI、状态与 BOM 回归 **131 项通过**;最终文字尺寸/对齐调整后,材质、布局与细节的针对性检查 **24 项通过**。新增细节用例覆盖真实单元格编辑、鼠标保存、键盘保存、取消、放弃、只读状态、匹配反馈、批量填写和长标题。
|
||||
|
||||
独立静态审查确认先前的 Ctrl+S 问题已修正,未发现新的重要编辑器生命周期或保存门禁问题。
|
||||
|
||||
原生验收继续使用临时示例数据与独立活动背板,没有启动 CAD。左右磨砂随背板变化,表格保持不透明;小窗口与实色回退通过。详见 [polish-acceptance.json](polish-acceptance.json)。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码已更新,便携 EXE 未重新构建;本机原生验收环境仍为 Windows 11 build 26200、125% 缩放。
|
||||
@@ -1,68 +0,0 @@
|
||||
# R5:GitHub 毛玻璃实现调研与原生实测
|
||||
|
||||
日期:2026-10-30。分支:`codex/ui-update`。
|
||||
|
||||
结论:当前 PySide6 工具应优先验证 **Windows 原生 Acrylic**,将真实窗口背后的内容交给系统合成器模糊。需要 Apple 式边缘折射时,另用 SVG/着色器处理应用内的浮层,不能把半透明白色、模糊、Mica 和折射统称为同一种效果。
|
||||
|
||||
此前 R4 页面确实使用了浏览器背景模糊,但背景接近纯色、叠加白色过厚,缺少可观察的透射细节;它也没有启用正式 Qt 窗口的系统背景模糊。不能用那张图证明原生毛玻璃已经完成。
|
||||
|
||||
## 实际参考的 8 个项目
|
||||
|
||||
通过 GitHub 仓库 API 读取 README、仓库树和关键源码。搜索 API 遇到速率限制,raw 域名连接失败后,改用仓库内容/Blob API,成功读取了下列材料。本文没有把检索失败的项目计入参考数量。
|
||||
|
||||
| 项目 | 已核对的实现 / 文档 | 可借鉴内容 | 与本项目的关系 |
|
||||
| --- | --- | --- | --- |
|
||||
| [PyQt-Frameless-Window](https://github.com/zhiyiYo/PyQt-Frameless-Window) | [`setAcrylicEffect`](https://github.com/zhiyiYo/PyQt-Frameless-Window/blob/master/qframelesswindow/windows/window_effect.py#L53) 调用 `SetWindowCompositionAttribute`,AccentState 使用 Acrylic。README 提供 PySide6 分支。 | 真正的窗口背景模糊;窗口边框、命中与拖动处理。 | 最接近现有 Python / Qt 栈。GPLv3;本轮没有复制该库代码或引入依赖。 |
|
||||
| [PythonBlurBehind](https://github.com/Peticali/PythonBlurBehind) | [`blur()`](https://github.com/Peticali/PythonBlurBehind/blob/main/blurWindow/blurWindow.py#L115) 明确区分 BlurBehind 与 Acrylic,并对 HWND 应用效果。 | 小范围 ctypes 与系统合成边界,适合先做原生验证。 | MIT。原生小样采用同类 Windows API 机制,以独立探针验证,不调用 CAD。 |
|
||||
| [WinUI Gallery](https://github.com/microsoft/WinUI-Gallery) | [`AcrylicPage.xaml`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/Acrylic/AcrylicPage.xaml#L41) 区分应用内 Acrylic 与系统背景;[`DesktopAcrylicController`](https://github.com/microsoft/WinUI-Gallery/blob/main/WinUIGallery/Samples/SystemBackdrops/SystemBackdropsDesktopacryliccontroller.txt) 检查支持并管理资源生命周期。 | 染色、亮度、回退、应用内 / 窗口背后的不同采样来源。 | MIT。用于材质规范参考,不需要把 Qt 重写成 WinUI。 |
|
||||
| [PyQt-Fluent-Widgets](https://github.com/zhiyiYo/PyQt-Fluent-Widgets) | [`AcrylicBrush`](https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/qfluentwidgets/components/widgets/acrylic_label.py#L163) 使用背景采集、Gaussian blur、tint、luminosity 和 noise;部分 Acrylic 是截图处理。 | 材质由模糊、染色、亮度与纹理多层组合;不能只画一层白色。 | GPLv3 / 商业许可。必须区分其图像材质和实时原生 Acrylic;不能看到 Acrylic 类名就认为全是系统合成。 |
|
||||
| [window-vibrancy](https://github.com/tauri-apps/window-vibrancy) | [`apply_acrylic`](https://github.com/tauri-apps/window-vibrancy/blob/dev/src/windows.rs#L62) 在合适版本使用 `DWMWA_SYSTEMBACKDROP_TYPE / DWMSBT_TRANSIENTWINDOW`,否则走 Accent;Mica 有单独接口。 | Windows 版本判断、不同 API 路径及清理机制。 | Apache-2.0。Rust/Tauri 不能直接装进 PySide6,但系统 API 的技术路线值得对照。 |
|
||||
| [QWindowKit](https://github.com/stdware/qwindowkit) | README 列出 `acrylic-material`、`dwm-blur`、`mica`,并讲明 Qt 私有 API、原生子窗口、Snap 与命中处理;不同平台的 glass 属性不同。 | 窗口外壳需要与材质一起设计,不能破坏拖动、缩放、系统菜单与 Snap。 | Apache-2.0;本轮核对其 README。C++ 工程与 Python 绑定成本需单独评估,不自动引入。旧 FramelessHelper 已指向该项目。 |
|
||||
| [liquid-glass-react](https://github.com/rdev/liquid-glass-react) | [`src/index.tsx`](https://github.com/rdev/liquid-glass-react/blob/master/src/index.tsx#L35) 包含位移贴图、三通道位移和颜色合并;背景模糊是另一层。 | 边缘折射、可调磨砂、轻微色散,不只是圆角和阴影。 | MIT。可参考视觉与滤镜;它作用于网页内容,不是 Windows 桌面背景。README 说明 Safari/Firefox 位移支持有局限。 |
|
||||
| [shuding/liquid-glass](https://github.com/shuding/liquid-glass) | [`liquid-glass.js`](https://github.com/shuding/liquid-glass/blob/main/liquid-glass.js#L69) 使用 `backdrop-filter:url(...)` 与 `feDisplacementMap`;按几何函数生成位移贴图。 | 用真实背板内容测试边缘弯折;位移贴图的 R/G 控制横向与纵向采样。 | MIT。本轮验证页使用自行生成的位移贴图,没有复制项目源码。 |
|
||||
|
||||
源码核对记录及文件 Blob SHA 见 [github-material-sources.json](github-material-sources.json)。许可信息来自读取时的仓库元数据/README;本轮未安装上述库。
|
||||
|
||||
## 如何区分几种效果
|
||||
|
||||
| 效果 | 背后内容是什么 | 观察方式 |
|
||||
| --- | --- | --- |
|
||||
| 普通透明 | 原始内容直接 alpha 混合 | 背后的字和细线仍清晰,容易穿过前景文字。 |
|
||||
| 网页背景磨砂 | 同一页面中、元素背后的图像 | 动背板或滚动内容,模糊颜色随之变化;不能看到浏览器外的窗口。 |
|
||||
| 原生 Acrylic | Windows 合成器提供的窗口后方内容,具体行为受系统与窗口状态影响 | 用独立的真实背景窗口换色/移动,前景材质跟随变化。 |
|
||||
| Mica | 通常从桌面壁纸等来源形成的窗口底材 | 不应期待它像透明玻璃一样实时折射所有背后窗口。 |
|
||||
| Liquid Glass 视觉模拟 | 对采样图像做边缘位移,叠加磨砂、高光等 | 背后的直线在边缘弯折;强度过高会影响工程数据识读。 |
|
||||
|
||||
## 本机原生实测
|
||||
|
||||
本机 Windows 11 build 26200。可复现探针:[native-acrylic-probe.py](native-acrylic-probe.py)。它只创建自有测试窗口,前景不绘制背景截图,使用系统 API 配置效果后,捕获这些窗口组成的测试区域;截图前检查区域中的窗口归属,发现遮挡即取消保存。
|
||||
|
||||
**左侧是普通透明,右侧启用 Accent Acrylic。** 两个前景窗口背后的测试图案一致。原生 Acrylic 明显滤除了竖线和背景字;更换背板颜色后,透入的颜色随之改变。
|
||||
|
||||

|
||||
|
||||
[查看背板变化动图](native-acrylic-live.gif) · [第二种背板截图](native-acrylic-b.png)
|
||||
|
||||
验证结果:`SetWindowCompositionAttribute` 返回成功;截图中右侧背景水平边缘能量约为左侧的 1/6.35,换色后右侧像素也发生变化。这是对测试图案的图像差异检查,不是通用材质质量评分。
|
||||
|
||||
**还发现了一条未跑通的路径:** 清除 Accent 后,单独设置 `DWMWA_SYSTEMBACKDROP_TYPE=3` 返回 HRESULT 0,但该 Qt 小样的实际输出是灰色实底。见 [DWM 路径截图](native-dwm-acrylic.png)。因此不能仅凭 API 返回成功宣称真实玻璃已启用,需要继续验证 Qt 窗口表面、DWM 扩展区域与系统设置。
|
||||
|
||||
原生调用日志见 [native-acrylic-verification.json](native-acrylic-verification.json);像素与动态背板验证见 [material-verification.json](material-verification.json)。没有启动 CAD、读写工程或改变系统全局透明度设置。
|
||||
|
||||
## 可交互材质验证台
|
||||
|
||||
[打开 material-lab.html](material-lab.html)。三列使用相同背板,依次展示:只有透明、背景磨砂、低磨砂与边缘折射。
|
||||
|
||||
可以拖动背景位置、调整磨砂强度、关闭/打开模糊与折射。背板由网页图形与文本实时组成;没有用预先模糊的背景图冒充采样。该页是浏览器机制验证,原生实测在上面的独立探针中。
|
||||
|
||||

|
||||
|
||||
Chrome 实测确认:磨砂滤镜为 `blur(18px) saturate(1.25)`,关闭后为 `none`;SVG 位移引用有效;改变背板位置会改变三列可见像素。效果开关在透明对照列的影响很小,而磨砂/折射列发生明显变化。1000px 页面宽度无横向溢出,浏览器无页面脚本错误。滤镜像素变化证明效果参与渲染,不代表它等同于 Apple 原生材质或所有浏览器效果一致。
|
||||
|
||||
## 对现有工程工具的建议
|
||||
|
||||
建议保留现有 PySide6 业务层和 SVG 图标,将外壳的侧栏、顶栏和短暂浮层接入已实测有视觉效果的原生模糊路径。料号表格使用独立清晰内容面。不要给整窗口设置低 opacity,也不要把普通白色底加阴影当作 Acrylic。
|
||||
|
||||
Apple 式折射适合少量浮层与分段控件;大面积表格不使用明显几何位移。若要在原生 Qt 中加入折射,需要 Qt Quick ShaderEffect / 可控的合成层等进一步验证;浏览器 SVG 位移不能原样翻译成 QWidget 的 QSS。
|
||||
|
||||
后续正式接入仍需验证:Qt/PySide6 版本、DWM 系统回退、透明度/高对比设置、激活状态、窗口拖动与 Snap、高 DPI、多显示器、远程桌面、打包以及现有 DSH WebEngine 子窗口的兼容性。本轮完成的是调研、机制对比和原生小样,未更改正式 UI 或执行状态机。
|
||||
|
Before Width: | Height: | Size: 34 KiB |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" width="1120" height="524" viewBox="0 0 1120 524"><rect width="1120" height="524" fill="white"/><text x="24" y="34" font-family="Segoe UI,Arial" font-size="18" fill="#34465f">DxPartReplace / SVG icon set</text><text x="24" y="54" font-family="Segoe UI,Arial" font-size="11" fill="#8b98a9">32 original symbols / 20 x 20 grid / 1.6 stroke / currentColor</text><rect x="24" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg><text x="80" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">arrow-up</text><rect x="160" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg><text x="216" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chat</text><rect x="296" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg><text x="352" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check-circle</text><rect x="432" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="474" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg><text x="488" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">check</text><rect x="568" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="610" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg><text x="624" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">chevron</text><rect x="704" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="746" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg><text x="760" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">circuit</text><rect x="840" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="882" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg><text x="896" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">clock</text><rect x="976" y="78" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="1018" y="94" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg><text x="1032" y="147" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">close</text><rect x="24" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="66" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg><text x="80" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">columns</text><rect x="160" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="202" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg><text x="216" y="253" text-anchor="middle" font-family="Segoe UI,Arial" font-size="11" fill="#7c8da3">copy</text><rect x="296" y="184" width="112" height="90" rx="10" fill="#f7f9fc" stroke="#e7ecf3"/><svg x="338" y="200" width="28" height="28" viewBox="0 0 20 20"><g fill="none" stroke="#4b5e78" stroke-width="1.6" stroke-Line truncated
|
||||
|
Before Width: | Height: | Size: 14 KiB |
@@ -1,5 +0,0 @@
|
||||
# SVG icons
|
||||
|
||||
Original 20 × 20 SVG icons for the DxPartReplace UI concept. Consistent 1.6 unit strokes, rounded caps and joins; color inherits `currentColor`. These are original drawings, not Apple SF Symbols.
|
||||
|
||||
The preview embeds the same shapes as an SVG symbol sprite; the individual files can be used by Qt SVG rendering when the production interface is implemented.
|
||||
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 16V4M5.5 8.5 10 4l4.5 4.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 215 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M5 3.5h10a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H9l-4.5 3v-3a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z"/><path d="M6.5 7.5h7m-7 3h4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 298 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="m6.5 10 2.5 2.5 4.5-5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 241 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m4.5 10 3.5 3.5 7.5-8"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 207 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m8 5 5 5-5 5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 198 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="5" y="5" width="10" height="10" rx="2"/><path d="M8 2v3m4-3v3m-4 10v3m4-3v3M2 8h3m-3 4h3m10-4h3m-3 4h3M8 8h4v4H8Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 299 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 5.5v5l3 1.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 235 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m5 5 10 10M15 5 5 15"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 206 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7.5 3.5v13m5-13v13"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 258 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="7" y="7" width="10" height="10" rx="2"/><path d="M12.5 4V3H3v9.5h1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 252 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 2.5v10m-3.5-3.5 3.5 3.5 3.5-3.5M3.5 13v4h13v-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 236 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M2.5 6a2 2 0 0 1 2-2h4l2 2h5a2 2 0 0 1 2 2v6.5a2 2 0 0 1-2 2h-11a2 2 0 0 1-2-2Z"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 265 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="5" height="5" rx="1"/><rect x="12" y="3" width="5" height="5" rx="1"/><rect x="3" y="12" width="5" height="5" rx="1"/><rect x="12" y="12" width="5" height="5" rx="1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 366 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="10" r="7.25"/><path d="M10 9v5m0-8h.01"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 235 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 2.5h6l4 4v11H4v-15h2Zm6 0v4h4M7 10h6m-6 3.5h6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 234 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="4" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="10" cy="10" r=".9" fill="currentColor" stroke="none"/><circle cx="16" cy="10" r=".9" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 371 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 4v12m6-12v12" stroke-width="2.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 220 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m7 3.5 9 6.5-9 6.5Z" fill="currentColor" stroke="none"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 239 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 4v12M4 10h12"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 202 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="2.5" width="12" height="15" rx="2"/><path d="M7 6h6M7 10h3m0 0v4m0-4h3m-6 4h6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 269 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M16.5 7A7 7 0 1 0 17 12M16.5 3v4h-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 221 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 5h10M7 10h10M7 15h10"/><circle cx="3.5" cy="5" r=".6"/><circle cx="3.5" cy="10" r=".6"/><circle cx="3.5" cy="15" r=".6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 307 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 3h12l2 2v12H3ZM6 3v5h7V3M6 17v-5h8v5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 225 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M7 3H3v4m10-4h4v4M3 13v4h4m10-4v4h-4M6 10h8m-6-3v6m4-6v6"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 242 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8.5" cy="8.5" r="5.5"/><path d="m12.5 12.5 4.5 4.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 239 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M7 3.5v13M4.5 7h.1m-.1 3h.1"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 266 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3 5h3m4 0h7M3 10h8m4 0h2M3 15h2m4 0h8"/><circle cx="8" cy="5" r="2"/><circle cx="13" cy="10" r="2"/><circle cx="7" cy="15" r="2"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 314 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M6 4v12m-3-3 3 3 3-3M13 5h4m-4 5h3m-3 5h2"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 227 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><rect x="2.5" y="3.5" width="15" height="13" rx="2"/><path d="M2.5 8h15M8 8v8.5m4-8.5v8.5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 266 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M3.5 5.5h13M7 5V3h6v2M5 5.5l.8 11h8.4l.8-11M8 8.5v5m4-5v5"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 243 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="M10 12.5v-10M6.5 6 10 2.5 13.5 6M3.5 13v4h13v-4"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 233 B |
@@ -1 +0,0 @@
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><g fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><path d="m10 2.5 8 14H2Zm0 5v4.5m0 2.5h.01"/></g></svg>
|
||||
|
Before Width: | Height: | Size: 219 B |
@@ -1,21 +0,0 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.323206901227035,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 131,
|
||||
"options_exposed": true
|
||||
}
|
||||
@@ -1,67 +0,0 @@
|
||||
# 第二种背景磨砂:正式 PySide6 接入
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
> 正式界面现已继续完成 [按钮、布局与右侧磨砂补全](layout-refinement.md),当前截图与验收数值以该记录为准。
|
||||
|
||||
2026-10-30。工作分支 `codex/ui-update`。用户明确批准材质对比页中的第二种“背景磨砂”,本次已将它接入正式 `TrialTaskCenterWindow`。
|
||||
|
||||
## 已实现
|
||||
|
||||
- 通过 ctypes 对窗口自身启用 Windows Acrylic;使用事先在本机验证可见效果的 `SetWindowCompositionAttribute` 路径。没有把浏览器 CSS 当作原生窗口背景模糊,也没有用背景截图充当材质。
|
||||
- 保留系统窗口框架,顶栏与任务侧栏响应真实窗口后的内容。没有使用全窗口 opacity。
|
||||
- 高对比度、系统透明度关闭、远程会话、非 Windows / 离屏、不支持的版本、接口失败与用户选择减少透明度时回退实色。可见窗口定期复查系统策略;只影响本窗口,不写系统设置。
|
||||
- alpha 窗口在回退时显式绘制实色底,避免原生窗口在禁用合成后露出黑色区域。
|
||||
- 32 个原创新 SVG 文件纳入正式应用 assets,沿用原有 package-data 规则。导航、执行、保存、导入导出、诊断和任务操作接入图标,并保留操作文字 / 提示。
|
||||
- 工程名称和路径置于表格上方;原有 Value 与关闭归档选项放入可展开区域;缩窄布局后保留位号表和操作空间。
|
||||
|
||||
现有执行状态机、CAD 服务与 DSH 后端未作为本次材质修改的一部分重写。工作区中已有的其他 DSH 生命周期修改被保留,本次没有替它们提交或发布。
|
||||
|
||||
## 测试
|
||||
|
||||
相关命令:
|
||||
|
||||
```powershell
|
||||
python -m pytest tests/ui tests/v1_1/test_ui_workspace.py tests/v1_1/test_ui_remediation.py tests/v1_1/test_safe_stop_ui.py tests/v1_1/test_target_table.py tests/v1_1/test_ui_operation_lifecycle.py tests/v1_1/test_task_navigation.py -q --basetemp=build/pytest-acrylic-final
|
||||
```
|
||||
|
||||
结果:**103 passed**。覆盖材质策略 / 回退、偏好持久化、句柄变化、SVG 控件、现有 UI 流程、窄窗口、草稿、过滤/排序与安全暂停等相关行为。
|
||||
|
||||
独立静态代码审查未发现本次范围中的重要生产问题;指出的 Windows 专属策略测试缺少平台跳过标记已修正。
|
||||
|
||||
实机验收命令:
|
||||
|
||||
```powershell
|
||||
python tools/accept_acrylic_ui.py --output build/acrylic-acceptance
|
||||
```
|
||||
|
||||
验收使用临时示例工程、库存和已保存计划,没有启动 CAD。实际窗口置于自有实时背板上,截图区域在保存前检查窗口归属。验证环境为 Windows 11 build 26200,125% 缩放。
|
||||
|
||||
| 项目 | 实测 |
|
||||
| --- | --- |
|
||||
| 原生 Acrylic | 已启用,截图可见背景模糊 |
|
||||
| 背板换色时侧栏变化 | 平均像素差约 21.32 |
|
||||
| 同时表格区域变化 | 平均像素差 0.0,保持实色 |
|
||||
| 减少透明度后的侧栏 | 实色 RGB 均值 233 / 238 / 244,无黑色底 |
|
||||
| 980×700 | 窗口尺寸保持,位号表 viewport 高度 131 逻辑像素 |
|
||||
| Value / 归档选项 | 可从标题旁入口展开 |
|
||||
|
||||
数值是固定示例区域的图像比较,不是通用性能或视觉质量评分。日志见 [implementation-acceptance.json](implementation-acceptance.json)。
|
||||
|
||||
## 实际窗口截图
|
||||
|
||||
以下是正式 Qt 窗口的系统合成截图,已使用示例工程数据,不是 HTML 预览。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
## 交付边界
|
||||
|
||||
已更新源代码与打包资产,尚未重新构建便携 EXE。旧版便携包不会自动更新外观。本轮未做真实 CAD 写入,也未完成 Windows 10、多显示器、不同显卡驱动、所有缩放比例与发布包的跨环境验证。
|
||||
|
||||
窗口使用 Windows 合成接口;不同系统设置与远程环境下可能回退为实色。当前 DSH 内嵌前端继续使用其自身界面,只统一外层导航,不宣称已重写官方 Harness 的页面。
|
||||
|
Before Width: | Height: | Size: 328 KiB |
|
Before Width: | Height: | Size: 381 KiB |
|
Before Width: | Height: | Size: 379 KiB |
|
Before Width: | Height: | Size: 125 KiB |
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"cad_started": false,
|
||||
"sample_data_only": true,
|
||||
"ownership_checked": true,
|
||||
"os_build": 26200,
|
||||
"native_enabled": true,
|
||||
"sidebar_backdrop_difference": 21.82688605017125,
|
||||
"opaque_table_backdrop_difference": 0.0,
|
||||
"right_header_backdrop_difference": 7.638507661558961,
|
||||
"right_execution_backdrop_difference": 12.32960451977401,
|
||||
"solid_sidebar_mean": [
|
||||
233.0,
|
||||
238.0,
|
||||
244.0
|
||||
],
|
||||
"solid_fallback": true,
|
||||
"compact_size": [
|
||||
980,
|
||||
700
|
||||
],
|
||||
"compact_table_height": 194,
|
||||
"options_exposed": true
|
||||
}
|
||||
|
Before Width: | Height: | Size: 660 KiB |
|
Before Width: | Height: | Size: 809 KiB |
|
Before Width: | Height: | Size: 803 KiB |
@@ -1,35 +0,0 @@
|
||||
# 正式界面:按钮、布局与右侧磨砂补全
|
||||
|
||||
> 交互与表格反馈已继续完成 [最新细节打磨](detail-polish.md),最终样例见该记录。
|
||||
|
||||
用户反馈上一轮只落地外壳和图标,按钮布局仍旧、右侧磨砂被白底遮挡。本轮修改正式 PySide6 组件,保留已有服务与执行门禁。
|
||||
|
||||
## 已改变的布局
|
||||
|
||||
- 任务侧栏顶部直接新建;编辑、恢复、顺序调整和删除进入任务管理菜单,显示排序单独提供菜单。任务项用 delegate 分层显示名称、状态、图标与顺序,不添加逐行 QWidget。完整名称和路径继续保留在数据与提示中。
|
||||
- 搜索、BOM 模板、BOM 导入和位号采集合并到一条工具栏。搜索支持输入过滤、清空和下一条;低频位号 Excel 工具与搜索命令进入更多菜单。
|
||||
- 保存计划移至表格底部,和逐行编辑、批量填写形成连续操作区。
|
||||
- 执行区只显示当前状态的直接动作。普通执行、恢复、重试、开始新一轮与安全暂停按已有状态门禁显示。诊断、资源清理、轮次证据、布局和强制结束进入更多操作菜单;强制结束保留原确认流程。
|
||||
- 工程状态与设置位于标题行,工程重新读取收进菜单,路径保留复制入口。
|
||||
|
||||
## 右侧材质
|
||||
|
||||
移除工作区与标签页的大面积不透明白底。右侧工程标题、搜索工具栏、编辑工具区和执行面板现在共同透出 Windows 原生 Acrylic。表格 viewport 继续保持实色,交互菜单与错误/恢复提示仍须清晰可读。
|
||||
|
||||
底层使用上一轮已验证的 Windows 合成实现,不通过整窗口 opacity 制造效果;减少透明度仍切回实色。
|
||||
|
||||
## 命令安全与验证
|
||||
|
||||
菜单通过现有按钮对象执行,菜单展示时同步文字、图标、启用与显式可见状态;触发时再次检查源按钮当前状态。隐藏按钮保留在原面板的隐藏存储容器内,继续受原业务门禁控制。没有复制执行逻辑,也没有让过期菜单状态绕过禁用操作。
|
||||
|
||||
新增 `test_workspace_redesign.py` 覆盖菜单触发与禁用、任务管理菜单、工具栏与保存位置、执行维护菜单、小窗口操作可见性。相关回归合计 **108 项通过**。独立静态审查未发现重要的命令路由、状态或可见性问题。
|
||||
|
||||
原生验收新增了右侧两个采样区:工程路径/标题区域和执行区。改变自有背板时,左右外壳都必须变化;表格区域仍须不变。Windows 11 build 26200、125% 缩放下通过,980×700 表格 viewport 约 194 逻辑像素。
|
||||
|
||||
本次验收使用临时示例数据,没有启动 CAD。详细数值见 [layout-acceptance.json](layout-acceptance.json)。旧窗口会通过正常关闭流程重开;未保存或运行中的关闭保护不会被自动绕过。
|
||||
|
||||

|
||||
|
||||

|
||||
|
||||
源代码界面已更新,便携 EXE 尚未重新构建。Windows 10、不同驱动、远程桌面及打包后的效果仍需对应环境验证。
|
||||
|
Before Width: | Height: | Size: 105 KiB |