Commit graph

318 commits

Author SHA1 Message Date
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
9d66997001 feat: update defaultValue in PricingComponent to use prop value instead of hardcoded zero 2026-03-16 17:57:48 +01:00
1e3a1e390b feat: implement UserAvatar component with dynamic color assignment and memoization 2026-03-13 16:11:35 +01:00
d18aee8a95 feat: update admin actions layout and add contact details dialog; modify user link path in UsersTable 2026-03-12 17:02:35 +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
985a302a05 Refactor Prezziario schema and related components
- Updated the Prezziario schema to replace boolean flags (isAcconto, isSaldo, isConsulenza, isStabile, isTransitorio) with new fields (order_type, service_type, service_variant) to better represent service attributes.
- Modified NewPrezzoModal to align with the updated schema.
- Renamed FormNewServizioAcquisto to FormServizioAcquisto in user onboarding pages for consistency.
- Adjusted imports and component usage in the user view and service onboarding pages to reflect the new form name.
2026-03-12 16:26:01 +01:00
547b1d6ce6 feat: replace arrow icon with mouse pointer icon and add bounce animation for 'in_attesa' status 2026-03-12 13:48:45 +01:00
db63591bcb style: update component styles to use bg-card and adjust heights for consistency 2026-03-12 12:11:57 +01:00
400dc037fe feat: add Richieste management page and table for admin 2026-03-11 12:07:19 +01:00
98d6f5763d feat: replace button with confirmation dialog for sending email in AdminSendScheda 2026-03-11 12:07:11 +01:00
4e41324624 refactor: reorder email and telefono columns in UsersTable for improved layout 2026-03-10 18:05:15 +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
4e447cade4 feat: enhance UserAvatar component to accept FacehashProps and add WhatsApp link in UsersTable context menu 2026-03-10 15:05:36 +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
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
a9a9104711 fix: update payment method type in PurchaseData and related components 2026-03-09 18:14:22 +01:00
50ba1d4c5d Add documentation comments for admin and user-facing pages
- Added descriptive comments for various admin management pages including announcements, banners, blacklist, chats, and more.
- Documented user-facing pages such as chat, communications, dashboard, and profile.
- Included comments for authentication-related pages like password reset and invite acceptance.
- Enhanced clarity on the purpose and routing of each page in the application.
2026-03-09 17:33:02 +01:00
91eeace646 feat: add Umami event tracking to various buttons across components 2026-03-09 16:00:54 +01:00
366e17185c feat: enhance AnnunciRichiesti component to support adding announcements to services and update dialog styling 2026-03-09 11:07:35 +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
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
6211be289c feat: update layout and styling in UserDashboard and ServizioPage components 2026-03-06 18:54:48 +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
024059cee3 feat: add autocomplete attributes to email and password inputs in FormNewUser 2026-03-06 14:23:58 +01:00
ee670581e7 fix: update routing in user swap mutation to redirect to load-page 2026-03-06 14:10:36 +01:00
8159519c75 fix: adjust padding and add line clamping to codice display in CardAnnuncio 2026-03-05 12:34:27 +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
c31a68ef6d feat: implement image and video reconciliation, update pricing options, and enhance media removal functionality 2026-03-02 15:35:23 +01:00
068f4b0c01 chore: update Stripe dependencies and remove unused chart components
- Updated @stripe/react-stripe-js from ^5.4.1 to ^5.6.0
- Updated @stripe/stripe-js from ^8.6.1 to ^8.8.0
- Updated stripe from ^20.2.0 to ^20.4.0
- Removed dynamic imports for TimeserieBarChart and TimeserieBarChartStacked in AdminDashboard
- Deleted TimeserieBarChart and TimeserieBarChartStacked components
- Deleted Chart component and related utilities
2026-02-26 12:25:10 +01:00
320a5f19af feat: implement UserDashboardFaq component and add translation for "Dashboard" 2026-02-25 15:50:53 +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
70736e4aa1 refactor: update styling for Sidebar, DataTable, SiteHeader, AnnuncioCard, and Tabs components 2026-02-24 12:02:02 +01:00
ad6fc849f7 fix: add z-index to DropdownMenuContent for proper layering 2026-02-24 11:40:41 +01:00
5094255b65 refactor: enhance styling and layout for various components, including Accordion and Pricing sections 2026-02-24 11:36:26 +01:00
055fcc230e feat: add Moon2 icon component and update theme toggle with dropdown menu
refactor: adjust styling for navbar components and remove settings modal
i18n: add theme translations for light, dark, and system modes
2026-02-24 11:07:39 +01:00
fd7da28535 feat: implement manual order creation dialog and associated form components 2026-02-24 10:40:32 +01:00
b5dcb5e8e1 refactor: update styling and layout for Input, Textarea, ChiSiamo, and Contatto components 2026-02-24 10:39:07 +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
890f0572f3 feat: enhance document upload functionality and add save state indicators in Admin sections 2026-02-19 10:48:31 +01:00
a55b144f4d fix: update background color for AnnuncioDisplay component in dark mode 2026-02-19 09:58:15 +01:00