New independent report page based on DWH.DW_MES_HOLDRELEASEHISTORY providing historical hold/release performance analysis. Includes daily trend with Redis caching, reason Pareto with click-to-filter, duration distribution with click-to-filter, multi-select record type filter (new/on_hold/released), workcenter-group mapping via memory cache, and server-side paginated detail table. All 32 backend tests passing. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2.7 KiB
2.7 KiB
MODIFIED Requirements
Requirement: Vite config SHALL support Vue SFC and HTML entry points
The Vite build configuration SHALL support Vue Single File Components alongside existing vanilla JS entries.
Scenario: Vue plugin coexistence
- WHEN
vite buildis executed - THEN Vue SFC (
.vuefiles) SHALL be compiled by@vitejs/plugin-vue - THEN existing vanilla JS entry points SHALL continue to build without modification
Scenario: HTML entry point
- WHEN a page uses an HTML file as its Vite entry point
- THEN Vite SHALL process the HTML and its referenced JS/CSS into
static/dist/ - THEN the output SHALL include
<page-name>.html,<page-name>.js, and<page-name>.css
Scenario: Chunk splitting
- WHEN Vite builds the project
- THEN Vue runtime SHALL be split into a
vendor-vuechunk - THEN ECharts modules (including TreemapChart, BarChart, LineChart) SHALL be split into the existing
vendor-echartschunk - THEN chunk splitting SHALL NOT affect existing page bundles
Scenario: Migrated page entry replacement
- WHEN a vanilla JS page is migrated to Vue 3
- THEN its Vite entry SHALL change from JS file to HTML file (e.g.,
src/wip-overview/main.js→src/wip-overview/index.html) - THEN the original JS entry SHALL be replaced, not kept alongside
Scenario: Hold Overview entry point
- WHEN the hold-overview page is added
- THEN
vite.config.jsinput SHALL include'hold-overview': resolve(__dirname, 'src/hold-overview/index.html') - THEN the build SHALL produce
hold-overview.html,hold-overview.js, andhold-overview.cssinstatic/dist/
Scenario: Hold History entry point
- WHEN the hold-history page is added
- THEN
vite.config.jsinput SHALL include'hold-history': resolve(__dirname, 'src/hold-history/index.html') - THEN the build SHALL produce
hold-history.html,hold-history.js, andhold-history.cssinstatic/dist/
Scenario: Shared CSS import across migrated pages
- WHEN multiple migrated pages import a shared CSS module (e.g.,
wip-shared/styles.css) - THEN Vite SHALL bundle the shared CSS into each page's output CSS
- THEN shared CSS SHALL NOT create a separate shared chunk that requires additional HTTP requests
Scenario: Shared composable import across module boundaries
- WHEN a migrated page imports a composable from another shared module (e.g.,
hold-historyimportsuseAutoRefreshfromwip-shared/) - THEN the composable SHALL be bundled into the importing page's JS output
- THEN cross-module imports SHALL NOT create unexpected shared chunks