Files
worldquant-alpha-system/.scratch/table-ui-consistency/issues/01-implementation.md
T
yuxuanhui b9975e58e9
Deploy production / deploy (push) Successful in 53s
feat: enhance table layout and interaction across various components
- Introduced a new `WorkspaceTable` component for consistent table styling and behavior.
- Updated `BacktestPage`, `DatasetPage`, and `DataPreparationPage` to utilize the new `WorkspaceTable`.
- Implemented compact row heights and ellipsis for long text in table cells.
- Added validation for online field queries to ensure at least one filter is provided.
- Enhanced error handling and user feedback for invalid input scenarios.
- Improved pagination controls with dynamic page size options.
- Documented table display specifications in `ui-tables.md`.
- Added tests to verify table layout, interaction, and error handling.
2026-09-12 02:13:48 +08:00

21 lines
1.7 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 统一表格规范与回测 500 排查
Type: task
Status: resolved
按 Alpha 管理统一数据目录、字段目录、数据准备的 Semi Table 行高、Tab、分页、状态 Tag、单元格截断和紧凑筛选区;在线查询改为第二个 Tab,明确输入并提交条件才请求。用户授权将规范固定为项目文档。回测 500 先复现并核对失败接口,再修复验证。
## Comments
- 开始处理;工作区干净。
- Semi 2.103.0 Table、Tabs、Tag 文档已核对;新建 WorkspaceTable 统一 40px 行高、截断、表体滚动和底部分页。三个目录及准备选择器已接入,状态使用 Tag,筛选栏上下 padding 4px。
- 在线目录移到第二个卡片 Tab;默认及仅输入时不查询,重置清空结果。前后端均要求额外查询条件。
- 用户提供运行列表 URL 和 ResponseValidationError / extra_forbidden 日志。使用含额外来源字段的持久化记录复现同类响应错误;新增 SourceOutput 仅投影当前字段,输入 Source 保持严格校验,不恢复旧输入字段或进行快照转换。
## Answer
本地修改完成。项目展示规范见 docs/ui-tables.md,AGENTS.md 与 README 已接入入口。
验证:后端 Ruff 通过;回测与准备模块 pytest 41 项通过,新增复现测试修复前失败、修复后通过;前端构建通过(保留既有打包体积及 lottie eval 提示);Playwright 9 项通过,最后列宽与 Tag 调整后另复核 2 项通过。浏览器实测 40px 行高、长名称不溢出、桌面及 900px 窄屏底栏固定,截图已检查。
仅本地代码与模拟上游验证,未部署或修改线上数据;部署后需要确认线上运行列表恢复。