feat: 数据集版本管理支持删除历史版本
DatasetVersionList 新增 next_version_number,API 与 Mock 补充删除版本接口与并发控制,DatasetVersionBar 增加删除操作并对初始版本与最后版本禁用,DatasetPreviewView 接入删除流程,回归脚本与设计走查同步。
This commit is contained in:
52
design-qa.md
52
design-qa.md
@@ -325,3 +325,55 @@ Verification evidence:
|
||||
Design-QA final result: blocked
|
||||
|
||||
final result: blocked
|
||||
|
||||
---
|
||||
|
||||
# Dataset Version Actions Design QA
|
||||
|
||||
## Evidence
|
||||
|
||||
- Source visual truth: `/Users/caoxiaozhu/.codex/generated_images/019f5e2e-3bee-77f0-b285-89ef139db56c/exec-48a163b6-d4c9-4646-9199-135957c6e72e.png`
|
||||
- Historical-version implementation: `/Users/caoxiaozhu/.codex/visualizations/2026/07/14/019f5e2e-3bee-77f0-b285-89ef139db56c/dataset-version-build/implementation-historical-version-final.png`
|
||||
- Delete-confirm implementation: `/Users/caoxiaozhu/.codex/visualizations/2026/07/14/019f5e2e-3bee-77f0-b285-89ef139db56c/dataset-version-build/implementation-delete-confirm.png`
|
||||
- Full-view comparison: `/Users/caoxiaozhu/.codex/visualizations/2026/07/14/019f5e2e-3bee-77f0-b285-89ef139db56c/dataset-version-build/comparison-full.png`
|
||||
- Focused version-control comparison: `/Users/caoxiaozhu/.codex/visualizations/2026/07/14/019f5e2e-3bee-77f0-b285-89ef139db56c/dataset-version-build/comparison-version-controls-final.png`
|
||||
- Viewport: 1316 × 768 browser window; source crop normalized for the focused comparison.
|
||||
- State: authenticated dataset detail, V3 current, V2 selected as a read-only historical version.
|
||||
|
||||
## Full-view comparison
|
||||
|
||||
The existing product shell, dataset summary, version selector, read-only alert, file toolbar, and sample table remain unchanged. The former standalone primary action has been replaced by one compact rounded-square overflow button at the far right of the version-control row, matching the selected hierarchy.
|
||||
|
||||
## Focused comparison and required fidelity surfaces
|
||||
|
||||
- Fonts and typography: existing system/PingFang stack, 13px labels, 12px metadata, and Element Plus menu text are preserved.
|
||||
- Spacing and layout rhythm: the 40px overflow trigger aligns with the version selector and leaves the central status copy flexible; the 168px menu provides 40px action rows.
|
||||
- Colors and visual tokens: the existing indigo primary token is used for the activate icon; the delete item and confirmation action use the danger token.
|
||||
- Image and icon fidelity: no new raster assets are needed. Existing Font Awesome ellipsis, check-circle, and trash icons match the repository's icon system.
|
||||
- Copy and content: the menu contains exactly “设为当前版本” and “删除版本”, separated visually; the confirmation names V2 and explains that current V3 is unaffected.
|
||||
|
||||
## Interaction checks
|
||||
|
||||
- Created V2 and V3 through the real edit-and-save flow, then switched from current V3 to historical V2.
|
||||
- Historical records became read-only and the overflow trigger appeared; current V3 showed no history-operation trigger.
|
||||
- Opening the trigger exposed exactly two accessible menu items: “设为当前版本” and “删除版本”.
|
||||
- Choosing “删除版本” opened the danger confirmation dialog; cancelling returned focus without deleting data.
|
||||
- Actual deletion behavior, protected-version rejection, optimistic-lock handling, and non-reused version numbers are covered by `test:dataset-preview`.
|
||||
|
||||
## Comparison history
|
||||
|
||||
### Iteration 1 — blocked
|
||||
|
||||
- [P2] The overflow trigger was circular while the selected mock used a small rounded square.
|
||||
- [P2] The menu did not explicitly lock its target width or primary-action icon color.
|
||||
|
||||
Fixes:
|
||||
|
||||
- Replaced the circular trigger with a 40px square and 10px radius.
|
||||
- Set the menu minimum width to 168px, action height to 40px, and the activate icon to the product primary color.
|
||||
|
||||
### Iteration 2 — passed
|
||||
|
||||
No actionable P0/P1/P2 differences remain. The desktop capture API does not retain the transient popup layer in screenshots, so the open-menu labels were additionally verified through the accessibility tree; exact popup shadow rendering remains a non-blocking P3 capture gap.
|
||||
|
||||
final result: passed
|
||||
|
||||
Reference in New Issue
Block a user