Commit graph

344 commits

Author SHA1 Message Date
Anja Guenther
562764561e Merge branch 'main' of git.avatic.de:avatic/lcc_tool 2025-10-26 21:50:59 +01:00
Anja Guenther
4c6b0e5fe2 Container Berechnung limiting factor korrigiert,
Migration für materialien vollständig,
Safety target für countries geändert
2025-10-26 21:50:01 +01:00
Jan
68b688673c Added AppGroupItem Vue component for displaying group information with selection functionality 2025-10-26 17:22:32 +01:00
Jan
6acfbe1602 Introduced app management functionality:
- Added Vue components (`AppListItem`, `AddApp`, `Apps`) for app management.
- Implemented Vuex stores for apps and groups.
- Enhanced backend:
  - CRUD operations for apps and group mappings.
  - Introduced a new service for app-related logic.
  - Updated database schema and DTO structure.
- Adjusted security and CORS configurations.
- Updated docker-compose to align service dependencies.
2025-10-26 17:19:46 +01:00
Jan
f75b20830c Extended role-based access in MaterialController to include additional roles. 2025-10-26 12:37:11 +01:00
Jan
932b42d926 Cleanup application.properties and .env, added vite .env to repository 2025-10-25 18:52:54 +02:00
Jan
55daec064c Commented out dynamic OAuth2 redirection configuration in SecurityConfig. 2025-10-25 17:19:06 +02:00
Jan
7a4d1bf465 Added same-site attribute for session cookies and updated application.properties. 2025-10-25 17:16:11 +02:00
Jan
d190b69664 Marked session cookies as secure in application.properties. 2025-10-25 16:45:43 +02:00
Jan
8cb922a88d Updated properties and enhanced SecurityConfig
- Changed `server.forward-headers-strategy` to `native` in `application.properties`.
- Added exclusion for `/login/oauth2/code/**` in CSRF configuration.
2025-10-25 16:45:01 +02:00
Jan
3f0644c1e9 Set dynamic redirect URI in SecurityConfig and updated properties 2025-10-25 16:17:56 +02:00
Jan
b33e28a248 Removed Azure redirect URI 2025-10-25 11:47:22 +02:00
Jan
e7ba98bdd7 Added Azure redirect URI in properties and dynamic backend URL in frontend configuration 2025-10-24 20:14:24 +02:00
Jan
2b83bfe956 Replaced Material data with dummy data & restored dockerfile
because flyway does not execute successfully with the contained duplicates etc.
2025-10-24 08:06:33 +02:00
Jan
f982bc4629 Replaced Material data with dummy data
because flyway does not execute successfully with the contained duplicates etc.
2025-10-24 06:31:36 +02:00
Jan
e79db9e1b7 Introduced Flyway 2025-10-24 06:21:11 +02:00
Jan
a83ee4dacd - added actuator
- optimized dockerfile
2025-10-23 20:59:48 +02:00
Jan
4d0f04b0cb Zurück zu klassischem Docker Build 2025-10-23 20:34:57 +02:00
Jan
6ff113007e BuildKit-Container mit custom /etc/hosts 2025-10-23 20:32:39 +02:00
Jan
66a77babfe Update .dockerignore and improve Gitea CI workflow
- Expanded `.dockerignore` to include additional build artifacts, OS files, test files, IDE files, logs, and docs.
- Enhanced Gitea CI workflow by integrating `docker/setup-buildx-action` and switching to `docker/build-push-action` with caching support.
2025-10-23 19:13:43 +02:00
Jan
1c0165cf73 back to external docker registry. 2025-10-23 17:15:04 +02:00
Jan
4fe7e91119 retry 2 2025-10-23 17:02:49 +02:00
Jan
7abfc2578d refactor again 2025-10-23 16:51:25 +02:00
Jan
d327b1649c Refactor Gitea CI workflow, because of missing CA in actions 2025-10-23 16:38:50 +02:00
Jan
c071609eb2 Refactor & Enhancements:
- Refactored `validateApp` in `AppsService` to return `Optional<App>` instead of `null`.
- Updated `JwtTokenService` to handle `expiration` parameter and use `App` object for token creation.
- Improved `TokenController` to work with the updated service layer.
- Fixed typo in `Report.vue` ("Airfreight" to "Air freight").
- Updated application properties to use `SPRING_PROFILES_ACTIVE`.
- Added `.dockerignore`, `dockerfile`, and `docker-compose.yml`, enabling Docker support.
- Removed unused Maven plugins and updated `vite.config.js` build directory.
- Introduced Gitea CI workflows for building and pushing Docker images.
2025-10-23 14:52:28 +02:00
Jan
0c51bf7c3d Add version to exec-maven-plugin and enforce role-based access for user and group endpoints 2025-10-21 21:34:20 +02:00
Jan
a76de8e53c - Refactoring: put all models in subdirectories under model:
* model/db -> entities
  * model/excel -> excel parsing
  * model/calulation -> for logistic cost calculation
  * model/azuremaps -> geocding

