Frontend de michangarrito - Workspace V2
Go to file
rckrdmrd 2c4db175c2 [MCH-FE] feat: Connect Dashboard to real API
Replace hardcoded mock data with TanStack Query hooks:
- dashboardApi.getStats() for stats cards (sales, orders, customers, fiado)
- ordersApi.getAll() for recent orders list
- inventoryApi.getLowStock() for low stock alerts

Add loading spinners and error states for each section.
Add TypeScript interfaces for API response types.
Add formatCurrency helper for MXN formatting.
Add Spanish labels for order status.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:15:04 -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 Dashboard to real API 2026-01-20 02:15:04 -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...
    },
  },
])