Skip to content

Feat/user profile#6

Merged
devjaes merged 4 commits into
developfrom
feat/user-profile
Oct 13, 2025
Merged

Feat/user profile#6
devjaes merged 4 commits into
developfrom
feat/user-profile

Conversation

@devjaes

@devjaes devjaes commented Oct 12, 2025

Copy link
Copy Markdown
Owner

This pull request introduces significant improvements to the finance management system, focusing on enhanced reporting capabilities, better goal handling, and bug fixes. The updates include new report types and data structures, improved filtering logic for goals and reports, and more robust handling of shared goals and date fields. Additionally, the documentation has been expanded to provide a comprehensive overview of the backend and frontend architectures, features, and known issues.

Reporting Enhancements

  • Added multiple new report types and corresponding interfaces to report.entity.ts, including TRANSACTIONS_SUMMARY, EXPENSES_BY_CATEGORY, MONTHLY_TREND, BUDGET_PERFORMANCE, and FINANCIAL_OVERVIEW, allowing for richer financial analysis and summaries. [1] [2]
  • Updated the report generation controller in report.controller.ts to process date filters correctly, enforce required parameters for specific report types, and handle buffer responses for PDF, Excel, and CSV formats properly. [1] [2] [3] [4] [5] [6]

Goal Management Improvements

  • Enhanced goal repository logic to support shared goals: the findByUserId and filter logic now include both owner and shared user, and filtering by date can use either created_at or end_date depending on context. Also, the update and create methods were streamlined for clarity and correctness. [1] [2] [3] [4] [5] [6]
  • Extended the ReportFilters interface to support a new filterBy parameter, allowing dynamic selection of the date field for filtering goals and reports.

Bug Fixes and Code Quality

  • Fixed formatting and improved readability in the debt repository, including correct mapping of category and creditor fields, and streamlined update logic. [1] [2] [3]
  • Improved error logging and response handling in the report controller for better debugging and client communication. [1] [2]

Documentation Updates

  • Added a detailed PROJECT_DOC.md summarizing backend and frontend architecture, implemented features, project status, and critical bugs, providing clear context for current and future development.

…ansaction repository methods

- Changed date validation in transaction filters from datetime to date.
- Updated transaction repository methods to include category names in category totals.
- Improved date handling in transaction queries to ensure correct filtering by date range.
- Added new report types: Transactions Summary, Expenses by Category, Monthly Trend, Budget Performance, and Financial Overview.
- Implemented corresponding formatting functions for PDF generation of new report types.
- Updated report service to handle new report types and their respective data processing.
- Improved date handling in report filters and ensured proper validation for goal IDs in report requests.
- Refactored PDF generation components for better modularity and maintainability.
…ervices

- Introduced a complete project documentation file detailing system architecture, backend and frontend technologies, and database structure.
- Added new CSV and Excel formatting functions for various report types, including Budget Performance and Financial Overview.
- Enhanced PDF generation for reports with improved layout and modularity.
- Implemented new repository methods for goal sharing and refined existing report handling logic.
- Updated date formatting utilities for consistent date representation across reports.
… clarity

- Refactored debt and user repository methods to improve code readability and maintainability.
- Standardized naming conventions for properties, changing `registrationDate` to `registration_date` across relevant interfaces and implementations.
- Enhanced the mapping functions to ensure consistent data transformation from database records to entity models.
- Updated method signatures to reflect the new property names, ensuring compatibility with existing functionality.
@devjaes devjaes requested a review from Leninner October 12, 2025 07:16
@devjaes devjaes merged commit deced8f into develop Oct 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant