Commit graph

49 commits

Author SHA1 Message Date
25e4e15eec refactor: remove console.log statements for cleaner code 2026-04-29 18:13:29 +02:00
899289f6f8 feat: add posizione column to appunti and update related logic for data handling
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 18:12:28 +02:00
b3c70bfa1a feat: add admin appunti management page and related functionality
- Introduced a new page for managing appunti in the admin area.
- Created AppuntiProvider to manage appunti state and API interactions.
- Added schemas for appunti and appunti groups.
- Implemented CRUD operations for appunti and appunti groups in the API.
- Removed potenziali related files and services as part of the refactor.
- Updated the public schema to include appunti and appunti groups.
- Improved error handling in the appunti service.

Co-authored-by: Copilot <copilot@github.com>
2026-04-29 15:12:52 +02:00
60e4b187bf Refactor: Update Zod schemas and replace custom types with imported schemas across various files
- Replaced custom Zod types with imported schemas in stripe router and user router.
- Updated payment controller to use new enum imports for order types and payment statuses.
- Refactored payment tests to utilize the new enum structure.
- Removed deprecated zod_types file and created new zod_chat_types file for chat-related schemas.
- Adjusted service files to align with the new order type enums and schemas.
- Enhanced the Caratteristiche type definition using Zod for better validation.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 20:32:19 +02:00
98463da038 feat(chat): refactor chat components to use ChatProvider for context management
- Updated ChatTopbar and Chat components to utilize ChatProvider for managing chat state and user information.
- Removed unnecessary props from ChatTopbar and adjusted its implementation to fetch data from context.
- Added ChatProvider to encapsulate chat-related state and functionality.
- Enhanced message handling by introducing reply and forward features in the chat schema and API.
- Cleaned up unused components and optimized imports across chat-related files.
- Improved user avatar color generation logic and removed hardcoded color values.
- Updated loading states and error handling in admin chat management pages.
2026-04-27 16:52:32 +02:00
ed7359aa16 refactor: update confirmation handling in service announcements
- Changed the confirmation status checks from `accettato_conferma_at` to `status_conferma` in various components and controllers.
- Introduced a new `StatusConfermaEnum` to standardize confirmation statuses.
- Removed deprecated confirmation-related fields from the `ServizioAnnunci` schema.
- Deleted unused confirmation-related API methods and adjusted related logic in the service controller.
- Updated the search parameters schema to use the new confirmation status.
- Removed the `conferma-immobile` and `riapri-conferma` pages as they are no longer needed.
2026-04-09 16:17:24 +02:00
3f477ca3b8 refactor: update session handling across components to use new session structure and improve loading states 2026-04-09 11:09:25 +02:00
92beb2d356 feat: refactor table components to use new UI structure and implement DataTable features 2026-03-19 10:24:32 +01:00
4ac90699b6 feat: implement DataTableProvider for centralized data management and refactor related components 2026-03-18 14:54:33 +01:00
58ea254180 feat: refactor Annuncio context and related data fetching for improved structure and clarity 2026-03-17 18:47:30 +01:00
1307f352a4 feat: enhance payment preparation logic and add rinnovo handling
- Refactor `preparePayment` function to handle multiple order types including Rinnovo.
- Introduce new `RinnovoSolver` function to calculate renewal packs based on duration.
- Add `createRinnovo` service to manage the creation of renewal orders.
- Update `whIntentSucceededHandler` to handle payment confirmations for Rinnovo and other order types.
- Introduce default conditions for packs in `prezziario.service.ts`.
- Add new utility functions for managing renewal durations and permanenza.
- Update database interactions to ensure proper handling of orders and renewals.
- Enhance error handling and logging throughout the payment and renewal processes.
2026-03-17 18:46:43 +01:00
6c36bb9b74 feat: add order editing form and payment processing pages
- Implemented FormEditOrder component for editing orders with validation and submission handling.
- Created SchedaAnnuncioPage for displaying printable announcement details.
- Added BonificoManualePage for manual bank transfer payment instructions.
- Developed PagamentoPage for Stripe payment processing with PaymentIntent creation.
- Introduced PreviewPurchasePage for preparing payment with service details.
- Added pagamenti.controller for handling payment preparation and retrieval of payment data.
2026-03-08 01:02:57 +01:00
b32ebf9fde refactor: remove redundant getServizio invalidations across components 2026-03-06 18:23:35 +01:00
ccdbe03c2f feat: invalidate servizio data cache in multiple components after updates 2026-03-06 16:15:47 +01:00
6a101f7b68 refactor: change exported types and constants to internal scope in Facehash and RicercaProvider components 2026-02-09 11:45:41 +01:00
9f02c49193 feat: refactor Slider component and update budget filters for improved functionality and responsiveness 2026-02-03 12:54:41 +01:00
6399bda689 fix: update paramsMapping keys for clarity and consistency 2026-01-23 13:55:59 +01:00
746b0dd1bf refactor: simplify filter logic in RicercaProvider; remove unused state and optimize options generation 2026-01-20 19:05:15 +01:00
edaee780d6 refactor: remove unused annunci data fetching and components; update ricerca logic
- Deleted the `annunci.ts` file which contained the database fetching logic.
- Removed the `TestAppPage` component that relied on the deleted data fetching.
- Eliminated the `AnnunciList` component that was dependent on the removed data.
- Updated `annunci_map.tsx` to handle optional `selectComune` parameter.
- Refactored `annunci_tutorial.tsx` to use `buildRicercaUrl` for navigation.
- Adjusted `annuncio_card.tsx` for consistent styling and layout changes.
- Modified `codiceRicerca.tsx` to fix z-index issue.
- Enhanced `failed-loading.tsx` and `500Auth.tsx` for responsive design.
- Updated `annunci.tsx` to include loading state for map and annunci list.
- Refined filter handling in `Filters` component to use a single `setAllParams` method.
- Introduced `FrequentSearches` component for better user navigation.
- Updated `RicercaProvider` to streamline state management and URL building.
- Adjusted server-side logic in `annunci.controller.ts` to ensure valid data.
2026-01-20 18:38:17 +01:00
c280196719 refactor: remove compatibility patch logic and unused imports from getServerSideProps and RicercaProvider 2025-12-30 10:09:40 +01:00
e1f7c888f3 feat: add compatibility patch for query parameters in getServerSideProps 2025-12-30 09:59:39 +01:00
3b2538736d refactor: shorten query state keys for improved readability 2025-12-29 19:11:35 +01:00
5fee3bc274 feat: add budget filtering functionality with min and max budget inputs 2025-12-29 19:10:46 +01:00
c6b325368a refactor: update consegna handling to support multiple values and adjust related components 2025-12-29 18:33:00 +01:00
9b37e5899d fix: handle errors in PotenzialiProvider and SessionProvider by reloading the window 2025-12-11 15:42:02 +01:00
c153dca662 feat: update PotenzialiProvider to include query options for improved data fetching 2025-12-03 17:00:20 +01:00
2ef18a0b5b feat: enhance Potenziali management with delete functionality and user assignment 2025-12-03 16:16:28 +01:00
8ac1c1da3d feat: refactor Potenziali context to use editingItem and improve item management 2025-12-03 14:51:35 +01:00
cfcddea9c8 feat: implement Potenziali and PotenzialiGroups management with CRUD operations and UI enhancements 2025-12-03 13:56:53 +01:00
3143870cfd feat: integrate DnD Kit for enhanced kanban functionality and add Potenziali management components 2025-12-02 16:14:37 +01:00
47f35c3bbe refactor: remove pagination logic and related state management from Annunci and RicercaProvider components 2025-11-27 13:37:37 +01:00
a9df30cb70 refactor: remove Potenziali component and related context, update translations 2025-11-20 15:06:00 +01:00
e7e397759a pot 2025-11-20 15:05:05 +01:00
219f76dd10 catasto 2025-11-13 15:45:55 +01:00
169dccfc7d feat: update Admin confirmation modal to display transient status information; refactor related components and enhance localization strings 2025-11-12 17:05:05 +01:00
3dc0bccb58 feat: implement lazy loading for CardAnnuncio component; add skeleton loading state and enhance InputNumber component with height prop 2025-11-12 15:52:04 +01:00
4ca16be4a4 feat: update sorting options and default values in RicercaProvider; refine filter logic in RicercaFilters 2025-11-11 15:54:04 +01:00
23525d8f14 feat: add AdminLavoraConferma and AdminContratto components for managing service confirmations and contracts
- Implemented AdminLavoraConferma component to handle confirmation processes with document management.
- Added AdminContratto component for managing rental contracts and related documents.
- Introduced shared components for document selection and display (DocInfo and DocCombo).
- Enhanced storage controller with a new function to retrieve storage ID from user storage ID.
- Updated database interactions to improve error handling and data retrieval.
2025-11-06 17:03:42 +01:00
4ca5c59ffe refactor(i18n): Improve context value handling in I18nProvider 2025-11-03 16:02:27 +01:00
afb1a24503 feat(RicercaProvider): Sort unique values and enhance sorting logic for options based on proximity to the current month 2025-10-30 09:42:21 +01:00
6acfc08169 new storage for files 2025-10-24 16:10:59 +02:00
5755b00d7b formatt 2025-08-29 16:18:32 +02:00
3f82763168 eslint migration biome 2025-08-28 18:27:07 +02:00
f0881a062f test with turbo 2025-08-28 13:46:51 +02:00
485bcda0d3 Refactor session handling: implement useEnforcedSession for better session validation across components 2025-08-20 14:04:23 +02:00
0be8a9d4d2 Increase refetchInterval in SessionProvider for improved data consistency 2025-08-08 19:58:03 +02:00
f9b3f3e51e Add refetchInterval to session query for improved data consistency 2025-08-08 19:13:32 +02:00
9b44cad8eb Refactor pagination logic in AnnunciList and update API to use page and pageSize parameters for improved data fetching 2025-08-08 16:55:02 +02:00
29c64c7e39 init 2025-08-04 17:45:44 +02:00