Commit graph

43 commits

Author SHA1 Message Date
4899c66822 refactor: update terminology from 'preferenze' to 'parametri' for consistency across components and forms 2025-12-18 12:11:08 +01:00
a0a38f0977 refactor: update button icons in AnnuncioInteractions and ContattoAnnuncio components for consistent sizing 2025-12-11 15:53:47 +01:00
cfbeadb93b refactor: remove ImageWithFallback component and replace with Next.js Image in various components 2025-12-05 16:36:17 +01:00
830b89d4b1 refactor: implement getStorageUrl utility for consistent storage URL generation 2025-11-28 15:11:14 +01:00
0ecd7ce30d refactor: change 'mq' type from string to float64 and update related parsing logic 2025-11-25 12:05:14 +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
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
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
fbc11b5f77 refactor: simplify display of property type in CardInfos component 2025-11-17 17:00:19 +01:00
d7bfd8fdf1 feat: Update UI components and styles across multiple pages
- Enhanced the CardInfos component in [cod].tsx with improved styling and added TrafficCone icon for status indication.
- Increased dialog content width in prezziario.tsx and testi-stringhe.tsx for better layout.
- Replaced static badge elements with the Badge component in chi-siamo.tsx, contatti.tsx, guida.tsx, prezzi.tsx, and proprietari.tsx for consistent styling.
- Updated button components to use the Button component in contatti.tsx and proprietari.tsx for improved accessibility and styling.
- Modified the TrovaCasaCTA and FrequentSearches components in index.tsx for better visual consistency and updated color usage.
- Refactored global CSS variables for improved color management and added new color variables for better theme support.
- Implemented dynamic loading for the KabanExample component in test.tsx to enhance performance.
2025-11-14 17:21:21 +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
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
16bb7094dc feat(package.json): Add format script for code formatting 2025-11-03 11:03:41 +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
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
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
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
3a8f9d1cf9 todo: pricing max-w-2xl 2025-10-20 11:37:19 +02:00
727f1e760c feat: add revalidation functionality and integrate it into various components and API routes 2025-10-17 19:14:27 +02:00
c84e315eee feat: implement CacheKey for image caching and update image sources across components 2025-10-16 11:16:50 +02:00
4d0e2c51c7 fix pricing label positions 2025-10-15 16:25:33 +02:00
0512122243 fix: adjust height for contract link in PricingComponent and update related styles 2025-10-13 10:07:09 +02:00
1eb029b457 fix price box styles 2025-10-10 16:36:49 +02:00
a87a35ffbe sort classes rule and fix 2025-10-10 16:18:43 +02:00
1426f0efef refactor: streamline conditional logic and improve readability across multiple components 2025-09-01 16:48:03 +02:00
0bc1a0915c feat: add video support to CarouselAnnuncio and integrate VideoPlayer component 2025-09-01 15:59:08 +02:00
1f1d9f3559 feat: enhance AnnuncioView with print option and refactor admin links to use Button component 2025-09-01 11:55:45 +02:00
3284ccbf0d feat: refactor and enhance Annuncio components for improved functionality and print support 2025-08-29 18:18:37 +02:00
5755b00d7b formatt 2025-08-29 16:18:32 +02:00
3f82763168 eslint migration biome 2025-08-28 18:27:07 +02:00
eba4e31d38 fix: update meta handling in AnnuncioDettaglio and improve error messages in getAnnunciByCod and getAnnunciMetaByCod 2025-08-27 10:56:13 +02:00
283eb85066 fix 2025-08-22 16:27:58 +02:00
2b0efdfc32 Enhance styling and structure: update component styles for better visual consistency and usability across various components 2025-08-20 17:00:36 +02:00
03b160d1ee Add handling for half-floor indication in CardInfos component 2025-08-18 10:31:01 +02:00
96a85be96c Remove debug log for meta in getStaticProps to clean up code 2025-08-08 15:30:10 +02:00
3748afbd7e Implement Open Graph meta tags in AnnuncioDettaglio for improved SEO and social sharing 2025-08-08 14:13:27 +02:00
7bfef22f80 Enhance Open Graph support by adding meta data retrieval and updating robots.txt for better SEO 2025-08-08 13:30:21 +02:00
a6fa1b960b Update Open Graph image handling to use og_url for improved image management 2025-08-08 12:36:20 +02:00
986409b739 Refactor Open Graph handling by removing unused URL state and updating image source logic 2025-08-08 12:00:06 +02:00
4a6a6f5900 Update Open Graph image handling for improved SEO and social sharing 2025-08-08 11:44:05 +02:00
8d4f51aaf8 Add Open Graph support with @vercel/og integration and related updates 2025-08-08 11:34:33 +02:00
8f629c272a Add Open Graph meta tags for improved SEO and social sharing
Implement API route for fetching images with caching support
Fix cover image URL handling in getAnnunciByCod function
2025-08-08 10:27:21 +02:00
29c64c7e39 init 2025-08-04 17:45:44 +02:00