Commit graph

1070 commits

Author SHA1 Message Date
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
8f28b7bba3 feat(chat): replace LoadingPage with LoadingSpinner for better loading indication
feat(chat): adjust LoadingSpinner size in ChatBottombar component
feat(data-table): add defaultPageSize prop for customizable pagination
2026-04-28 17:46:09 +02:00
f790838093 feat(chat): improve chat attachments styling and adjust button size
Co-authored-by: Copilot <copilot@github.com>
2026-04-28 14:59:05 +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
9886e5042a refactor: convert type definitions to enums for consistency in schema files 2026-04-27 18:43:58 +02:00
2ac16e4f33 Refactor Kanel configuration and update schema files
- Updated kanel.config.js to use makePgTsGenerator and adjusted type filtering.
- Modified various schema files to remove autogenerated comments and updated type definitions for enums to use union types.
- Added new MessagesAttachments schema and integrated it into PublicSchema.
- Ensured consistency in export types across all schema files.
2026-04-27 16:53: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
f5d1530683 rem 2026-04-22 16:56:14 +02:00
27fa96b698 feat: uncomment migration service in docker-compose.yml 2026-04-22 13:48:30 +02:00
94218d8932 feat: comment out migration service in docker-compose.yml 2026-04-22 13:46:37 +02:00
c2fb43cdeb feat: add initial data migration for banners, etichette, flags, prezziario, and testi_e_stringhe 2026-04-22 13:30:04 +02:00
d0d23a8873 feat: remove outdated migration script for banners, etichette, flags, prezziario, and testi_e_stringhe 2026-04-22 13:20:44 +02:00
1a2d19729b feat: comment out adminpack extension creation and related comment in migration script 2026-04-22 12:32:00 +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
bb2bba7ce0 feat: update PostgreSQL image to version 18-bookworm and adjust volume paths 2026-04-22 12:19:23 +02:00
34c19831f0 feat: update pgx and gommon dependencies to latest versions 2026-04-21 11:50:54 +02:00
53ba53e3cc feat: improve locatore formatting by trimming spaces and replacing multiple spaces with a single space 2026-04-21 11:49:45 +02:00
e46af92bb3 feat: refactor expires_date validation and update default values in FormAddCodaEmail 2026-04-20 12:19:02 +02:00
c1c0ad2a2f feat: update validation message for expires_date to allow today's date 2026-04-20 12:12:58 +02:00
2676dc61ed feat: refactor error handling and response structure in authentication and payment processes 2026-04-17 17:15:13 +02:00
a03326f036 feat: add link button to view service details in IncrociTable 2026-04-16 16:49:48 +02:00
d7bd1656c2 feat: enhance IncrociDialog layout and improve table header styling 2026-04-16 16:42:47 +02:00
eef0030676 feat: add IncrociDialog component and integrate into admin and user interactions 2026-04-16 16:31:25 +02:00
c7dc508821 feat: update export mutation to invalidate additional cache for Fatture In Cloud 2026-04-16 13:37:39 +02:00
995eadd9dc feat: implement user intestazione generation and update related handlers 2026-04-16 13:35:34 +02:00
d4ffc27aed feat: add maintenance page with Nginx configuration and update Traefik rules 2026-04-15 17:12:57 +02:00
b09a2bbbd2 feat: update Traefik configuration and remove maintenance page 2026-04-15 16:58:02 +02:00
a36f515170 feat: update Traefik router rules for maintenance page and remove favicon 2026-04-15 16:46:32 +02:00
8cb8ff08b4 feat: comment out Traefik router rules for maintenance page 2026-04-15 16:42:26 +02:00
e530db158f a 2026-04-15 16:40:22 +02:00
8ed076f56c feat: update maintenance page to use index.html and adjust Traefik configuration 2026-04-15 16:29:22 +02:00
1a45f5a0db feat: configure maintenance page service with Traefik routing 2026-04-15 16:25:04 +02:00
720a109255 fix router name 2026-04-15 16:15:00 +02:00
00bebc9bf3 feat: configure Traefik to route maintenance page traffic to the correct port 2026-04-15 16:12:07 +02:00
278acb132a feat: add maintenance middleware and HTML page for downtime notifications 2026-04-15 16:07:03 +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
28c40be091 chore: update package dependencies to latest versions 2026-04-14 16:40:29 +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
453183ce3b fix: disable send_interrupt option in .air.toml configuration 2026-04-13 18:48:51 +02:00
51ebe0be1f feat: add new invite request functionality and update invite page with new dialog 2026-04-13 18:47:38 +02:00
14eb5bf113 refactor: remove progressbar dependency and replace with logging in image and video processing 2026-04-13 18:47:33 +02:00
1e2eb19d80 fix: update Go version and dependencies in Dockerfile and go.mod 2026-04-13 18:09:36 +02:00
c8b11c745e fix: improve error handling for SESSION_EXPIRED and UNAUTHORIZED in TRPC links 2026-04-13 16:23:09 +02:00