- added endpoints & service & repo to manage external apps.
- added jwt issuer service & oauth/token endpoint for external apps.
2025-10-21 21:23:27 +02:00
Jan
23ee5fad79 Bugfix: improve geocoding logic for Azure Maps API; enhance validation and address mapping in batch processing 2025-10-21 13:09:56 +02:00
Jan
2aaf820bdc Bugfix:
- taking the newest validity tuple, when fetching reports
- risk and changes are only calculated for main run (and not all sections)
2025-10-19 21:56:32 +02:00
Jan
0c88c5ed0f Bugfix: takes property set into account when collecting comparable reports. 2025-10-19 19:55:19 +02:00
Jan
67fc5607e3 Bugfix: creates a copy of all matrix rates if only container rates are updated and vice versa 2025-10-19 19:06:11 +02:00
Jan
d10f301b3d Bugfix: change risk only for none matrix rates. 2025-10-19 17:31:16 +02:00
Jan
b19e16fbb0 Bugfix: fixed reporting for user generated nodes 2025-10-19 17:24:23 +02:00
Jan
a2e0029dfe Bugfix: update url, when remove line from mass edit view 2025-10-19 15:27:30 +02:00
Jan
de896cea30 Bugfix: price mass edit 2025-10-19 15:06:55 +02:00
Jan
3d3a4dbfab Bugfix: user supplier "source"-type bugfix 2025-10-19 14:55:54 +02:00
Jan
c573d7647f - fixed bug in material mass edit
- removed geocoding from bulk import (temporarly)
2025-10-19 13:47:40 +02:00
Jan
108e89195c - fixed pagination error on delete etc. 2025-10-19 13:39:53 +02:00
Jan
3b05befa92 added missing changes to perious commit 2025-10-19 13:05:00 +02:00
Jan
f657ff2c80 - Added geocoding functionality:
- Implemented address verification and geolocation in `CreateNewNode`.
  - Integrated `GeoApiService` with error handling using `GeocodingException`.
  - Updated `NodeController` for geocoding and user node creation.
  - Refactored related components and store for enhanced geolocation support.
2025-10-19 12:20:28 +02:00
Jan
d7bc62c713 - Better error handling during calculation
- Bugfixes in calculation (error in getByMappingIdAndCountryId)
2025-10-18 22:20:51 +02:00
Jan
78bd0ad6d6 - Calculations can be started now with any validity period and property set.
- added preflight check for validity period, property set and all route sections
2025-10-18 19:52:10 +02:00
Jan
dac371b481 Bugfix: Reset pagination position on delete (my calculations) 2025-10-18 10:13:05 +02:00
Jan
8aca48b5ec Bugfix: Check premise access rights works as expected. 2025-10-18 09:45:26 +02:00
Jan
20ad15e4e4 Refactoring premiss edit:
- fixed bug in mass edit, when editing single value
2025-10-18 09:28:11 +02:00
Jan
20fa52826a reworked "my calculation" page:
- select over multiple pages
- reopen completed calculations
2025-10-17 22:35:33 +02:00
Jan
3141e62b08 - intermediate commit 2025-10-13 14:00:28 +02:00
Jan
79dea999ad - intermediate commit 2025-10-12 13:41:37 +02:00
Jan
7eaba06e6a Merge branch 'EntraID-Integration' 2025-10-07 15:55:20 +02:00
Jan
431694ce22 - added navigation guards
- added roles to endpoints
- added user ids where needed
2025-10-07 15:53:37 +02:00