From cdf6f67c5412baed7f5729ea0a77492d39f2dae5 Mon Sep 17 00:00:00 2001 From: egg Date: Mon, 2 Mar 2026 08:20:55 +0800 Subject: [PATCH] feat: relax query limits for query-tool and mid-section-defect --- .../components/AnalysisSummary.vue | 15 +- .../components/FilterBar.vue | 15 +- .../query-tool/composables/useLotResolve.js | 16 +- frontend/tests/query-tool-composables.test.js | 239 +++++++++++ src/mes_dashboard/routes/trace_routes.py | 4 +- .../services/mid_section_defect_service.py | 14 +- .../services/query_tool_service.py | 29 +- .../mid_section_defect/all_loss_reasons.sql | 2 +- tests/e2e/test_query_tool_ui_ux_e2e.py | 175 +++++++++ tests/stress/test_query_tool_stress.py | 371 ++++++++++++++++++ tests/test_mid_section_defect_service.py | 4 +- ...test_query_tool_concurrency_integration.py | 215 ++++++++++ tests/test_query_tool_routes.py | 62 +-- tests/test_query_tool_service.py | 75 ++-- tests/test_trace_routes.py | 44 +++ 15 files changed, 1177 insertions(+), 103 deletions(-) create mode 100644 frontend/tests/query-tool-composables.test.js create mode 100644 tests/e2e/test_query_tool_ui_ux_e2e.py create mode 100644 tests/stress/test_query_tool_stress.py create mode 100644 tests/test_query_tool_concurrency_integration.py diff --git a/frontend/src/mid-section-defect/components/AnalysisSummary.vue b/frontend/src/mid-section-defect/components/AnalysisSummary.vue index 7f22624..2c76ba9 100644 --- a/frontend/src/mid-section-defect/components/AnalysisSummary.vue +++ b/frontend/src/mid-section-defect/components/AnalysisSummary.vue @@ -23,6 +23,15 @@ const props = defineProps({ }); const collapsed = ref(false); +const INPUT_TYPE_LABELS = Object.freeze({ + lot: 'LOT ID', + lot_id: 'LOT ID', + work_order: '工單', + wafer_lot: 'WAFER LOT', + serial_number: '成品流水號', + gd_work_order: 'GD 工單', + gd_lot_id: 'GD LOT ID', +}); // Restore from sessionStorage try { @@ -44,6 +53,10 @@ function formatNumber(v) { if (v == null || v === 0) return '0'; return Number(v).toLocaleString(); } + +function formatInputType(value) { + return INPUT_TYPE_LABELS[value] || value || 'LOT ID'; +}