- Fix dimension Pareto datasources: PJ_TYPE/PRODUCTLINENAME from DW_MES_CONTAINER, WORKFLOWNAME from DW_MES_LOTWIPHISTORY via WIPTRACKINGGROUPKEYID, EQUIPMENTNAME from LOTREJECTHISTORY only (no WIP fallback), workcenter dimension uses WORKCENTER_GROUP - Add multi-select Pareto click filtering with chip display and detail list integration - Add TOP 20 display scope selector for TYPE/WORKFLOW/機台 dimensions - Pass Pareto selection (dimension + values) through to list/export endpoints - Enable TRACE_WORKER_ENABLED=true by default in start_server.sh and .env.example - Archive reject-history-pareto-datasource-fix and reject-history-pareto-ux-enhancements - Update reject-history-api and reject-history-page specs with new Pareto behaviors Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1.3 KiB
1.3 KiB
1. Frontend Pareto UX Enhancements
- 1.1 在
FilterPanel.vue將「Pareto 僅顯示累計前 80%」移至補充篩選區域並維持預設啟用 - 1.2 在
ParetoSection.vue新增全部顯示 / 只顯示 TOP 20控制(僅TYPE/WORKFLOW/機台顯示) - 1.3 在
ParetoSection.vue支援圖表與表格點選多選、選取高亮與取消選取 - 1.4 在
App.vue新增 Pareto 多選狀態管理與 URL 狀態同步(dimension + selected values + display scope)
2. Backend Filter/Export Parity
- 2.1 在
reject_dataset_cache.py新增 Pareto 維度多選過濾 helper,供 view/export 共用 - 2.2 擴充
apply_view()支援pareto_dimension+pareto_values並套用到明細過濾 - 2.3 擴充
export_csv_from_cache()支援與 view 相同的 Pareto 多選過濾語意 - 2.4 更新
reject_history_routes.py的/view與/export-cached參數解析與維度驗證(非法維度回 400)
3. Validation and Regression Tests
- 3.1 新增/更新 route 測試:驗證
/view、/export-cached會傳遞 Pareto 多選參數且非法維度回 400 - 3.2 新增/更新 cache service 測試:驗證 Pareto 多選在
apply_view與export_csv_from_cache行為一致 - 3.3 執行 reject-history 相關測試並確認無回歸