Commit graph

361 commits

Author SHA1 Message Date
Renovate Bot
020902cd99 Update dependency maven to v3.9.11 2025-11-23 23:01:20 +00:00
Renovate Bot
ecef7642c9 Update dependency jakarta.xml.bind:jakarta.xml.bind-api to v4.0.4 2025-11-23 23:01:18 +00:00
d2a73c5f85 Merge pull request 'dev' (#12) from dev into main
Reviewed-on: #12
2025-11-20 17:25:39 +00:00
Jan
9ef5fe9fc7 rm deploy.yml 2025-11-20 18:23:01 +01:00
Jan
adbdb091d7 in deploy.yml: docker-compose -> docker compose 2025-11-20 18:16:40 +01:00
06a6f6cb38 Merge pull request 'dev' (#10) from dev into main
Reviewed-on: #10
2025-11-20 16:45:21 +00:00
Jan
758fa8c4e8 added Gitea action deploy.yml to deploy containers to my VM 2025-11-20 17:42:01 +01:00
Jan
353ea75ef6 Configure Renovate for Spring Boot + Vue.js 2025-11-20 16:17:33 +01:00
9d56005148 Merge pull request 'dev' (#9) from dev into main
Reviewed-on: #9
2025-11-20 14:39:50 +00:00
Jan
bae07732c8 Merge branch 'main' of git.avatic.de:avatic/lcc_tool
# Conflicts:
#	.gitea/workflows/build.yml
2025-11-20 15:20:31 +01:00
6bea303767 Merge pull request 'Configure Renovate' (#8) from renovate/configure into main
Reviewed-on: #8
2025-11-20 14:17:36 +00:00
Renovate Bot
55270ff44f Add renovate.json 2025-11-20 14:13:59 +00:00
d1bbbd91c9 Merge pull request 'Updated Docker image base path in build workflow configuration to lcc_public.' (#6) from dev into main
Reviewed-on: #6
2025-11-20 10:47:50 +00:00
Jan
2f8127bca1 Updated Docker image base path in build workflow configuration to lcc_public. 2025-11-20 11:46:47 +01:00
63ee1fdf19 Merge pull request 'Update workflow: separate builds for main and dev, push to lcc_tool_container' (#5) from dev into main
Reviewed-on: #5
2025-11-20 10:23:37 +00:00
Jan
e3aba5f373 Update workflow: separate builds for main and dev, push to lcc_tool_container 2025-11-20 11:16:15 +01:00
Jan
f5712bd162 Update workflow: separate builds for main and dev, push to lcc_tool_container 2025-11-20 11:14:08 +01:00
Jan
be7b94753e Removed unused customs store and related functionality, deprecated Toast component, optimized tariff rate modal behavior, and added HS code index updates in the database schema. Enhanced user group management APIs, refined material update handling, improved input validation in user management UI, reorganized modal styles, and addressed redundant logic across services and components. 2025-11-20 10:47:05 +01:00
Jan
a381ac3299 Replaced console logging with logger utility across the frontend, removed unused code, and centralized session management in useActiveUserStore. 2025-11-18 18:39:34 +01:00
Jan
47aab96dfa added right-management to the rights of the first user. 2025-11-18 17:43:10 +01:00
Jan
c57c2ff19d Added user management functionality to the configuration page:
- Introduced `Users` tab in `Config.vue` with a dynamic display controlled by user rights.
- Added `EditUser.vue` and `Users.vue` components for managing user details and permissions via modal dialogs.
- Implemented new `users` store handling user records, pagination, and updates.
- Updated `TableView.vue` to support badge rendering and dynamic configurations.
- Adjusted routing guards for consistent user data fetching and permissions.
- Various UI refinements and component reorganization for better maintainability.
2025-11-18 17:30:56 +01:00
Jan
83e007088c Enhanced debug logging in SecurityConfig to include group names explicitly. 2025-11-18 11:17:51 +01:00
Jan
e65f0deed2 update SecurityConfig added first- and lastname claim to be mandatory 2025-11-17 15:19:59 +01:00
Jan
af0952a034 update group name length 2025-11-17 14:06:02 +01:00
Jan
35ea0da5a9 update group name length 2025-11-17 11:41:11 +01:00
Jan
0a3d759733 Added single user fetch to user api 2025-11-17 10:16:01 +01:00
Jan
cd66b5bba5 Renamed error store to notification store, centralized spinner modal
Increased thread pool capacities in `AsyncConfig.java` and adjusted database schema for larger text fields. Enhanced HS code validation logic and added logging to `EUTaxationApiService` for improved traceability. Cleaned up unused error modal code and aligned styles for calculation processing spinners.
2025-11-16 23:02:11 +01:00
Jan
5adadb671e Centralized notification/error management in frontend, more infos in error log, bugfixing in tariff rate services. 2025-11-16 18:32:28 +01:00
Jan
35b0b8584d Refactored MaterialEdit.vue to streamline field definitions using v-for, centralized field properties in displayFields, and enhanced input handling for HS codes and tariff rates. Improved property validation and default handling in component props for better maintainability. Updated styles and removed unused CSS for a cleaner layout. Adjusted startCalculation in premiseSingleEdit.js for payload consistency. 2025-11-16 10:09:58 +01:00
Jan
a4d0f4f913 Integrated NomenclatureService for handling incomplete HS codes, added resolveIncompleteHsCodesIntern for enhanced nomenclature resolution, updated MaterialEdit.vue for dynamic HS code and tariff rate inputs, and introduced nomenclature master data table with initialization script. 2025-11-15 16:49:29 +01:00
Jan
305033e8f0 Removed unused components, services, and database schema related to nomenclature and custom tariff handling, seperated mass edit and single edit in frontend:
- **Frontend**: Deleted `SelectNode.vue` component and related styles.
- **Backend**: Removed `CustomController`, `ChangeMaterialService`, `ChangeSupplierService`, `NomenclatureService`, `NomenclatureRepository`, and unused DTOs.
- **Database**: Dropped `nomenclature` table and eliminated associated migration script.
- **Other**: Cleaned up imports and references to the removed implementations throughout the codebase.
2025-11-14 20:34:05 +01:00
Jan
b99e7b3b4f Enhanced distance calculation by integrating support for user-specific nodes:
- **Backend**: Updated `DistanceMatrixRepository`, `DistanceApiService`, and related services to handle user-node-specific relationships and unique constraints.
- **Database**: Modified `distance_matrix` table schema to include `from_user_node_id` and `to_user_node_id` with exclusive constraints and foreign key references to `sys_user_node`.
- **Frontend**: Refined error modal messages and adjusted layout for better usability. Increased pagination size in error logs for improved data display.
2025-11-12 14:04:05 +01:00
Jan
dc6ed83853 fixed upload right managment. Checking if the hs code is 10 - 12 chars long and numbers only 2025-11-10 22:19:10 +01:00
Jan
3e9e9e1d34 Replaced MaterialExcelMapper with MaterialFastExcelMapper using fastexcel instead of Apache POI. 2025-11-10 22:00:31 +01:00
Jan
a009c35b52 copy to clipboard functionality for system log. Report view sharpening 2025-11-10 20:19:49 +01:00
Jan
2975c8c3a1 fixing error in session refresh, fixing error in common.js/buildDate, added enhanced information to error log detail page 2025-11-10 17:14:49 +01:00
Jan
5d775a7dda Standardized date formatting across components by introducing buildDate utility:
- Replaced duplicate date-handling logic in multiple components (e.g., `CountryProperties.vue`, `Rates.vue`, `ErrorLog.vue`) with centralized `buildDate` method from `common.js`.
- Improved date consistency and readability by adopting `YYYY/MM/DD` format with optional time support.
2025-11-10 14:50:59 +01:00
Jan
af7b51578b Added session management with periodic keepalive:
- **Backend**: Introduced `SessionController` with `/keepalive` endpoint to keep sessions active.
- **Frontend**: Enhanced session handling with `startSessionRefresh` and activity tracking in `backend.js`. Integrated session refresh initiation in `main.js`. Adjusted logic in `CalculationAssistant.vue` for input validation.
- **Other Changes**: Updated `BulkOperationRepository` cleanup interval to 60 minutes for improved timeout handling.
2025-11-10 14:19:01 +01:00
Jan
982b637d47 Refined BulkOperationRepository timeout handling logic: renamed timeout to cleanupTimeouts and expanded state conditions to include SCHEDULED. 2025-11-07 18:39:19 +01:00
Jan
1b1356e590 Enhanced bulk processing with executor updates and timeout handling:
- **Backend**: Added `bulkProcessingExecutor` with advanced configuration (thread naming, queue handling, timeout behavior). Updated `BulkOperationController` with monitoring endpoint to expose executor stats. Enhanced `BulkOperationExecutionService` with timeout handling and error logging for bulk operation processes.
- **Frontend**: Enabled `allowFreeInput` in `AutoSuggestSearchBar.vue` for enhanced customization. Adjusted date handling across multiple components for improved consistency and formatting.
- **Database**: Introduced `timeout` logic in `BulkOperationRepository` to handle stale processing states.
2025-11-07 18:30:30 +01:00
Jan
d9229b3d73 Integrated EUTaxationApiWrapperService and asynchronous precheck:
- **Backend**: Added `EUTaxationApiWrapperService` to validate HS codes during pre-calculation. Updated `PreCalculationCheckService` to run asynchronously and return `CompletableFuture`.
- **Frontend**: Refined toast messages in `CalculationSingleEdit.vue` to handle and display server errors more clearly.
- **Database**: Marked distance matrix entries as stale during node updates.
- **Other**: Added `customLookupExecutor` for asynchronous processing in `AsyncConfig`. Updated related services and repositories to utilize async improvements.
2025-11-07 12:09:21 +01:00
Jan
a17d50b9a6 Added caching for user authorities and refactored filters:
- Introduced `UserAuthorityCacheService` with support for caching user authorities using Caffeine.
- Added `CacheConfig` with Caffeine configuration for authority caching.
- Implemented `AuthorityRefreshFilter` to dynamically refresh user roles in the security context.
- Refactored filter package structure by moving existing filters to `config.filter`.
- Updated `SecurityConfig` to integrate the new `AuthorityRefreshFilter`.
- Modified `UserService` to invalidate user authority cache upon user updates.
2025-11-07 10:48:03 +01:00
Jan
62e911caf5 Added generateRandomWorkdayId method in SecurityConfig to create random IDs if workday id shall be ignored 2025-11-07 09:58:38 +01:00
Jan
21e8a9e43a Refactored UserRepository.update to return user ID and updated SecurityConfig to handle returned value. 2025-11-07 09:39:37 +01:00
Jan
a28a14d1d3 Added configurable user identification logic:
- Introduced new properties to differentiate identification by `email` or `workdayId`.
- Updated `SecurityConfig` to handle claims dynamically based on `application.properties` configuration.
2025-11-07 09:13:01 +01:00
Jan
ae10417c44 Added bulk material update endpoint and support for deprecation handling logic:
- **Controller**: Introduced `updateMaterial` method in `MaterialController` for batch material updates.
- **Service**: Implemented update logic in `MaterialService` to handle both updates and deprecations based on the new `MaterialUpdateDTO`.
- **Transformer**: Updated `MaterialUpdateDTOTransformer` to map deprecation status and remove unused fields.
- **Repository**: Added `updateByPartNumber` and `deleteByIds` methods in `MaterialRepository` for efficient updates and deprecations.
2025-11-06 20:22:48 +01:00
Jan
6ab0f4d630 Refined tariff rate handling for bulk and mass edit features:
- **Frontend**: Properly adjusted `tariff_rate` validation and formatting in `BulkEditRow.vue`. Improved logic in `CalculationMassEdit.vue` by resetting `doLookup` state post mapping.
- **Store**: Fixed `tariffRates` mapping to ensure correct data application during premise updates.
2025-11-06 19:17:39 +01:00
Jan
d9b27bc987 Integrated EUTaxationApiWrapperService for enhanced tariff rate calculations:
- **Backend**: Introduced `getTariffRateImmediate` method for immediate tariff rate retrieval, replacing `CustomApiService` in relevant services. Updated constructor dependencies across services.
- **Frontend**: Added tariff measure sorting by code for improved data presentation in customs store.
2025-11-06 18:13:08 +01:00
Jan
ce6b8dd9b0 Integrated tariff rate calculations and customs API:
- **Backend**: Introduced `EUTaxationApiService` for TARIC data retrieval and integrated tariff rate lookup functionality. Added supporting DTOs and updated services to handle custom measures and updated logic for material and supplier changes.
- **Frontend**: Enhanced mass and single edit calculation components to include tariff rate lookup functionality and warnings. Introduced `useCustomsStore` for state management of customs data.
- **Database**: Added `nomenclature` table for storing HS code-related information.
- **Other**: Configured SOAP client for TARIC API and added logging for debugging.
2025-11-06 17:35:41 +01:00
Jan
be1ef5091b Refined distance calculations and enhanced reporting layout:
- **Backend**: Adjusted `getDistance` implementation to retrieve distances via `DistanceApiService`, with fallback to `fast` algorithm. Updated `DistanceService` to utilize API responses for more accurate calculations. Enhanced `ExcelReportingService` handling for main run containers and mixed premises logic.
- **Frontend**: Improved `Report.vue` structure for better readability and modularity. Added logic to conditionally display container details based on the main run's existence.
2025-11-01 13:27:12 +01:00