Commit graph

130 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
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
a36fd52af2 feat: implement email functionality for contact details with attached PDF scheda 2026-03-04 16:39:27 +01:00
783dc137ea fix: update budget condition checks in setupSaldoServizio for improved accuracy 2026-03-04 12:01:40 +01:00
3aed2c4a6b fix: adjust budget thresholds for pack selection logic in getPacksPerServizio 2026-03-04 12:01:10 +01:00
c31a68ef6d feat: implement image and video reconciliation, update pricing options, and enhance media removal functionality 2026-03-02 15:35:23 +01:00
ac1859e88f feat: add service management features and update Italian translations
- Introduced new service status translations in Italian.
- Added service detail and management components for user and admin views.
- Implemented API endpoints for fetching service data and announcements.
- Enhanced service data handling with improved date parsing and formatting.
- Created new pages for service details accessible by both users and admins.
- Updated database queries to support new service functionalities.
2026-02-25 15:30:53 +01:00
6cd09cce1b refactor: remove console.log statements from various files for cleaner code 2026-02-24 15:18:59 +01:00
5f5aa18b87 refactor: remove unused pm_id parameter from whIntentCreatedHandler and related functions 2026-02-24 14:43:28 +01:00
baf92787a7 fix: log event data for payment_intent.created in stripe webhook handler 2026-02-24 14:06:47 +01:00
fd7da28535 feat: implement manual order creation dialog and associated form components 2026-02-24 10:40:32 +01:00
4ec060c14d save payment method on intent creation wh received 2026-02-20 11:52:14 +01:00
89248e3787 refactor: clean up unused console logs and streamline Stripe integration 2026-02-20 11:42:46 +01:00
52801bebd1 feat: refactor payment processing and checkout flow with Stripe integration
- Removed AcquistoProcessing component and replaced it with a new CheckoutForm component for better separation of concerns.
- Added new payment checkout page to handle payment intents and display payment status.
- Updated server-side logic to create payment intents and retrieve payment data for checkout.
- Enhanced error handling and user feedback during payment processing.
- Introduced new utility functions for fetching payment data and managing Stripe integration.
2026-02-20 11:36:47 +01:00
627267b86f fix: update processEvents function to return status messages and add process_events script 2026-02-19 12:14:34 +01:00
1a4e3dc776 fix: add userId to email data in SbloccaContatti function 2026-02-19 11:19:29 +01:00
95315e6605 feat: implement email sharing functionality for selected listings 2026-01-27 16:30:19 +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
1baca2997a Refactor AnnuncioCard to use AdminActions and UserActions based on user role; remove unused Interactions component; update button sizes and styles across various components; enhance ServizioContent with mutation handling; improve user feedback on actions; update confirmation messages for clarity; adjust layout for better responsiveness in AnnunciRichiesti; streamline form submissions with updated data structures. 2026-01-16 15:47:38 +01:00
539f4dc4f8 chore: update biome schema version and refactor code style
- Updated biome schema version from 2.3.1 to 2.3.11 in biome.json.
- Refactored package.json for better readability and updated dependencies.
- Adjusted class names in InformationBubble, ChatAttachments, ChatBubble, FileUpload, Loading, and other components for consistent styling.
- Changed height classes from fixed pixel values to relative values for better responsiveness.
- Removed unnecessary comments and unused variables in user.controller.ts.
2026-01-14 14:21:57 +01:00
210ee3a9f2 feat: update Stripe integration and add settings page with health check 2026-01-14 12:02:03 +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