Commit graph

27 commits

Author SHA1 Message Date
a04e3c2fd3 feat: implement user labels management with CRUD operations and UI integration 2026-03-10 16:56:26 +01:00
73245f3564 feat: update payment preparation logic to include 'Rinnovo' type and handle errors gracefully 2026-03-08 15:33:50 +01:00
8716d90148 feat: add migration to remove 'condizioni' column from 'ordini' table 2026-03-08 14:53:23 +01:00
b1143f5c24 feat: add drop table statement for payments in migration script 2026-03-08 01:05:50 +01:00
6c36bb9b74 feat: add order editing form and payment processing pages
- Implemented FormEditOrder component for editing orders with validation and submission handling.
- Created SchedaAnnuncioPage for displaying printable announcement details.
- Added BonificoManualePage for manual bank transfer payment instructions.
- Developed PagamentoPage for Stripe payment processing with PaymentIntent creation.
- Introduced PreviewPurchasePage for preparing payment with service details.
- Added pagamenti.controller for handling payment preparation and retrieval of payment data.
2026-03-08 01:02:57 +01:00
4f9a46d1d2 Refactor code structure for improved readability and maintainability 2026-03-06 12:35:41 +01:00
61927448ca refactor: remove company-related fields from user forms and schemas 2026-02-19 11:45:09 +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
cfcddea9c8 feat: implement Potenziali and PotenzialiGroups management with CRUD operations and UI enhancements 2025-12-03 13:56:53 +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
f8e8017572 refactor: clean up SQL migration for servizio_annunci table constraints and formatting 2025-11-14 18:23:38 +01:00
63397923c4 refactor: update SQL migration to use conditional blocks for dropping and adding columns in servizio and users_anagrafica tables 2025-11-14 18:09:11 +01:00
aea90d93ba feat: add columns scadenza_motivazione_transitoria, skipPayment, skipControlloDoc, and skipDocMotivazione to servizio table 2025-11-14 18:07:41 +01:00
def6be1d47 feat: remove document references from servizio table and update deployment services 2025-11-14 18:03:55 +01:00
f2c7bcce4e feat: add Comuni, Provincie, and Nazioni tables with primary keys and indexes; update PublicSchema to include new tables 2025-11-13 11:38:41 +01:00
d894f9d6ec feat: enhance user management and document handling; refactor service and schema integrations 2025-11-10 16:27:15 +01:00
fa8dcb7d86 feat: migrate document references from servizio to users_anagrafica table 2025-11-10 12:22:55 +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
3d70810937 feat(migrations): Add multiple database migrations for new tables and data seeding
- Created migration scripts for new tables including banlist, banners, event_queue, flags, testi_e_stringhe, and ratelimiter.
- Added data seeding for banners, etichette, flags, prezziario, and testi_e_stringhe with idempotent inserts.
- Initialized database with necessary extensions and user tables.
- Updated servizio table to include new columns for managing service states.
- Established foreign key relationships and unique constraints across various tables.
- Implemented sequences for auto-incrementing primary keys in several tables.
2025-10-30 19:14:31 +01:00
5aeeebcb26 feat(migrations): Add new columns to servizio table for enhanced functionality 2025-10-30 18:43:14 +01:00
66ef4a7fbd feat(database): Add migrations for chat labels, messages, services, interests, announcements, pricing, orders, payments, and miscellaneous data
- Created tables for `chats_etichette`, `messages`, `servizio`, `servizio_interessi`, `servizio_annunci`, `prezziario`, `ordini`, `payments`, and `banlist`.
- Established primary and foreign key constraints for data integrity.
- Introduced enums for various types including `TipologiaPosizioneEnum`, `OrderTypeEnum`, and `PaymentStatusEnum`.
- Seeded initial data for banners, labels, flags, pricing, strings, and users.
- Implemented unique constraints where necessary to prevent duplicate entries.
2025-10-29 16:59:20 +01:00
527a7d7f57 Refactor GetAnnunciParsed and ParseAnnunci to include forceImages parameter for improved image processing control 2025-10-29 12:27:52 +01:00
fddf212c6d asd 2025-10-29 12:19:13 +01:00
5350d6bbe4 asdsad 2025-10-29 11:56:32 +01:00
0ac0e76fff updates 2025-10-29 11:17:48 +01:00
9218d2f7ac Add user seeding SQL script and initial Docker Compose configuration
- Created a new SQL migration script to seed a default user into the USERS table.
- Added a comprehensive Docker Compose configuration for the application, including services for the database, MinIO, KeyDB, backend, and web components.
- Configured health checks and environment variables for each service to ensure proper startup and connectivity.
2025-10-29 11:06:53 +01:00