Commit graph

44 commits

Author SHA1 Message Date
a8d29c6840 feat: refactor ordini and servizio controllers to use services, remove old controller files 2026-03-08 14:34:21 +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
ee670581e7 fix: update routing in user swap mutation to redirect to load-page 2026-03-06 14:10:36 +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
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
fd7da28535 feat: implement manual order creation dialog and associated form components 2026-02-24 10:40:32 +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
6890ed64c7 chore: update icon styles and improve layout in ricerca-table component 2026-01-16 11:52:47 +01:00
f97533fab0 chore: update component styles for improved layout and consistency 2026-01-16 10:30:27 +01:00
d56d8f8ec8 feat: add className prop to AnnuncioDisplay and update ServizioContent for improved styling 2026-01-09 14:47:28 +01:00
2082ea2c62 refactor: remove unnecessary text-primary class from headings for consistent styling 2025-12-29 16:09:51 +01:00
5165c82f5c refactor: simplify default open logic in TabRicerca and improve readability 2025-12-18 15:24:07 +01:00
72a2935797 refactor: remove unused components and enhance navigation flow in user views 2025-12-18 15:12:05 +01:00
e692f9f1cb refactor: enhance servizio update handling by invalidating packs solution cache after modifications 2025-12-18 12:18:24 +01:00
4ce60fd827 refactor: update button class for improved cursor indication in UsersTable 2025-12-16 15:17:42 +01:00
831ae0edef Refactor components for improved styling and layout consistency
- Updated Layout component to enhance flex properties for better responsiveness.
- Adjusted CredenzaContent width in UserDashboard for improved layout.
- Modified Footer component for better spacing and logo size adjustments.
- Enhanced ServizioContent layout with new AlarmClockSVG and improved button styling.
- Updated Status500 and 404 pages to use muted foreground text for better readability.
- Added new PasswordSVG and AlarmClockSVG components for better icon representation.
- Refined table components to use muted foreground colors for icons.
- Improved form components by removing unnecessary classes and enhancing label styling.
- Cleaned up global CSS by removing unused CSS variables for better maintainability.
2025-12-15 17:07:08 +01:00
4d7802ccc6 feat: implement user invitation system with email invites and password setup
- Added user_invites table to manage invitation tokens.
- Created invite router with procedures for sending, verifying, and accepting invites.
- Implemented email sending functionality for invites.
- Updated user controller to handle password setting during invite acceptance.
- Introduced mustChangePassword flag in user schema and related logic.
- Added middleware to enforce password change requirement.
- Created forms for accepting invites and changing passwords.
- Updated database migrations to reflect new user invite structure and fields.
2025-12-14 18:57:56 +01:00
a268afee74 feat: enhance UI components and improve functionality across various modules 2025-12-04 17:16:49 +01:00
a71d9f8d2e minor 2025-12-02 15:03:51 +01:00
05998c6237 refactor: update flag status labels in FlagsTable component 2025-11-21 12:19:35 +01:00
9c18ca37ab Refactor API structure and update flag handling
- Replaced references to `api.settings` with `api.etichette`, `api.flags`, and `api.strings` in various admin pages to align with new API structure.
- Removed the deprecated `settingsRouter` and introduced `flagsRouter`, `etichetteRouter`, and `stringsRouter` to handle respective functionalities.
- Updated the `Flags` schema to change the `value` field from string to boolean.
- Modified flag handling logic in the `SendMessage` and `NewMail` functions to check for boolean flags instead of string values.
- Added migration script to convert the `value` column in the `flags` table from string to boolean.
- Implemented new routers for banners, etichette, flags, revalidation, and strings to encapsulate related functionalities.
2025-11-20 12:38:42 +01:00
7c88d0af86 refactor: update styling for various components to enhance visual consistency and user experience 2025-11-17 18:35:30 +01:00
6ad74c9002 Refactor and enhance UI components across the application
- Renamed `AnnunciInConferma` to `AnnunciInConfermaDialog` and `AnnunciSelezionati` to `AnnunciSelezionatiDialog` for clarity.
- Simplified button notifications for announcements by always displaying the count.
- Introduced `AnnunciInConfermaAccordion` and `AnnunciSelezionatiAccordion` components to manage accordion behavior for announcements.
- Updated button styles to remove unnecessary flex properties for better alignment.
- Improved form validation logic in `FormNewServizioAcquisto` for better clarity and performance.
- Enhanced the `UploadModal` to accept props directly, simplifying the component structure.
- Added a new `CardAnnuncio` component for displaying announcements with improved layout and functionality.
- Updated global styles to include a new background color variable.
- Refactored API routes and controllers for better clarity and maintainability.
- Cleaned up various components by removing redundant class names and improving accessibility.
2025-11-03 10:59:45 +01:00
bd5a35a172 Refactor service document handling and contact modal
- Removed temp_tokens data from SQL initialization.
- Updated AllegatiComp to invalidate additional service announcements on file removal.
- Simplified imports in interactions.tsx and removed unused components.
- Enhanced ServizioContent layout for better display of announcements.
- Adjusted button styles in servizio_annunci_accordions for responsiveness.
- Streamlined ricerca-table by removing unnecessary ServizioProvider wrapping.
- Modified upload modal to support new upload callback structure.
- Added new document reference fields to Servizio schema.
- Introduced UsersStorageUserStorageId type for better type safety.
- Updated servizio.controller to include document references in service announcements.
- Changed storage.controller to return user_storage_id on conflict.
- Updated docker-compose to streamline storage service configuration.
- Created migration script for new foreign key constraints on document references.
- Implemented ContattiProprietarioModal to manage document uploads and contact unlocking.
2025-10-29 09:39:06 +01:00
f85ea22215 chore: update biome schema and dependencies, refactor key usage in components
- Updated biome schema version from 2.2.2 to 2.3.1 in biome.json.
- Removed experimentalScannerIgnores from files section and replaced with ignore patterns.
- Added CSS parser configuration for Tailwind directives.
- Updated linter rules for better code quality.
- Refactored key usage in various components to use unique identifiers instead of array indices.
- Updated package-lock.json and package.json to reflect new biome version.
- General code cleanup and improvements across multiple components for better maintainability.
2025-10-28 11:55:01 +01:00
7f93bdeb98 refactor: update storage-related API and components for improved functionality 2025-10-24 18:05:51 +02:00
6acfc08169 new storage for files 2025-10-24 16:10:59 +02:00
699579b432 feat: update environment variable handling and dependencies
- Added @t3-oss/env-nextjs for improved environment variable management.
- Updated zod to version 4.1.12 for enhanced validation capabilities.
- Upgraded jiti to version 2.6.1 for better module loading.
- Refactored environment variable imports from env.mjs to env.ts.
- Removed deprecated env.mjs file and replaced it with a new env.ts file using @t3-oss/env-nextjs.
- Adjusted various components and API routes to utilize the new environment variable structure.
- Updated next.config.js to support the new environment variable management.
- Modified Docker configuration to align with new BASE_URL handling.
2025-10-20 16:22:20 +02:00
07767dd51b fix: update environment variable handling and add baseUrl prop to email components for improved functionality 2025-10-20 12:33:49 +02:00
e6a4843586 feat: enhance default open logic for service rows and improve transition effects 2025-10-14 16:53:15 +02:00
a87a35ffbe sort classes rule and fix 2025-10-10 16:18:43 +02:00
0128f115ad fix: update user swap mutation to use async/await and improve navigation handling 2025-09-09 10:21:19 +02:00
1426f0efef refactor: streamline conditional logic and improve readability across multiple components 2025-09-01 16:48:03 +02:00
bc92368abc feat: update AnnunciTable to enhance actions and filter functionality 2025-08-29 16:22:54 +02:00
5755b00d7b formatt 2025-08-29 16:18:32 +02:00
3f82763168 eslint migration biome 2025-08-28 18:27:07 +02:00
19d273ff49 fix: enhance pricing component formatting and update sorting logic in PrezzarioTable 2025-08-27 12:33:14 +02:00
1dd8a8eed0 default open first ricerca 2025-08-25 12:06:33 +02:00
243148267b feat: implement TabRicerca component for user service search and integrate collapsible functionality 2025-08-24 15:47:08 +02:00
63d2fbd8ad Enhance ServizioActions and TabServizio components: pass userId to AddAnnuncio and integrate AnnunciSection for better announcement management 2025-08-19 16:44:38 +02:00
c0da9daad0 Add interruption toggle to TabServizio component for managing service status 2025-08-19 16:44:23 +02:00
23680bb816 Fix service status display logic in TabServizio component 2025-08-13 16:55:47 +02:00
b23739b371 Fix chat link styling based on user chat ID presence 2025-08-08 10:05:35 +02:00
29c64c7e39 init 2025-08-04 17:45:44 +02:00