Torsten Schulz (local)
70d1d48fbc
Refactor vehicle loading in FalukantService: Update logic to load vehicle types and transports using separate queries, improving performance and preventing EagerLoadingError. Simplify data retrieval by mapping vehicle types and organizing transports by vehicle ID, enhancing code clarity and efficiency.
2026-02-04 15:20:40 +01:00
Torsten Schulz (local)
d23026121e
Refactor child character loading in FalukantService: Update logic to load child relations using separate queries, improving performance and preventing EagerLoadingError. Simplify data retrieval by eliminating unnecessary eager loading and enhancing clarity in the code structure.
2026-02-04 15:16:05 +01:00
Torsten Schulz (local)
057b038fac
Refactor relationship loading in FalukantService: Update logic to load relationships without eager loading, preventing EagerLoadingError. Enhance data retrieval by using separate queries for traits and moods, improving performance and reliability.
2026-02-04 15:12:36 +01:00
Torsten Schulz (local)
0697f3d363
Refactor trait and mood field names in FalukantService: Update database query conditions to use camelCase for traitId and moodId, ensuring consistency with model definitions and improving code readability.
2026-02-04 15:07:05 +01:00
Torsten Schulz (local)
400d44289c
Update primary key constraints in promotional gift models: Set giftId and traitId as primary keys in PromotionalGiftCharacterTrait and PromotionalGiftMood models to ensure data integrity. Enhance FalukantService to load character traits and user house data with separate queries, improving performance and preventing EagerLoadingError.
2026-02-04 15:05:19 +01:00
Torsten Schulz (local)
bbc3354f16
Refactor user house retrieval in FalukantService: Update logic to check for user ID before querying UserHouse, preventing unnecessary database calls and improving error handling. Maintain separate queries for UserHouse and relationships to avoid EagerLoadingError.
2026-02-04 14:20:22 +01:00
Torsten Schulz (local)
d038d72cde
Refactor user and relationship data retrieval in FalukantService: Update loading logic to use separate queries for UserHouse and relationships, improving reliability and preventing EagerLoadingError. Enhance heir selection UI with new translations in German and English, providing better user guidance during character selection.
2026-02-04 14:12:25 +01:00
Torsten Schulz (local)
16e54d20d0
Refactor user and relationship loading in FalukantService: Replace eager loading of UserHouse and relationships with separate queries to prevent EagerLoadingError. This change enhances data retrieval reliability and maintains performance during user-related operations.
2026-02-04 14:01:28 +01:00
Torsten Schulz (local)
14775eb556
Add product price history model and database schema: Implement associations for ProductPriceHistory with ProductType and RegionData. Update FalukantService to utilize active character for user-related operations. Ensure product price history table exists in the database with appropriate structure and indexing.
2026-02-04 09:02:51 +01:00
Torsten Schulz (local)
8b63344bc2
Enhance proposal generation logic in FalukantService: Refactor character selection process to include region and age filters, improving the randomness and relevance of director character proposals. Implement fallback mechanism for character retrieval to ensure availability, enhancing overall proposal generation reliability.
2026-02-02 08:24:28 +01:00
Torsten Schulz (local)
b648175205
Refactor trigger creation logic: Update the created_at and updated_at fields to use the election date instead of the current timestamp, ensuring accurate term end calculations. Enhance socket event handling in StatusBar component by implementing setup and teardown methods for improved event management and user notifications.
2026-02-02 07:48:53 +01:00
Torsten Schulz (local)
4bf1bc35ae
Enhance supervisor office validation in falukantService: Update error handling to provide clearer messages when no supervisor position exists or when the position is vacant. This change improves user feedback during application processes by ensuring users understand the requirements for supervisor office fulfillment.
2026-01-31 00:23:20 +01:00
Torsten Schulz (local)
39ac149430
Enhance character name display in DashboardWidget: Refactor character name construction logic in FalukantService to include title handling and create a new computed property for display name in DashboardWidget. Update styles for gender display and ensure proper localization for age representation.
2026-01-29 17:28:58 +01:00
Torsten Schulz (local)
62d8cd7b05
Add dashboard widget functionality: Implement getDashboardWidget method in FalukantService to retrieve compact user data for the dashboard. Update FalukantController and router to expose the new endpoint, and enhance DashboardWidget component to display user-specific information including character name, gender, age, money, unread notifications, and children count.
2026-01-29 17:03:32 +01:00
Torsten Schulz (local)
9519846489
Refactor inventory handling in FalukantService: Update product transport logic to retrieve all stocks for a branch, improving inventory checks and ensuring accurate transport cost calculations. Implement locking during inventory updates to maintain data integrity during transactions.
2026-01-29 16:44:02 +01:00
Torsten Schulz (local)
f7a977df33
Enhance FalukantService with character caching and optimized city retrieval: Introduce caching for cities with branch types to reduce database queries, and streamline character retrieval logic. Update product and knowledge fetching to improve performance and maintainability.
2026-01-29 16:04:43 +01:00
Torsten Schulz (local)
f1717920b6
Add batch processing for product price retrieval: Implement getProductPricesInCitiesBatch method in FalukantService for handling multiple product price requests in a single API call. Update FalukantController and router to support new endpoint, and refactor RevenueSection and SaleSection components to utilize batch processing for improved performance and reduced API calls.
2026-01-29 15:58:31 +01:00
Torsten Schulz (local)
c5ab17ad99
Refactor FalukantService and SaleSection components: Optimize product and knowledge retrieval by using Promise.all for concurrent database queries, improving performance. Additionally, reorganize the speedLabel method for better readability and maintainability, ensuring accurate localization handling for transport speed values.
2026-01-29 15:20:38 +01:00
Torsten Schulz (local)
032e336b65
Add synchronous price calculation method: Introduce calcRegionalSellPriceSync for improved performance in price calculations when worthPercent is known. Refactor getAllProductPricesInRegion to utilize this new method, enhancing efficiency by reducing database calls. Update BranchView to manage product prices cache with regionId for better data handling.
2026-01-29 15:06:38 +01:00
Torsten Schulz (local)
b3db65d1b8
Add money history graph feature: Implement moneyHistoryGraph method in FalukantService and corresponding controller and router updates. Enhance frontend with a new dialog for displaying money history over various time ranges, including localization updates for German and English. This improves user experience by providing visual insights into financial data.
2026-01-29 10:40:13 +01:00
Torsten Schulz (local)
1ead06fd4f
Add reputation actions and localization updates: Implement getReputationActions method in FalukantService, enhancing reputation management. Update German and English localization files to include new reputation action terms and mood descriptions, improving user experience and clarity.
2026-01-29 09:37:34 +01:00
Torsten Schulz (local)
c570fd6ae3
Refactor association keys in setupAssociations: Update foreign key naming conventions in Party and TitleOfNobility associations for consistency and clarity. Enhance error handling in FalukantService to ensure party ID is present before adding invited nobilities.
2026-01-29 09:05:38 +01:00
Torsten Schulz (local)
be3ed4af5d
Add reputation actions endpoint: Implement getReputationActions method in FalukantService, update FalukantController to wrap the new method, and add corresponding route in falukantRouter for retrieving reputation actions.
2026-01-29 08:59:00 +01:00
Torsten Schulz (local)
4cce044128
Refactor character name handling in enrichNotificationsWithCharacterNames: Update comments for clarity on character_name and characterName usage. Enhance localization by adding success messages in German and English translations.
2026-01-29 07:46:17 +01:00
Torsten Schulz (local)
37129055e6
Update supervisorId handling in ChurchApplication and FalukantService: Allow supervisorId to be null for entry-level positions, enhancing flexibility in application processing. Improve prerequisite office type updates in initializeFalukantTypes for better data integrity.
2026-01-28 17:02:27 +01:00
Torsten Schulz (local)
934e80c2ab
Enhance logging and validation in getAvailableChurchPositions: Add detailed console logs for office type requirements and user qualifications, improving debugging and ensuring correct handling of prerequisite office types.
2026-01-28 16:57:46 +01:00
Torsten Schulz (local)
8e20fbd24d
Add church office requirements validation in FalukantService: Implement checks for prerequisite office types when determining available positions, enhancing the application process for church offices based on user qualifications.
2026-01-28 16:52:44 +01:00
Torsten Schulz (local)
f102069f5a
Remove unused supervisor assignment in FalukantService: Clean up code by eliminating the conditional block that sets the supervisor object, streamlining the availablePositions logic.
2026-01-28 16:47:57 +01:00
Torsten Schulz (local)
afc36161ed
Add region relationship to ChurchOffice model: Establish associations between ChurchOffice and RegionData, allowing for better organization of church offices by region. Enhance logging in getChurchOverview method for improved debugging and error handling.
2026-01-28 16:45:40 +01:00
Torsten Schulz (local)
a8b76bc21a
Add church management features: Implement endpoints for church overview, available positions, supervised applications, and application processing in FalukantService and FalukantController. Update router to include new routes for these functionalities, enhancing church-related operations.
2026-01-28 16:41:19 +01:00
Torsten Schulz (local)
8550bd31d9
Add bulk pricing retrieval for products in region: Implement getAllProductPricesInRegion method in FalukantService, update FalukantController and router to support new endpoint, and modify BranchView to utilize bulk request for improved performance.
2026-01-28 15:18:26 +01:00
Torsten Schulz (local)
0c407b81b7
Enhance error handling in FalukantService: Add validation for product sellCost in calcRegionalSellPrice and getProductPriceInRegion methods, ensuring proper error messages are logged when sellCost is undefined or null.
2026-01-28 15:05:28 +01:00
Torsten Schulz (local)
71b4a02592
Update FalukantService to include character ID in attributes and enhance logging in PoliticsView for better debugging of character data retrieval.
2026-01-28 14:58:11 +01:00
Torsten Schulz (local)
c544c2c7f9
Add holder ID to character object in FalukantService: Include the holder's ID in the character data structure to enhance user identification and data integrity.
2026-01-28 14:52:08 +01:00
Torsten Schulz (local)
01679697b4
Remove debug logging from getFalukantUserByHashedId and getChildren methods in FalukantService for cleaner code and improved performance.
2026-01-28 13:44:12 +01:00
Torsten Schulz (local)
d4fb2a8ccc
Enhance health activity error handling: Implement detailed error responses in FalukantController for 'tooClose' scenarios, including retry timing. Update localization files for improved user feedback on health measures and errors. Refactor error handling in HealthView to display appropriate messages based on error responses.
2026-01-28 13:34:42 +01:00
Torsten Schulz (local)
cbff7c130c
Füge Funktion zum Abbrechen der Werbung hinzu: Implementiere cancelWooing in FalukantService und FalukantController, aktualisiere FamilyView für die Benutzeroberfläche und verbessere die Fehlermeldungen bei vorzeitigen Abbrüchen.
2026-01-28 11:53:34 +01:00
Torsten Schulz (local)
955ea1a9ed
Enhance gift sending logic: Implement retry mechanism for 'tooOften' error in FalukantService and update error handling in FamilyView to display retry time.
2026-01-26 16:45:13 +01:00
Torsten Schulz (local)
71748f6aa0
Refactor SaleSection component: Simplify sell item and sell all logic, remove unnecessary state management, and improve UI feedback. Update translations and clean up unused code in i18n files. Optimize price loading in BranchView and remove legacy product loading in MoneyHistoryView. Streamline PoliticsView by removing own character ID handling and related logic.
2026-01-26 16:03:48 +01:00
Torsten Schulz (local)
80b639b511
Remove deprecated relationship change log migration and enhance error handling in FalukantService for partner retrieval
2026-01-26 10:10:22 +01:00
Torsten Schulz (local)
120cb5fadd
Refactor and reintroduce character name enrichment logic in FalukantService
...
- Moved the enrichNotificationsWithCharacterNames function back into the FalukantService class, ensuring character names are correctly parsed and attached to notifications.
- Implemented a comprehensive ID collection and resolution mechanism for character references, enhancing the accuracy of character name assignments.
- Improved error handling during JSON parsing and ID resolution to maintain robustness in notification processing.
2026-01-23 13:46:06 +01:00
Torsten Schulz (local)
bceef9777a
Refactor church career validation in FalukantService
...
- Moved church career checks to a more logical position in the transaction flow.
- Improved error handling by ensuring character existence is validated before checking for church office.
- Cleaned up commented code for better readability and maintainability.
2026-01-22 16:54:29 +01:00
Torsten Schulz (local)
4f786cdcc3
Implement church career management features
...
- Added endpoints for church career functionalities including overview, available positions, application submission, and application decision-making.
- Enhanced the FalukantController to handle church-related requests.
- Updated associations and models to support church office types and requirements.
- Integrated new routes in the falukantRouter for church career operations.
- Implemented service methods for managing church applications and checking church career status.
- Updated frontend components to display current positions, available positions, and manage applications with appropriate UI elements and loading states.
- Localized new church-related strings in both English and German.
2026-01-22 16:46:42 +01:00
Torsten Schulz (local)
8c0f07cc51
Optimize falukantService and DirectorInfo component for improved performance and user experience
...
- Refactored proposal handling in falukantService to load existing proposals before cleaning expired ones, reducing unnecessary database queries.
- Enhanced fetchProposals method with explicit joins for better performance and added a limit to avoid excessive data retrieval.
- Updated DirectorInfo component to reload data after hiring a director, ensuring the UI reflects the latest information.
2026-01-22 10:15:45 +01:00
Torsten Schulz (local)
a76aae3d12
Update falukantService and MessagesDialog for improved data handling and parameter extraction
...
- Changed the join in falukantService from 'title_of_nobility' to 'title' for better clarity in data relationships.
- Enhanced MessagesDialog.vue to directly extract parameters from parsed data when no value object is present, improving the handling of character-related parameters and ensuring backend names take precedence.
2026-01-21 08:33:59 +01:00
Torsten Schulz (local)
59c05b3628
Implement job hierarchy and region depth calculations in FalukantService; enhance PoliticsView with own position highlighting
...
- Added a job hierarchy mapping to determine positions based on their rank.
- Introduced asynchronous region depth calculations to determine the hierarchy of regions.
- Updated the mapping of office data to include job hierarchy levels and region depths.
- Enhanced the PoliticsView to highlight the user's own positions with a distinct style.
- Implemented a method to load the user's character ID for position comparison.
2026-01-16 16:25:22 +01:00
Torsten Schulz (local)
a17e8537fb
Enhance character name resolution in enrichNotificationsWithCharacterNames function
...
- Introduced sets for collecting first name and last name IDs to improve character name enrichment.
- Implemented batch loading of first names and last names, optimizing database queries.
- Added a helper function to resolve names from character first and last name IDs, enhancing notification data with resolved character names.
- Improved logic for attaching resolved names to notifications, prioritizing name resolution from IDs over fallback methods.
2026-01-15 13:33:54 +01:00
Torsten Schulz (local)
b706191a0e
Refactor effect handling in enrichNotificationsWithCharacterNames to improve data parsing
...
- Simplified the logic for processing notification effects by consolidating the JSON parsing into a single conditional check, enhancing code readability and maintainability.
- Ensured consistent handling of effects regardless of their initial format, improving robustness in notification enrichment.
2026-01-15 09:28:00 +01:00
Torsten Schulz (local)
ba469ef900
Refactor notification handling in FalukantService to improve data processing
...
- Convert notification rows to plain objects before enriching with character names, ensuring compatibility with subsequent processing.
- Update return structure to include plain notification objects, enhancing data consistency in the response.
2026-01-15 08:16:04 +01:00
Torsten Schulz (local)
e852346b94
Update mood handling in FalukantService and enhance Socket.io configuration in store
...
- Modified mood assignment in FalukantService to conditionally wrap mood data in an object based on moodId presence, improving data structure consistency.
- Refactored Socket.io initialization in the store to dynamically set the secure option based on the URL scheme, enhancing connection security in production environments.
2026-01-14 16:22:05 +01:00