Commit graph

245 commits

Author SHA1 Message Date
3fc8dd60f9 update ts 6 2026-05-06 10:59:56 +02:00
59dc00f048 ok 2026-05-06 09:42:34 +02:00
b7e1e964c3 feat: enhance chat sidebar with admin indicator and simplify user retrieval logic 2026-05-05 15:56:02 +02:00
3939d78039 feat: add cleanup logic for unpaid and inactive orders in whIntentSucceededHandler
Co-authored-by: Copilot <copilot@github.com>
2026-05-05 14:50:06 +02:00
a0bb309f16 feat: add admin override functionality to ProfileFormAnagrafica and update related components 2026-04-30 13:56:07 +02:00
25e4e15eec refactor: remove console.log statements for cleaner code 2026-04-29 18:13:29 +02:00
899289f6f8 feat: add posizione column to appunti and update related logic for data handling
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 18:12:28 +02:00
e33ee7a8cd feat: enhance email management features and improve flag handling
Co-authored-by: Copilot <copilot@github.com>
2026-04-29 16:31:57 +02:00
b3c70bfa1a feat: add admin appunti management page and related functionality
- Introduced a new page for managing appunti in the admin area.
- Created AppuntiProvider to manage appunti state and API interactions.
- Added schemas for appunti and appunti groups.
- Implemented CRUD operations for appunti and appunti groups in the API.
- Removed potenziali related files and services as part of the refactor.
- Updated the public schema to include appunti and appunti groups.
- Improved error handling in the appunti service.

Co-authored-by: Copilot <copilot@github.com>
2026-04-29 15:12:52 +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
d17ac87917 feat: add Zod schemas for various entities and update API routes
- Introduced Zod schemas for validation in the following entities:
  - Provincie
  - Ratelimiter
  - Rinnovi
  - Servizio
  - ServizioAnnunci
  - ServizioInteressi
  - TestiEStringhe
  - Users
  - UserEtichette
  - UserInvites
  - UsersAnagrafica
  - UsersStorage
  - VideosRefs
  - StatusConfermaEnum
  - TipologiaPosizioneEnum

