Files
solution-erp/fe-admin
pqhuy1987 0db1b99457
All checks were successful
Deploy SOLUTION_ERP / build-deploy (push) Successful in 6m25s
[CLAUDE] FE-Admin: KHKK man Thao tac dung LAI cay Nam>Du an>Hang muc>4 GD (FE-only, 0-mig)
Anh: "cho hien thi no giong the nay nhe" (chi sang cay o man Danh sach) + "Hien thi theo ngay
thang du an hang muc phieu duyet ncc va phieu KHKK tuong ung".

=== LAM GI ===
Tang tren man Thao tac nay DUNG LAI chinh `PipelineTreePanel` — cay
📅 Nam > 📁 Du an > 🧱 Hang muc > 4 folder giai doan, dung cay anh tro sang.

🔴 DUNG LAI thay vi dung ban thu hai: cay do DA co san tang NAM + gom hang muc + 4 folder;
chep lai la de 2 su-that, sua 1 cho quen cho kia. Lead vua tu tay dung cay 2 cap
(Du an > Hang muc) o luot truoc — nay GO HAN, vi no la ban thu hai cua cung mot hinh.

🔴 2 callback DA CO SAN, khong phai them moi:
· `onOpenPe` (them o dot D/O6) => bam phieu PE tren cay = nap THANG vao form tao, o lai man.
· `onOpenKhkk` => bam phieu KHKK = mo o panel 2.
Khong truyen thi cay tu `navigate` roi man — dung thu anh cam ("ko re-direct").

🔸 `bodyMaxHClass="max-h-none"`: `Tier` da tu cuon; de tran mac-dinh cua cay thi thanh 2
thanh cuon long nhau.

=== DON DEAD CODE (do go cay tu-dung) ===
· query `khkk-pe-candidates` GO khoi panel nay — cay tu nap index PE cua no; giu lai la goi
  mang cho danh sach khong con ai ve.
  🔸 `KhkkCreatePage` VAN dung key nay cho o chon PE cua form tao => cache dung chung, form
     tao KHONG mat du-lieu.
· go `awaiting` / `byProject` / `countProject` / `collapsed` / `formatDate` / prop
  `selectedPeId` — tat ca chi ton tai de phuc vu cay tu-dung.

=== HAU-KIEM host khac ===
4 host cay cua module Hop dong (ContractsListPage · HardCopiesPage x2 · MyContractsPage):
`onOpenPe` = 0, `hideSearch` = 0 => KHONG doi hanh vi. Ca 2 prop deu opt-in.

Verify dist bang NOI DUNG (khong tin thoi-gian build): chuoi moi 'Cay toan trinh — bam phieu'
= 1/1 ca 2 app; chuoi CU 'Da duyet · chua lap KHKK' = 0/0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-05 21:53:39 +07:00
..

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:

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...
    },
  },
])