FactuGES_ERP/apps/web
David 2f8122ca77 refactor: replace PageFormHeader with RdxEditorHeader in customer and supplier pages
- Updated CustomerViewHeader to use RdxEditorHeader for a more consistent header layout.
- Refactored CustomerViewPage to utilize RdxPageFrame and RdxPageContainer for improved structure.
- Replaced PageFormHeader with RdxEditorHeader in AccountPage for uniformity.
- Adjusted SupplierCreatePage and SupplierUpdatePage to use RdxPageFrame and RdxPageContainer for layout consistency.
- Removed SupplierLayout component as it was no longer necessary.
- Enhanced SupplierDetailPage to utilize RdxPageFrame for better layout management.
- Introduced RdxEditorHeader component to encapsulate header functionality for editor pages.
- Updated tests to cover new RdxEditorHeader functionality and removed obsolete tests related to RdxPageHeader.
2026-09-04 13:30:22 +02:00
..
public . 2025-05-28 16:21:09 +02:00
src refactor: replace PageFormHeader with RdxEditorHeader in customer and supplier pages 2026-09-04 13:30:22 +02:00
.env.acana Subida a producción como Acana 2025-11-27 20:07:30 +01:00
.env.development fix: update API server URL in development environment and enhance issued invoice model search index 2026-09-01 19:27:59 +02:00
.env.production Subida a producción como Acana 2025-11-28 16:00:18 +01:00
.env.rodax Subida a producción como Acana 2025-11-27 20:07:30 +01:00
Dockerfile . 2025-11-04 16:59:37 +01:00
index.html v0.6.5 2026-05-05 13:34:36 +02:00
package.json v0.10.8 2026-09-01 18:12:49 +02:00
README.md feat: add error handling and feedback state management for customer and proforma updates 2026-08-06 13:03:48 +02:00
tsconfig.app.json feat: update TypeScript configurations and add frontend testing documentation 2026-08-19 10:39:15 +02:00
tsconfig.json feat: update TypeScript configurations and add frontend testing documentation 2026-08-19 10:39:15 +02:00
tsconfig.node.json . 2025-05-10 10:40:40 +02:00
vite.config.mts feat: update Vite configuration for improved HMR support and module resolution 2026-08-20 10:41:56 +02:00

apps/web

Aplicación frontend principal del ERP.

Documentación canónica

Runtime actual de autenticación

La app usa @erp/identity/client como runtime actual.

Flujo actual

  • La sesión y la empresa activa se resuelven según el flujo documentado en docs/frontend/auth-and-company-selection.md.
  • Las rutas tenant-scoped deben respetar las reglas de X-Company-Id documentadas en docs/architecture/tenant-context.md.

Headers

  • No duplicar aquí la matriz de headers.
  • Consultar docs/frontend/auth-and-company-selection.md para endpoints excluidos y tenant-context.md para reglas tenant-scoped.

App company switcher

Componente:

apps/web/src/layout/app-company-switcher.tsx

Propósito:

  • mostrar la empresa activa real en el layout autenticado
  • permitir cambiar entre availableCompanies de la sesión actual

Reglas:

  • usar el contexto de identity
  • no manejar tokens
  • no llamar directamente a GET /companies/available
  • no usar companySlug para auth
  • no modificar el access token
  • respetar el flujo canónico documentado en docs/frontend/auth-and-company-selection.md

Refresh automático

La app implementa refresh automático global sobre 401.

La semántica completa de retry, exclusiones y limpieza de sesión se documenta en docs/frontend/auth-and-company-selection.md.