Commit graph

208 commits

Author SHA1 Message Date
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
2ef18a0b5b feat: enhance Potenziali management with delete functionality and user assignment 2025-12-03 16:16:28 +01:00
cfcddea9c8 feat: implement Potenziali and PotenzialiGroups management with CRUD operations and UI enhancements 2025-12-03 13:56:53 +01:00
d93d23c607 feat: enhance email management with delete functionality and session handling 2025-12-01 12:29:48 +01:00
830b89d4b1 refactor: implement getStorageUrl utility for consistent storage URL generation 2025-11-28 15:11:14 +01:00
47f35c3bbe refactor: remove pagination logic and related state management from Annunci and RicercaProvider components 2025-11-27 13:37:37 +01:00
2e3eb7f4d1 refactor: update image and video source URLs to include cache keys for better cache management 2025-11-24 18:03:13 +01:00
29c8453bad refactor: improve login error handling and user feedback in FormLogin and auth.controller 2025-11-24 10:51:51 +01:00
5df7e8cef8 refactor: enhance user confirmation response with userId in userAccettaConferma 2025-11-21 12:24:55 +01:00
7bad7dd480 refactor: clean up TODOs and improve comments in FormFlags and chat_sse files 2025-11-20 16:50:59 +01:00
eaf9ecc1d3 intestazione maker 2025-11-20 16:48:29 +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
3ea9354abb feat: implement email sending for contact details with PDF attachment 2025-11-20 11:59:24 +01:00
e5c0ca04ee feat: add PDF generation and email sending for printable announcements
- Updated package.json to include html2canvas-pro and jsPDF for PDF generation.
- Enhanced SchedaAnnuncioStampabile component to generate a PDF from HTML and send it via email.
- Implemented new API endpoint for sending the generated PDF as an email attachment.
- Refactored existing email sending logic across various controllers to use a unified template structure.
- Improved error handling and logging for email sending processes.
2025-11-19 17:18:28 +01:00
f4262b8711 feat: Refactor video handling in announcements
- Updated the announcement detail component to directly use images and videos from the data structure.
- Changed the form edit component to accommodate the new media structure, replacing AnnunciWithImages with AnnunciWithMedia.
- Modified the announcements list to initialize videos as an empty array.
- Enhanced the announcement view to handle external videos and updated the footer to display them correctly.
- Introduced a new utility function to generate YouTube embed URLs.
- Updated the database schema to replace url_video with external_videos and added a new videos_refs table for video management.
- Implemented video processing logic, including downloading, transcoding, and thumbnail generation.
- Added migration scripts for the new videos_refs table and updated existing references in the database.
2025-11-18 15:20:14 +01:00
de034c0eb7 refactor: streamline AnnuncioCard and CompatibiliDialog components, enhance data handling and styling 2025-11-17 19:01:21 +01:00
219f76dd10 catasto 2025-11-13 15:45:55 +01:00
b643a9778b feat: update environment variables in Dockerfile and env.ts; modify logging in api_middleware and settings router 2025-11-12 17:28:59 +01:00
3dc0bccb58 feat: implement lazy loading for CardAnnuncio component; add skeleton loading state and enhance InputNumber component with height prop 2025-11-12 15:52:04 +01:00
4408295f56 feat: add admin override switch for ignoring service preferences in AnnunciCompatibili dialog 2025-11-11 15:41:07 +01:00
d894f9d6ec feat: enhance user management and document handling; refactor service and schema integrations 2025-11-10 16:27:15 +01:00
b7850f6994 feat: update package dependencies and enhance UI components with badges; refactor service dialogs and remove unused components 2025-11-07 17:03:08 +01:00
23525d8f14 feat: add AdminLavoraConferma and AdminContratto components for managing service confirmations and contracts
- Implemented AdminLavoraConferma component to handle confirmation processes with document management.
- Added AdminContratto component for managing rental contracts and related documents.
- Introduced shared components for document selection and display (DocInfo and DocCombo).
- Enhanced storage controller with a new function to retrieve storage ID from user storage ID.
- Updated database interactions to improve error handling and data retrieval.
2025-11-06 17:03:42 +01:00
17ecc9604f chore: Add logging documentation link to TODO file 2025-11-06 13:19:12 +01:00
82aeb763a0 refactor: Rename 'updated_at' column to 'media_updated_at' and update references throughout the codebase 2025-11-06 13:17:20 +01:00
7b0469467f refactor: Remove AnnunciGrid component and update Annunci page to use CardAnnuncio directly 2025-11-04 19:18:13 +01:00
1fc855393f Refactor Annuncio Card Component and Remove Legacy Code
- Updated `CardAnnuncio` component to enhance functionality and styling.
- Removed `CardAnnuncio2` component as it was redundant.
- Added new icons and badges for better visual representation of availability and status.
- Improved layout and responsiveness of the card.
- Updated translations in English and Italian for consistency.
- Enhanced pagination controls in the `Annunci` page with new button styles.
- Adjusted footer components to accept additional class names for customization.
- Cleaned up unused CSS animations and styles in `globals.css`.
- Modified server-side controller to include homepage field in the Annuncio data structure.
2025-11-03 18:49:27 +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
b83527eb97 cleanup 2025-10-28 10:54:42 +01:00
208deeac28 Refactor image handling in announcement components
- Updated CardAnnuncio and related components to use a new images structure instead of url_immagini.
- Removed references to url_immagini and replaced them with images array containing img and thumb properties.
- Adjusted API responses to include images in the new format.
- Modified middleware and storage service to accommodate new image handling.
- Cleaned up unused code and schemas related to old image references.
- Updated Docker configuration for storage service.
2025-10-27 17:58:42 +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
5ea42bb24b upd 2025-10-23 15:16:42 +02:00
6a5820dda1 test new storage 2025-10-22 15:41:53 +02:00
8fe0b6636d Refactor TypeScript schemas and enums for consistency and readability
- Updated enum definitions in PaymentStatusEnum and TipologiaPosizioneEnum to use single quotes and consistent formatting.
- Refactored Payments, Prezziario, Ratelimiter, Servizio, and other schema files to ensure consistent indentation and formatting.
- Added `updated_at` field to various queries in interests and servizio controllers.
- Removed unused imageCache utility file.
2025-10-21 18:42:03 +02:00
d2548e8854 refactor: remove redundant orderBy clauses in getAllServizioAnnunci function 2025-10-21 14:33:47 +02:00
11129d6ecb refactor: update getStaticProps to getServerSideProps in user-related pages for improved data fetching 2025-10-20 18:00:53 +02:00
b84c98c334 refactor: replace baseUrl prop with env.BASE_URL in email components 2025-10-20 17:27:32 +02:00
f2ee374e32 fix cid 2025-10-20 17:08:13 +02:00
8a17863c85 feat: update environment variable handling for BASE_URL and NEXT_PUBLIC_BASE_URL across Docker and application files 2025-10-20 16:39: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
60e3f26fd8 fix: update BASE_URL to INTERNAL_BASE_URL in revalidationHelper and remove unused BASE_URL from docker-compose 2025-10-20 15:04:35 +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
054b9eff9a fix: improve revalidation logic by decoding path and invalidating cache after updates 2025-10-17 19:48:28 +02:00
6ae1993e8d fix: remove unnecessary encoding of path in revalidation API request 2025-10-17 19:29:38 +02:00
727f1e760c feat: add revalidation functionality and integrate it into various components and API routes 2025-10-17 19:14:27 +02:00
bc1f114837 feat: implement server-side rendering for various admin pages and update backend URL configuration 2025-10-17 18:12:10 +02:00
0e157b8ddd feat: add revalidation functionality for announcements with confirmation prompts 2025-10-15 15:45:24 +02:00