metallkart-erp/frontend
louis 95eb91394e feat: SPEC-36C unconfirm PO + fix supplier Decimal bug + fix lot split quantity
- SPEC-36C: PATCH /:id/unconfirm reverts CONFIRMED→DRAFT, rejects PENDING/APPROVED PRs, blocks if paidAt exists
- Route restricted to DIRECTION_FIN/ADMIN; frontend button with Popconfirm in PO drawer
- Fix supplier save: Prisma Decimal serialized as string, coerce Number() in SuppliersTab initEditValues
- Fix lot split modal: use total item quantity instead of totalAmount (money) as default

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 19:54:08 +03:00
..
public feat: add screenshot-analysis-17a module (auto-pipeline) 2026-03-19 15:04:03 +00:00
src feat: SPEC-36C unconfirm PO + fix supplier Decimal bug + fix lot split quantity 2026-04-09 19:54:08 +03:00
.gitignore feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
eslint.config.js feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
index.html feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
package-lock.json feat: add achats_d module (auto-pipeline) 2026-03-18 14:12:32 +00:00
package.json feat: add achats_d module (auto-pipeline) 2026-03-18 14:12:32 +00:00
README.md feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
tsconfig.app.json feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
tsconfig.json feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
tsconfig.node.json feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00:00
vite.config.ts feat: frontend scaffolding - Vite+React+AntDesign+auth+layout 2026-03-13 14:23:18 +00: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...
    },
  },
])