All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 3m22s
Bro UAT 2026-05-19 phản hồi sau Plan AC deploy: phiếu cũ PE/2026/A/032 vẫn KHÔNG show events Trả lại pre-deploy (Bro test trả lại Phan Văn Chương → Trà từ TRƯỚCcdfd542không có trong Lịch sử duyệt). Root cause: Plan AC chỉ add Approval row cho events POST-deploy. Events pre-deploy chỉ có Changelog (LogTransitionAsync) — Approval table miss. Fix Plan AC2 — FE merge view (Option 2A bro chọn): ApprovalsTab fetch BOTH approvals + changelogs (cùng endpoint HistoryTab dùng): - Reconstruct synthetic PeApproval rows từ Changelog Workflow+Reject events: - Filter: entityType=Workflow(5) + summary "→ TraLai"/"→ TuChoi" OR contextNote chứa "Trả về"/"không lùi được" (3 mode OneLevel/OneStep/Assignee giữ ChoDuyet → distinguish qua ContextNote keywords) - Parse fromPhase/toPhase từ summary regex "Chuyển phase X → Y" - id prefix "syn-" để distinct vs real Approval rows - Dedupe synthetic vs real Reject Approval (post-Plan AC) qua approverUserId + timestamp 5s bucket key - Merge approvals + dedupedSynthetic → sort by approvedAt → render Reversible: KHÔNG touch DB, KHÔNG migration. FE-only fix recover history cho mọi PE cũ trước deploy. Mirror 2 app §3.9 identical logic. Verify: - npm build × fe-user + fe-admin PASS 0 TS err - BE/test unchanged froma734bf2Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
React + TypeScript + Vite
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Oxc
- @vitejs/plugin-react-swc uses SWC
React Compiler
The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see this documentation.
Expanding the ESLint configuration
If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Remove tseslint.configs.recommended and replace with this
tseslint.configs.recommendedTypeChecked,
// Alternatively, use this for stricter rules
tseslint.configs.strictTypeChecked,
// Optionally, add this for stylistic rules
tseslint.configs.stylisticTypeChecked,
// Other configs...
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])
You can also install eslint-plugin-react-x and eslint-plugin-react-dom for React-specific lint rules:
// eslint.config.js
import reactX from 'eslint-plugin-react-x'
import reactDom from 'eslint-plugin-react-dom'
export default defineConfig([
globalIgnores(['dist']),
{
files: ['**/*.{ts,tsx}'],
extends: [
// Other configs...
// Enable lint rules for React
reactX.configs['recommended-typescript'],
// Enable lint rules for React DOM
reactDom.configs.recommended,
],
languageOptions: {
parserOptions: {
project: ['./tsconfig.node.json', './tsconfig.app.json'],
tsconfigRootDir: import.meta.dirname,
},
// other options...
},
},
])