- Updated API routes in `catasto.ts` to include CRUD operations for Comuni, Nazioni, and Provincie with appropriate input validation.
- Enhanced controller methods in `catasto.controller.ts` to handle create, edit, and delete operations for Comuni and Nazioni.
- Added new utility Zod types for ComuniId, NazioniId, and ProvincieId.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 17:46:34 +02:00
ff722eb2a7 feat(chat): enhance chat functionality with file attachments
- Added file attachment support in chat messages, allowing users to upload and send files.
- Implemented a new API endpoint to retrieve message attachments.
- Updated chat components to display attachments and handle file uploads.
- Improved user experience with loading indicators and toast notifications for file uploads.
- Refactored chat bottom bar to integrate file upload functionality seamlessly.
- Enhanced chat list to show attachments associated with messages.
- Updated database schema to support attachments in chat messages.

Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:05:54 +02:00
98463da038 feat(chat): refactor chat components to use ChatProvider for context management
- Updated ChatTopbar and Chat components to utilize ChatProvider for managing chat state and user information.
- Removed unnecessary props from ChatTopbar and adjusted its implementation to fetch data from context.
- Added ChatProvider to encapsulate chat-related state and functionality.
- Enhanced message handling by introducing reply and forward features in the chat schema and API.
- Cleaned up unused components and optimized imports across chat-related files.
- Improved user avatar color generation logic and removed hardcoded color values.
- Updated loading states and error handling in admin chat management pages.
2026-04-27 16:52:32 +02:00
1971251490 feat(chat): implement chat bubble, list, sidebar, topbar, and loading components
- Added ChatBubble component for displaying individual chat messages with read status and timestamps.
- Introduced ChatList component to manage and display a list of messages, including editing and deleting functionalities.
- Created ChatSidebar for navigating between active chats and managing user interactions.
- Developed ChatTopbar for displaying chat information and admin actions.
- Implemented loading animation for messages with MessageLoading component.
- Enhanced user experience with context menus for chat options and dialogs for editing and deleting messages.
2026-04-22 19:17:54 +02:00
b256293b77 feat: update PostgreSQL image to version 18-bookworm and adjust volume paths; add chat_sse2 router and related schemas; implement AdminChat and GuestChat components 2026-04-22 12:20:32 +02:00
2676dc61ed feat: refactor error handling and response structure in authentication and payment processes 2026-04-17 17:15:13 +02:00
eef0030676 feat: add IncrociDialog component and integrate into admin and user interactions 2026-04-16 16:31:25 +02:00
995eadd9dc feat: implement user intestazione generation and update related handlers 2026-04-16 13:35:34 +02:00
6d41ff4520 feat: add usedInvite column to users table and update related configurations 2026-04-15 15:08:57 +02:00
7fa36c4b72 feat: enhance invite token verification and processing with email handling 2026-04-14 17:23: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
e0353bb6f9 feat: enhance email processing with dynamic filenames and additional email notifications 2026-04-14 15:04:59 +02:00
51ebe0be1f feat: add new invite request functionality and update invite page with new dialog 2026-04-13 18:47:38 +02:00
4f21773cea fix: enhance error messages with context in various controllers and services 2026-04-13 12:45:42 +02:00
e847aefe64 feat: add support for additional phone numbers and titles in user profiles 2026-04-13 12:45:37 +02:00
7fdef1c945 fix: update package dependencies and improve null checks
- Updated @tiptap packages to version 3.22.3 for improved functionality.
- Upgraded react-email to version 5.2.10 for bug fixes.
- Updated @biomejs/biome to version 2.4.11 for better performance.
- Upgraded knip to version 6.4.1 for enhanced features.
- Improved null checks in modale_contatti.tsx, trpc.ts, annunci.controller.ts, and event_queue.controller.ts for better error handling.
2026-04-13 10:28:34 +02:00
0e606aa60e refactor: clean up unused code and improve type definitions in various components 2026-04-10 12:08:33 +02:00
ed7359aa16 refactor: update confirmation handling in service announcements
- Changed the confirmation status checks from `accettato_conferma_at` to `status_conferma` in various components and controllers.
- Introduced a new `StatusConfermaEnum` to standardize confirmation statuses.
- Removed deprecated confirmation-related fields from the `ServizioAnnunci` schema.
- Deleted unused confirmation-related API methods and adjusted related logic in the service controller.
- Updated the search parameters schema to use the new confirmation status.
- Removed the `conferma-immobile` and `riapri-conferma` pages as they are no longer needed.
2026-04-09 16:17:24 +02:00
dc28e42baa refactor: remove unused incroci router and related components; update SCAN_DIRS and PROCEDURE_REGEX 2026-04-09 16:04:55 +02:00
73675480f6 refactor: rename getServizioAnnuncio to getServizioContratto and update related logic in servizio router 2026-04-09 16:03:32 +02:00
a3d3e8f5bd refactor: simplify error handling in database connection pool 2026-04-09 11:15:52 +02:00
3f477ca3b8 refactor: update session handling across components to use new session structure and improve loading states 2026-04-09 11:09:25 +02:00
b4acbbaff9 fix: add validation for mailType in genMail function 2026-04-07 11:33:12 +02:00
c8763e9f55 fix: make currency field nullable in saldoSchema 2026-04-03 19:24:18 +02:00
0d0c72ba1f fix: remove unnecessary currency field from movimentiSchema and report columns 2026-04-03 19:15:14 +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
8c48dbb4b6 feat: integrate Typst for PDF generation and add new fonts
- Added Typst templates for receipts and announcements.
- Implemented TypstRunner and TypstRunner2 services for PDF generation.
- Included necessary fonts for Typst rendering.
- Updated Dockerfile to install Typst and Pandoc.
- Enhanced API with new endpoints for Typst functionality.
- Added temporary directory handling for generated files.
- Updated .gitignore and .dockerignore to exclude temporary files.
2026-04-01 10:44:46 +02:00
aec6860cbd feat: add isAdmin parameter to interruzioneServizio and update related components 2026-03-31 09:24:22 +02:00
a11fc1241c feat: add comms_enabled flag to users and update email notification logic 2026-03-30 18:44:51 +02:00
04f0c5e790 feat: add Interruzione email template and integrate into mailer service 2026-03-30 16:37:08 +02:00
bb8c796fa8 feat: enhance RichiesteTable with context menu for user actions and improve status resolution logic 2026-03-30 16:26:03 +02:00
18ff13a64d feat: implement saldo preview functionality in payment process and update receipt generation 2026-03-27 20:23:21 +01:00
4eabd56a83 feat: update Invito email template to include invite URL and remove sensitive user information 2026-03-27 19:18:54 +01:00
67958105a1 feat: document login flow and update flow generation for login process 2026-03-27 18:49:13 +01:00
f3425c0cd5 feat: update Invito email template to include user credentials and remove invite URL 2026-03-27 18:18:58 +01:00
9452535a9f feat: implement NotePopover component for managing user notes and integrate it into UsersTable and RichiesteTable 2026-03-27 18:10:17 +01:00
ccc27ddcb5 feat: add pdf-lib dependency and implement PDF generation for receipt 2026-03-26 17:12:33 +01:00