Commit Graph

200 Commits

Author SHA1 Message Date
f5217675b5 refactor: simplify quote items table with reusable components and hooks
- Refactored QuoteItemsSortableDataTable to reduce lines from 593 to 88, maintaining API and re-exporting types.
- Introduced QuoteItemsAddActions for centralized row/article/block addition buttons.
- Created QuoteItemsEmptyState to handle empty states with title, description, icon, and actions.
- Separated components for table header, body, and drag overlay for better modularity.
- Implemented useQuoteItemsSortableTable hook to manage row selection, drag-and-drop functionality, and item manipulation.
- Added tests for the new hook to ensure functionality for duplication, deletion, and drag-and-drop operations.
- Updated documentation to reflect changes and improvements in the quote items table structure.
2026-10-19 18:05:03 +02:00
e332fcba52 feat: enhance chapter management and UI interactions in quotes
- Implement drag-and-drop functionality for chapters using the folder icon as the activator, improving accessibility and user experience.
- Refactor chapter deletion dialog to clearly separate options for keeping or deleting chapter contents, with appropriate translations and UI adjustments.
- Update empty state handling for quotes without items, providing clear actions to add content.
- Adjust translations for clarity and consistency across multiple languages.
- Remove unnecessary empty columns in the chapter details table, streamlining the layout.
- Enhance visual styling with borders and spacing adjustments for better chapter delineation.
- Add tests to cover new functionalities and ensure existing features remain intact.
2026-10-19 17:54:52 +02:00
3b660bf27e feat: enhance chapter and detail row interactions with improved animations and visibility controls
- Adjusted drag handle alignment in QuoteChaptersDataTable for consistent width and positioning.
- Implemented height and opacity transitions in useChapterCollapse for smoother chapter collapsing.
- Updated QuoteItemsSortableTableRow to identify active rows with data attributes and apply consistent styling.
- Refined detail row selection to limit checkboxes to detail rows only, improving user experience.
- Enhanced visibility of controls on hover and focus for both chapter titles and detail rows.
- Improved spacing and alignment for chapter titles and associated controls, ensuring a cohesive layout.
- Added tests to validate new behaviors and interactions, ensuring functionality remains intact.
2026-10-19 16:56:37 +02:00
bc34a073ad feat: implement MariaDB integration testing suite and related fixtures
- Updated `capitulos-esquema.md` to reflect the current state of models and integration testing setup.
- Added `jest.mariadb.config.js` for MariaDB specific test configurations.
- Introduced `mariadb.fixture.mock.ts` to handle isolated MariaDB connections for testing.
- Created integration tests for quote chapters in `quoteChapters.mariadb.test.ts` to validate business logic against MariaDB.
- Implemented `mariadbSafety.test.ts` to ensure safety checks and error handling during integration tests.
- Added `useChapterCollapse.ts` hook for managing chapter collapse animations in the client.
- Introduced `empty.tsx` components for consistent empty state UI across the application.
- Updated `jest.config.js` to ignore MariaDB test files in the standard test run.
- Enhanced `package.json` with a new script for running MariaDB tests.
2026-10-19 16:38:44 +02:00
64bd7f743d Capítulos en cotizaciones 2026-10-19 13:55:16 +02:00
c5a40e32a3 v1.2.7 2026-10-14 12:57:21 +02:00
c5aff5d2cb v1.2.5 2026-10-14 12:00:19 +02:00
a5dc3395e3 v1.2.4 2026-10-13 18:20:06 +02:00
63d51b8c6d . 2026-10-13 17:36:48 +02:00
8c09789f3e Poder indicar otra divisa en las cotizaciones 2026-10-13 14:05:02 +02:00
0a67c6a0e9 Error al guardar cotizaciones con bloques 2026-10-09 13:10:11 +02:00
52b38cb9d4 Actualización de bloques y de sus traducciones 2026-10-08 19:24:00 +02:00
ac117c1b18 Refactor code structure for improved readability and maintainability 2026-10-08 18:19:31 +02:00
9faec986d7 feat: agregar soporte para el idioma francés en la aplicación 2026-10-08 18:07:30 +02:00
b4a6ac18f7 feat: agregar soporte para selección de idioma en la creación de cotizaciones 2026-10-08 12:36:03 +02:00
08f01e2b3b Selector para idioma al genera el PDF, tanto en alta como en modificación de cotizaciones. 2026-10-08 12:35:37 +02:00
e6001d62a9 Corregir sincronización de idioma tras login y reactividad i18n 2026-10-07 18:37:46 +02:00
f8d0979059 feat: enhance quote management with localized descriptions and catalog integration
- Updated QuoteDetailsCardEditor to display localized descriptions for articles.
- Modified QuoteEdit to exclude localized descriptions from the payload sent to the server.
- Implemented GetCatalogArticlesByIdsUseCase for fetching catalog articles by IDs.
- Enhanced ICatalogRepository with methods for retrieving articles by ID.
- Introduced CatalogArticle and CatalogArticleTranslation entities for better catalog representation.
- Added resolveLocalizedQuoteDescriptions service to resolve descriptions based on user language.
- Updated sales context to include catalog article lookup functionality.
- Refactored quote controllers and presenters to utilize localized descriptions.
- Added tests for ArticleIdentifier validation and new catalog entities.
- Created test configuration for isolated testing environments.
2026-10-07 18:30:41 +02:00
c77a3a3af5 feat: internationalize button labels and UI components
- Updated CancelButton and SubmitButton to use i18next for localization.
- Modified DataTableColumnHeader and DataTableFacetedFilter to include translations for sorting and filtering messages.
- Enhanced DataTableSelectionColumn with localized aria-labels for accessibility.
- Localized titles and messages in SimpleEmptyState and ErrorOverlay components.
- Updated LayoutHeader to use i18next for navigation toggle label.
- Integrated i18next into useLogout for error messages.
- Localized alert dialog actions in useRemoveAlertDialog.
- Added new translations in en.json and es.json for various UI components.
- Updated breadcrumb and carousel components to use localized strings.
- Enhanced pagination component with i18next for navigation labels.
- Localized sheet component close button text.
2026-10-05 13:58:03 +02:00
988790f904 - Implement tests for UpdateProfile use case to validate language persistence and behavior when lang_code is omitted.
- Create a new client asset file for future use.
2026-10-05 12:56:33 +02:00
1d7ed6df38 Poder indicar la etiqueta del impuesto 2026-10-05 12:04:43 +02:00
75de474c16 Created a new test file for validating the UpdateProfile DTO, ensuring that the default_tax_label property accepts valid inputs and rejects invalid ones. 2026-10-05 10:59:59 +02:00
ec87ba82f0 Añadir confirmación de eliminación en acciones en línea de filas y mejorar pruebas para la tabla de cotizaciones 2026-10-04 15:06:56 +02:00
2527c2c785 Añadir acciones en línea para las filas de cotización y mejorar la gestión de filas activas 2026-10-03 15:32:48 +02:00
6f77eaad97 Añadir opción para mostrar la columna de descuento por defecto en las cotizaciones 2026-10-03 15:14:49 +02:00
c46d2b0df7 Poder mostrar u ocultar la columna de descuento en los detalles de una cotización 2026-10-03 13:57:15 +02:00
16ed939bdc Mostrar DevTool solo en modo desarrollo en QuoteEdit 2026-09-16 19:46:44 +02:00
6a79ea2299 Refactor formularios para eliminar el uso de register en favor de name en los campos de formulario, mejorando la legibilidad y simplificando la gestión de formularios. 2026-09-16 19:43:10 +02:00
3eb0396cbd Añadir funcionalidad de arrastre y gestión de filas en QuoteItemsSortable, incluyendo pruebas unitarias y ajustes en el formulario. 2026-09-16 19:13:11 +02:00
463c0662ed Añadir funcionalidad de selección y gestión de cantidades en CatalogPickerDataTable, incluyendo pruebas unitarias. 2026-09-16 16:51:31 +02:00
612355bcec Solucionados los problemas al hacer login. 2026-09-16 16:34:03 +02:00
9bc403b812 v.1.1.6 - Cambios en los textos de los bloques solicitados por Míriam 2025-04-25 11:04:12 +02:00
59a5bc946b 1.1.5 2025-04-17 23:28:43 +02:00
7adfb9fc06 v1.1.4 2025-04-16 14:16:08 +02:00
957a92aad9 . 2025-04-16 13:34:34 +02:00
b6cb56daff Carga dinámica 2025-04-16 11:29:47 +02:00
d018360967 v 1.1.3 2025-04-16 11:17:50 +02:00
735ec573c8 . 2025-04-16 11:10:22 +02:00
340cd11311 . 2025-04-14 21:12:16 +02:00
a20756724c . 2025-04-14 21:12:15 +02:00
1396c70d1f En una cotización, poder mover las líneas de detalle 2025-02-18 12:27:08 +01:00
8826697bc3 En la lista de cotizaciones, en la pestaña "Todos" no mostrar los archivados. 2025-01-28 19:14:19 +01:00
16303fc90e Error en el selector de artículos, La cantidad no cambiaba al paginar o poner y quitar filtros. 2025-01-28 18:59:21 +01:00
d24f8859b7 Error al insertar un bloque: falta inicializar el resto de campos (dto, precio unitario, etc) 2025-01-28 18:57:56 +01:00
4a53730bbb Error al cargar en el cliente los bloques predefinidos 2025-01-27 13:58:47 +01:00
e07525c104 #2 (comment) 2025-01-15 17:48:18 +01:00
3b53c89f5d #2 (comment) 2025-01-15 17:26:28 +01:00
3c4f28b2ed Compilación de cliente 2024-12-16 18:05:33 +01:00
73dff582e3 . 2024-12-16 18:01:14 +01:00
53ea788142 En el filtro de la búsqueda del catálogo, poner filtros complejos compuestos por AND 2024-12-16 17:58:39 +01:00