Commit graph

28 commits

Author SHA1 Message Date
Jan
af0952a034 update group name length 2025-11-17 14:06:02 +01:00
Jan
0a3d759733 Added single user fetch to user api 2025-11-17 10:16:01 +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
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
f7efc9eb81 Refined actuator endpoint security rules:
- Allowed public access to `/actuator/health`.
- Enforced authentication for other `/actuator/**` endpoints in production.
- Allowed all `/actuator/**` endpoints in development.
2025-10-30 21:56:35 +01:00
Jan
a289cce805 Enhanced CORS configuration for OAuth2 and role-based tab visibility in frontend:
- **Backend**: Added separate CORS settings for `/oauth2/token` endpoint with enhanced origin handling based on new `lcc.allowed_oauth_token_cors` property.
- **Frontend**: Updated `Config.vue` to conditionally display `nodesTab` and `bulkOperationsTab` based on user roles.
2025-10-30 15:05:12 +01:00
Jan
e1791942cb Updated CORS configuration to handle empty allowed origins and added placeholder property. 2025-10-30 14:25:09 +01:00
Jan
932b42d926 Cleanup application.properties and .env, added vite .env to repository 2025-10-25 18:52:54 +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
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
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
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
79dea999ad - intermediate commit 2025-10-12 13:41:37 +02:00
Jan
10687ffe5d - Integrated entra id into "prod"-profile 2025-10-02 21:46:38 +02:00
Jan
f6160a4153 - Integrated the frontend within the static folder of the backend:
* changed the build target of npm run build to the static folder of the spring project.
  * integrated the the npm build into the maven build
  * adjusted the spring config:
      * removed cors configs
      * added frontend config with the routes to frontend in static folder
2025-10-02 17:32:37 +02:00
Jan
5e114ce859 Added errors to database and simple error view in frontend 2025-09-19 17:00:18 +02:00
Jan
32feeb06a0 BACKEND: Introduce AzureMapsController for managing Azure Maps configuration with Entra ID integration; add endpoints for configuration retrieval, health checks, and role-based permissions; enhance country dataset in alldata.sql with names for better clarity. 2025-09-04 16:43:02 +02:00
Jan
dd56a539ef FRONTEND: Enhance calculation search functionality with debounce support, filter toggles, and new input handling; add AutoSuggestSearchBar component and Spinner UI for improved UX; update checkbox styles and introduce PremiseStore for state management.
BACKEND: Added filter to allow CORS. To be removed for prod
2025-08-07 11:20:43 +02:00
Jan
5ec07294d3 Remove unused classes, enhance repository queries, and update schema
Deleted `NodePredecessor` class and legacy query structures. Improved repository queries with grouped logic and added support for optional fields like `is_required`. Updated SQL schema and data to include additional countries (`BQ`, `XK`) and align unique constraints. Introduced `SecurityConfig` for profile-specific security chains.
2025-07-03 17:04:28 +02:00
Jan
af76f6821b Refactor bulk services and enhance database schema.
Replaced `TemplateGenerationService` with `TemplateExportService` and introduced `ExcelMapper` classes for enhanced sheet handling. Updated the database schema to refine node predecessor handling and added new utility methods in repositories. These changes aim to improve bulk operations and data consistency.
2025-04-15 22:09:47 +02:00
Jan
19d8d236fa Add database schema and configuration properties
Introduced MySQL configuration and properties setup in `application.properties`. Added a comprehensive database schema covering users, logistics, packaging, and calculations. Updated `.gitignore` to exclude the `env.properties` file.
2025-02-25 18:31:47 +01:00
Jan
0f91ad44e8 first commit 2025-02-23 13:10:49 +01:00