Commit graph

245 commits

Author SHA1 Message Date
ef31656639 feat: add userEmailQueue procedure to retrieve queued emails for a user 2026-03-25 17:30:45 +01:00
7adb33f485 feat: enhance RichiesteTable with improved status and decorrenza handling
- Updated RichiesteTable to display decorrenza with tooltip based on status.
- Enhanced status display with badges indicating various states (e.g., Attesa attivazione, Interrotto).
- Added Popover for displaying Annunci details in RichiesteTable.
- Refactored API to fetch user interests and related announcements.
- Introduced Queue component to display email events for users.
- Updated translations to include new "Requests" section in admin navigation.
- Improved database queries for fetching user interests and announcements.
2026-03-25 17:30:33 +01:00
2f9a0762ad feat: update database schema and add export functionality for users to Fatture In Cloud 2026-03-25 11:28:44 +01:00
5bff7219e8 refactor: remove ServiziHeader component and integrate its functionality directly into RicercaUser page
feat: update Servizio component to handle interruzioneDays and acceptedInterr logic

refactor: simplify servizio_actions by removing unused InterruzioneServizio and EditParametri components

feat: enhance FormEditServizioAdmin to include interruzioneDays and acceptedInterr fields

fix: adjust email service to delete obsolete emails and handle invalid email types gracefully

chore: update stripe controller to utilize interruzioneDays for lock expiration logic

