Commit graph

122 commits

Author SHA1 Message Date
d0f146b99e isDisabled bool 2026-05-08 14:16:29 +02:00
3fc8dd60f9 update ts 6 2026-05-06 10:59:56 +02:00
20e50d5c6d Refactor date input components across forms to use DateInput instead of Popover with Calendar for improved usability and consistency
Co-authored-by: Copilot <copilot@github.com>
2026-05-04 18:31:36 +02:00
4afee4788a feat: enhance banner management with color options and improved layout components
Co-authored-by: Copilot <copilot@github.com>
2026-05-04 12:50:43 +02:00
8e9d34e61f refactor: remove dynamic import of DevTool for cleaner code 2026-04-30 16:29:56 +02:00
a0bb309f16 feat: add admin override functionality to ProfileFormAnagrafica and update related components 2026-04-30 13:56:07 +02:00
984b1d7ae5 refactor: remove z.config(z.locales.it()) from multiple form components and update chat import paths 2026-04-29 13:16:37 +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
e46af92bb3 feat: refactor expires_date validation and update default values in FormAddCodaEmail 2026-04-20 12:19:02 +02:00
c1c0ad2a2f feat: update validation message for expires_date to allow today's date 2026-04-20 12:12:58 +02:00
2676dc61ed feat: refactor error handling and response structure in authentication and payment processes 2026-04-17 17:15:13 +02:00
71036954c9 refactor: unify password hook usage across forms and update related imports 2026-04-14 16:36:10 +02:00
d9fdfabf00 refactor: replace strong password hook with mild password implementation and update related components 2026-04-14 15:43:57 +02:00
e847aefe64 feat: add support for additional phone numbers and titles in user profiles 2026-04-13 12:45:37 +02:00
621d227760 fix: add name attributes to input fields in FormEditOrder and SearchInput components 2026-04-07 16:05:30 +02:00
f52dd96c11 feat: implement Stripe reports management for admin panel
- Add new page for managing Stripe reports with functionality to generate and view reports.
- Create API router for handling Stripe report operations including listing, setting up, and generating reports.
- Introduce caching service for managing cache invalidation related to reports.
- Update Typst templates for formatting financial reports in EUR.
- Enhance utility functions for price formatting and error handling.
- Implement a script to check for unused tRPC procedures in the codebase.
2026-04-03 18:57:39 +02:00
964abfbf46 feat: add email queue management features
- Implemented FormNewMail for creating new email entries in the queue.
- Enhanced AdminPotenziali page layout for better responsiveness.
- Added Coda component to manage user email queues, including adding, removing, and clearing emails.
- Updated API routes for managing email queue operations, including adding, removing, and clearing user email queues.
- Introduced new mail templates and integrated them into the mailer service.
- Improved error handling in the email queue controller and service.
- Added Zod validation for event IDs in the utility types.
2026-04-03 11:51:55 +02:00
73b1997c15 feat: update service confirmation routing and enhance order management UI components 2026-03-30 17:36:35 +02:00
0c89a62c55 feat: enhance FormServizio and FormServizioAcquisto with new button styles and functionality 2026-03-30 14:58:24 +02:00
67958105a1 feat: document login flow and update flow generation for login process 2026-03-27 18:49:13 +01:00
b0c00e2d0f feat: replace custom Textarea component with UI library version across multiple files 2026-03-27 18:10:05 +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
48768c0481 feat: enhance form components with autoComplete attributes and update ResidenzaSection to set cap_recapiti based on selected comune 2026-03-20 18:40:48 +01:00
7c49ca8f66 feat: enhance ResidenzaSection to automatically set cap_residenza based on selected comune and update placeholders for input fields 2026-03-20 17:23:43 +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
9187e8964f feat: add PhoneInput component and update form imports across multiple files 2026-03-19 12:14:06 +01:00
56402a374d feat: refactor button imports and usage across forms and pages for consistency 2026-03-18 18:01:02 +01:00
089640c4e1 feat: refactor input imports to use centralized Input component from ui directory 2026-03-18 17:44:42 +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
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
7e57f128f4 feat: implement redirectTo500 utility for consistent error handling across pages 2026-03-17 18:44:53 +01:00
300c9edfc4 feat: add admin contact details dialog and streamline cache invalidation in AnnuncioEditForm 2026-03-12 16:55:06 +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
db63591bcb style: update component styles to use bg-card and adjust heights for consistency 2026-03-12 12:11:57 +01:00
f8aea2446e style: update button styles across multiple forms for consistency 2026-03-12 12:11:41 +01:00
b8d92df023 feat: enhance tipologia selection with admin restrictions in FormNewServizioAcquisto 2026-03-12 12:03:08 +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
b496aa5d75 fix: correct payment method options mapping in FormEditOrder component 2026-03-09 18:21:10 +01:00
a9a9104711 fix: update payment method type in PurchaseData and related components 2026-03-09 18:14:22 +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
024059cee3 feat: add autocomplete attributes to email and password inputs in FormNewUser 2026-03-06 14:23:58 +01:00
7b76132a94 feat: implement codice fiscale calculation and validation
- Added `CalcolaCodiceFiscale` function to calculate Italian fiscal code based on name, surname, birth date, gender, and municipality code.
- Introduced utility functions for generating parts of the fiscal code, including handling special cases for names and surnames.
- Created tests for the fiscal code calculation covering various scenarios.
- Updated forms to enforce a maximum length for the fiscal code input.
- Added `vitest` for testing and configured it with Vite.
- Updated package dependencies to include testing libraries and Vite plugins.
2026-03-05 15:17:09 +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
f1bd40afce feat: enhance update feedback with loading and success messages in forms and video processing 2026-03-02 16:33:54 +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
6cd09cce1b refactor: remove console.log statements from various files for cleaner code 2026-02-24 15:18:59 +01:00
fd7da28535 feat: implement manual order creation dialog and associated form components 2026-02-24 10:40:32 +01:00
51d58a3008 refactor: replace checked with defaultChecked for Switch components across multiple forms 2026-02-24 10:40:07 +01:00