Commit graph

122 commits

Author SHA1 Message Date
61927448ca refactor: remove company-related fields from user forms and schemas 2026-02-19 11:45:09 +01:00
9f02c49193 feat: refactor Slider component and update budget filters for improved functionality and responsiveness 2026-02-03 12:54:41 +01:00
edaee780d6 refactor: remove unused annunci data fetching and components; update ricerca logic
- Deleted the `annunci.ts` file which contained the database fetching logic.
- Removed the `TestAppPage` component that relied on the deleted data fetching.
- Eliminated the `AnnunciList` component that was dependent on the removed data.
- Updated `annunci_map.tsx` to handle optional `selectComune` parameter.
- Refactored `annunci_tutorial.tsx` to use `buildRicercaUrl` for navigation.
- Adjusted `annuncio_card.tsx` for consistent styling and layout changes.
- Modified `codiceRicerca.tsx` to fix z-index issue.
- Enhanced `failed-loading.tsx` and `500Auth.tsx` for responsive design.
- Updated `annunci.tsx` to include loading state for map and annunci list.
- Refined filter handling in `Filters` component to use a single `setAllParams` method.
- Introduced `FrequentSearches` component for better user navigation.
- Updated `RicercaProvider` to streamline state management and URL building.
- Adjusted server-side logic in `annunci.controller.ts` to ensure valid data.
2026-01-20 18:38:17 +01:00
c87a7238a7 Refactor various components for improved UI consistency and functionality; update layout styles, enhance user interactions, and introduce reset button functionality in forms. 2026-01-16 17:11:53 +01:00
1baca2997a Refactor AnnuncioCard to use AdminActions and UserActions based on user role; remove unused Interactions component; update button sizes and styles across various components; enhance ServizioContent with mutation handling; improve user feedback on actions; update confirmation messages for clarity; adjust layout for better responsiveness in AnnunciRichiesti; streamline form submissions with updated data structures. 2026-01-16 15:47:38 +01:00
675db60bb9 chore: adjust button height in FormEditServizio for improved UI consistency 2026-01-16 11:53:07 +01:00
f97533fab0 chore: update component styles for improved layout and consistency 2026-01-16 10:30:27 +01:00
539f4dc4f8 chore: update biome schema version and refactor code style
- Updated biome schema version from 2.3.1 to 2.3.11 in biome.json.
- Refactored package.json for better readability and updated dependencies.
- Adjusted class names in InformationBubble, ChatAttachments, ChatBubble, FileUpload, Loading, and other components for consistent styling.
- Changed height classes from fixed pixel values to relative values for better responsiveness.
- Removed unnecessary comments and unused variables in user.controller.ts.
2026-01-14 14:21:57 +01:00
12c9f1a63f feat: update default values for skipControlloDoc and skipDocMotivazione in FormNewServizio 2025-12-30 15:27:24 +01:00
4899c66822 refactor: update terminology from 'preferenze' to 'parametri' for consistency across components and forms 2025-12-18 12:11:08 +01:00
bc9689cb4d refactor: implement NullableStringOnChange utility for improved form handling across multiple components 2025-12-17 16:38:15 +01:00
c783dfed03 refactor: enhance AdminLavoraConferma component with GeneralSection and improve form handling in AnnuncioEditForm 2025-12-16 16:43: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
94b603b83c refactor: remove 'mustChangePassword' field from user forms and related logic 2025-12-15 12:15:26 +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
c459da5d23 feat: update mq field handling in AnnuncioEditForm for improved data parsing 2025-12-03 14:51:39 +01:00
23b4e09e36 feat: add description for scadenza motivazione field in FormNewServizio 2025-12-01 12:33:32 +01:00
0ecd7ce30d refactor: change 'mq' type from string to float64 and update related parsing logic 2025-11-25 12:05:14 +01:00
29c8453bad refactor: improve login error handling and user feedback in FormLogin and auth.controller 2025-11-24 10:51:51 +01:00
70e24b5abe refactor: update NumberInput usage to utilize defaultValue and improve field handling in forms 2025-11-21 14:09:06 +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
5eadcc2df5 refactor: remove unnecessary text color class from LoginPage and FormLogin headings 2025-11-18 16:51:03 +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
b741f7ce72 refactor: update button styles in Counter component and improve Badge variant handling in forms 2025-11-17 18:39:58 +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
219f76dd10 catasto 2025-11-13 15:45:55 +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
db8d1da5ab feat: add conditional rendering for skip payment and document controls in FormNewServizio 2025-11-11 15:22:21 +01:00
d894f9d6ec feat: enhance user management and document handling; refactor service and schema integrations 2025-11-10 16:27:15 +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
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
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
97503b34e5 fix(dependencies): Update react-day-picker to version 9.11.1 for improved functionality
fix(forms): Adjust endMonth in AnnuncioEditForm to 2050 for better date handling

refactor(forms): Remove date validation in ProfileFormAnagrafica for simplified logic

fix(user-view): Update DialogContent class for consistent styling in NewServizioModal
2025-10-30 19:39:40 +01:00
9e495caf29 feat(forms): Add skip options and expiration date for temporary motivation in service forms 2025-10-30 19:39:35 +01:00
11b74ed6dc refactor(CardAnnuncio, CarouselAnnuncio): Improve class order for better styling consistency
delete(MotivazioneTransitorio): Remove unused component to clean up codebase
2025-10-30 18:13:59 +01:00
967935f0a8 Refactor comuni and provincie data structures; add dynamic FormDebug component
- Updated `initializeComuniNames` to accept an optional `provincia` parameter for filtering comuni by province.
- Renamed `getComuniNames` to `getComuni` and modified it to return an array of objects containing both comune names and their respective province siglas.
- Introduced `provincieWithSigla` array to map province names to their siglas, along with a new function `getProvinciaFromSigla` for retrieving province names based on sigla.
- Added a dynamic import for the `FormDebug` component to facilitate debugging in development mode while preventing it from rendering in production.
- Commented out console logs in `checkFiscalCodeValidity` for cleaner production output.
2025-10-30 18:13:50 +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
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
054b9eff9a fix: improve revalidation logic by decoding path and invalidating cache after updates 2025-10-17 19:48:28 +02:00
727f1e760c feat: add revalidation functionality and integrate it into various components and API routes 2025-10-17 19:14:27 +02:00
0e157b8ddd feat: add revalidation functionality for announcements with confirmation prompts 2025-10-15 15:45:24 +02:00
37842177a6 fix: improve error handling in login mutation to display error messages 2025-10-15 15:05:56 +02:00
a87a35ffbe sort classes rule and fix 2025-10-10 16:18:43 +02:00
9961a6503c feat: add subtitle to login form and update translations for English and Italian 2025-09-09 10:34:19 +02:00