fix: ensure correct handling of servizio expiration and interruzione logic in service controller
2026-03-24 17:01:40 +01:00
1d1051f25a feat: implement AvvisoInterruzione email template and integrate into mailer service 2026-03-23 12:01:29 +01:00
70cc0e4536 feat: add error handling for database connection pool to manage admin shutdown during backup windows 2026-03-23 12:01:18 +01:00
ed93eb12a1 feat: update Counter component to conditionally apply disabled styles and enhance FormServizio with improved disabled state handling 2026-03-20 17:03:35 +01:00
cc06738db4 feat: remove unused EmailContattiConScheda component and related email functionality 2026-03-20 16:02:13 +01:00
d4ec0919c3 feat: update userSendConfermaIntent to reflect interest notification for property 2026-03-20 15:54:54 +01:00
6a20a7fb36 feat: enhance getCompatibileAnnunci query to include additional delivery month conditions 2026-03-20 14:16:03 +01:00
8c7f0cd9b3 feat: update service queries to use getAllServiziData for improved data handling 2026-03-20 13:53:56 +01:00
b274a729ee feat: refactor DataTableProps type declaration and remove unused Facehash component files 2026-03-19 10:23:07 +01:00
a87b9f57a7 feat: implement Result type for handling success and error states in API responses
feat: create AnnuncioNotFound page to handle missing announcements gracefully
feat: refactor Annuncio component to use structured AnnuncioData and improve SEO metadata handling
refactor: remove unused getAnnuncioMetaByCod function and streamline getAnnuncioData logic
2026-03-19 10:20:41 +01:00
1c2202f604 feat: enhance error messages in middleware to include request URL for better debugging 2026-03-18 17:39:12 +01:00
083a97e74f feat: add tipo_locatore to PostUnlock display and getProprietarioDataHandler for enhanced locatore information 2026-03-17 19:10:04 +01:00
57cd55d2d8 feat: add tipo_locatore field to various components and update related logic for improved locatore display 2026-03-17 19:08:14 +01:00
5327cc86c6 feat: add note field to Users schema and implement NoteUtenteDialog for user notes management 2026-03-17 18:47:35 +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
162c456834 refactor: remove ShareAnnunci email component and its related type from mailer 2026-03-17 18:42:25 +01:00
300c9edfc4 feat: add admin contact details dialog and streamline cache invalidation in AnnuncioEditForm 2026-03-12 16:55:06 +01:00
41d743c97f refactor: update TypeScript SDK path and improve error handling in servizio service 2026-03-12 16:27:24 +01:00
6c53ef130c feat: add dotenv package for environment variable management and update payment logic to use new database queries 2026-03-12 16:24:16 +01:00
400dc037fe feat: add Richieste management page and table for admin 2026-03-11 12:07:19 +01:00
a04e3c2fd3 feat: implement user labels management with CRUD operations and UI integration 2026-03-10 16:56:26 +01:00
eedaab6e9b fix: correct receipt note wording and enhance address parsing in servizio controller 2026-03-10 15:17:25 +01:00
0759f4216f feat: add telefono field to UsersTable and user controller for enhanced user information 2026-03-10 13:57:29 +01:00
0619ca0c34 feat: add email sending functionality for receipt and conditions in AdminOrdiniModal 2026-03-10 13:16:32 +01:00
a09fa0597d fix: update PDF filename format to replace spaces with dashes and enhance Puppeteer service configuration 2026-03-10 12:36:11 +01:00
70c1902a36 fix: swap order of nome and cognome in username generation across forms and auth controller 2026-03-10 12:27:51 +01:00
09479eb9f2 fix: update PDF filename format in ReceiptGenerator and whIntentSucceededHandler to include customer name and date 2026-03-10 11:28:52 +01:00
464e5285a1 fix: enhance PDF generation error handling and timeout settings in puppeteer service 2026-03-10 09:56:33 +01:00
f364e79aaf feat: add codiceFiscale to PurchaseData and update Receipt component to display it 2026-03-09 19:14:05 +01:00
237ecec27e feat: add email notification for new payment received with PDF receipt attachment 2026-03-09 18:30:54 +01:00
a9a9104711 fix: update payment method type in PurchaseData and related components 2026-03-09 18:14:22 +01:00
0904bba970 feat: enhance AddAnnuncio options to include title in label and update query to select title in getAnnunciAvailableToAdd 2026-03-09 10:41:34 +01:00
b861d43520 feat: refactor output structure in preparePayment procedure for consistency 2026-03-09 10:15:59 +01:00
73245f3564 feat: update payment preparation logic to include 'Rinnovo' type and handle errors gracefully 2026-03-08 15:33:50 +01:00
a8d29c6840 feat: refactor ordini and servizio controllers to use services, remove old controller files 2026-03-08 14:34:21 +01:00
2aa5ccea1d feat: update Receipt data structure to remove items and include packName, discount, and amount 2026-03-08 01:22:03 +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
ba4debdd1d Refactor: Remove unused procedures and clean up router files
- Deleted contact router and its associated mail functionality.
- Removed addEvent mutation from event_queue router.
- Cleaned up fatture router by removing createClient and getListClienti procedures.
- Commented out deletePrezziario mutation in prezziario router.
- Removed unused procedures in servizio router, including getServizioOrdini and getPreOnboardData.
- Cleaned up stats router by removing commented-out code.
- Updated stripe router to restrict health check to admin users and changed several public procedures to protected.
- Commented out sync router procedures and related types.
- Removed unused client-related functions in fic controller.
- Cleaned up servizio controller by removing getServizioOrdini and commented-out code.
- Refactored auth service to inline pwResetTokenFromMailHandler logic.
- Commented out deletePrezziario function in prezziario service.
- Cleaned up zod types by commenting out unused types.
- Commented out getMessagesArray function in kysely helper.
2026-03-05 12:32:03 +01:00
b27c06a18b feat: add API authentication context to TRPC and refactor Stripe webhook handler 2026-03-05 11:54:04 +01:00
8d89be35d5 feat: enhance error handling with custom messages for database operations 2026-03-05 10:29:08 +01:00
c423a7bdb7 a 2026-03-04 20:45:21 +01:00
b500c7133f feat: integrate email event queue for payment confirmation with attachments 2026-03-04 20:22:17 +01:00
81337c852f feat: add incroci page and API integration for managing incroci data 2026-03-04 19:56:09 +01:00
5579dfeed0 refactor: change export to const for CONDIZIONI_CACHE_PREFIX and genPdfCondizioni function 2026-03-04 19:12:37 +01:00
280e0ab5c2 feat: update payment recap links and add new receipt page
- Changed payment recap link in OrdiniModal to point to the new receipt page.
- Added new PaymentRecapPage for displaying receipt details.
- Updated PaymentsTable to set paid_at date based on payment status.
- Introduced manual payment type in PaymentType and updated related strings.
- Refactored getOrdineRicevutaData to use overridableProcedure for access control.
- Enhanced mail sending functionality to include PDF attachments for receipts and conditions.
- Updated PDF generation service to handle new receipt PDF generation.
- Cleaned up context checking utilities by removing unnecessary session checks.
2026-03-04 19:12:01 +01:00