Commit graph

37 commits

Author SHA1 Message Date
1307f352a4 feat: enhance payment preparation logic and add rinnovo handling
- Refactor `preparePayment` function to handle multiple order types including Rinnovo.
- Introduce new `RinnovoSolver` function to calculate renewal packs based on duration.
- Add `createRinnovo` service to manage the creation of renewal orders.
- Update `whIntentSucceededHandler` to handle payment confirmations for Rinnovo and other order types.
- Introduce default conditions for packs in `prezziario.service.ts`.
- Add new utility functions for managing renewal durations and permanenza.
- Update database interactions to ensure proper handling of orders and renewals.
- Enhance error handling and logging throughout the payment and renewal processes.
2026-03-17 18:46:43 +01:00
c18f96b8c7 fix: remove trailing comma in user_etichette table definition 2026-03-10 17:03:55 +01:00
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
3d0d8ba830 refactor(dev-docker-compose): Remove unused environment variable from migrate service 2025-10-30 19:07:44 +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
bd5a35a172 Refactor service document handling and contact modal
- Removed temp_tokens data from SQL initialization.
- Updated AllegatiComp to invalidate additional service announcements on file removal.
- Simplified imports in interactions.tsx and removed unused components.
- Enhanced ServizioContent layout for better display of announcements.
- Adjusted button styles in servizio_annunci_accordions for responsiveness.
- Streamlined ricerca-table by removing unnecessary ServizioProvider wrapping.
- Modified upload modal to support new upload callback structure.
- Added new document reference fields to Servizio schema.
- Introduced UsersStorageUserStorageId type for better type safety.
- Updated servizio.controller to include document references in service announcements.
- Changed storage.controller to return user_storage_id on conflict.
- Updated docker-compose to streamline storage service configuration.
- Created migration script for new foreign key constraints on document references.
- Implemented ContattiProprietarioModal to manage document uploads and contact unlocking.
2025-10-29 09:39:06 +01:00
94fd389afa feat: update database schema and data with new fields for availability and payment options 2025-08-29 10:28:15 +02:00
750ec05a1e Add .dockerignore files and remove migration.sql
- Created a new .dockerignore file in the apps/db directory to exclude unnecessary files from Docker builds.
- Deleted the migration.sql file from the apps/db directory as it is no longer needed.
- Updated the .dockerignore file in the apps/infoalloggi directory to include additional files and directories to be ignored during Docker builds.
2025-08-28 14:58:43 +02:00
52712c25d5 Implement code changes to enhance functionality and improve performance 2025-08-16 19:38:38 +02:00
1c3e682515 Refactor interests table: replace with servizio_interessi and update constraints 2025-08-05 16:21:55 +02:00
edd57928c7 Remove sysctl settings from keydb service in docker-compose.yml and add TELEFONO field to user seed data in 3_seed_user.sql 2025-08-04 18:40:39 +02:00
29c64c7e39 init 2025-08-04 17:45:44 +02:00