-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/#301 modify project detail page #317
base: master
Are you sure you want to change the base?
Feature/#301 modify project detail page #317
Conversation
…dify-project-detail-page
- Add TransactionsController to merge incomes and expenses data - Implement GetLatestTransactions endpoint to fetch last 5 transactions - Add transactions table component to frontend dashboard - Display combined income/expense transactions with type indicator
…https://github.com/alcaron7/EconoFlow into feature/FelipePSoares#301-modify-project-detail-page
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added some comments and suggestions, please let me know if you need some help or explanation about anything.
Thank for your work, really nice work.
EasyFinance.Application/Features/ExpenseItemService/ExpenseItemService.cs
Outdated
Show resolved
Hide resolved
EasyFinance.Application/Features/ExpenseItemService/IExpenseItemService.cs
Outdated
Show resolved
Hide resolved
EasyFinance.Application/Features/IncomeService/IIncomeService.cs
Outdated
Show resolved
Hide resolved
EasyFinance.Application/Features/IncomeService/IncomeService.cs
Outdated
Show resolved
Hide resolved
easyfinance.client/src/app/features/project/detail-project/detail-project.component.ts
Outdated
Show resolved
Hide resolved
easyfinance.client/src/app/features/project/detail-project/detail-project.component.ts
Outdated
Show resolved
Hide resolved
…mService.cs Co-authored-by: Felipe Soares <[email protected]>
…emService.cs Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
…ail-project.component.ts Co-authored-by: Felipe Soares <[email protected]>
…ail-project.component.ts Co-authored-by: Felipe Soares <[email protected]>
Great suggestions that I applied. Did some changes to finish the DTO mapping. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was looking to the errors and thinking now and maybe should be a great thing instead make 2 calls to the database inexpenseItemService
and IncomeService
just create a method in the ProjectService
getting all the data once. Than you don't need to call GetLatestAsync
from income and expense, just call from project and use it.
What do you think?
easyfinance.client/src/app/features/project/detail-project/detail-project.component.html
Outdated
Show resolved
Hide resolved
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
Co-authored-by: Felipe Soares <[email protected]>
I think it's better to keep it the way you have it. The separation gives us more flexibility to handle specific logic for each type, makes the code more maintainable, and follows single responsibility principle. It also keeps the functions reusable when we need only income or only expense data. While one database call would be more efficient, the current architecture benefits outweigh this small performance difference. |
Nice point, ok, we can keep as is, do you need some help to solve these building problems? |
What type of PR is this? (check all applicable)
Description
Added a new feature to display the most recent transactions on the dashboard of a project. This includes:
Related Tickets & Documents