Frontend de michangarrito - Workspace V2
Go to file
rckrdmrd 0385695d27 [MCH-FE] feat: Connect Inventory to real API
- Replace mock data with real API calls using React Query
- Add useQuery hooks for products, movements, low stock, and alerts
- Implement loading state with spinner
- Implement error state with retry button
- Add alerts banner for inventory warnings
- Add empty state messages for no data scenarios
- Add proper TypeScript interfaces for API responses

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:15:16 -06:00
e2e Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
public Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
src [MCH-FE] feat: Connect Inventory to real API 2026-01-20 02:15:16 -06:00
.dockerignore Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
.env Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
.gitignore Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
Dockerfile Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
eslint.config.js Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
index.html Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
nginx.conf Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
package-lock.json fix: Corregir errores TypeScript y agregar dependencias i18n 2026-01-17 05:21:30 -06:00
package.json fix: Corregir errores TypeScript y agregar dependencias i18n 2026-01-17 05:21:30 -06:00
playwright.config.ts Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
postcss.config.js Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
README.md Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
tailwind.config.js Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
tsconfig.app.json Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
tsconfig.json Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
tsconfig.node.json Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
vite.config.ts Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06: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...
    },
  },
])