Skip to content

Feat: 3.2 Update monthly budget#17

Merged
LofoWalker merged 4 commits intomainfrom
feat/3-2-update-monthly-budget
Feb 13, 2026
Merged

Feat: 3.2 Update monthly budget#17
LofoWalker merged 4 commits intomainfrom
feat/3-2-update-monthly-budget

Conversation

@LofoWalker
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 13, 2026 00:06
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements Story 3.2: Update Monthly Budget, allowing company owners to modify existing monthly budgets. The implementation follows a hexagonal architecture pattern with clear separation between domain, application, and infrastructure layers across both backend (Java/Quarkus) and frontend (TypeScript/React).

Changes:

  • Added backend use case for updating budgets with owner authorization and audit logging
  • Created frontend edit form with warning dialog for budget reductions
  • Fixed JPA repository to handle both insert and update operations
  • Included comprehensive unit tests (5 test cases)

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
UpdateCompanyBudgetUseCase.java Port interface defining command and result records for budget updates
UpdateCompanyBudgetUseCaseImpl.java Use case implementation with authorization, validation, and audit logging
UpdateCompanyBudgetUseCaseImplTest.java Unit tests covering success, authorization, and error scenarios
BudgetNotFoundException.java New domain exception for missing budgets
BudgetJpaRepository.java Modified save method to handle updates by checking entity existence
BudgetResource.java Added PATCH endpoint for budget updates
UpdateBudgetRequest.java DTO with validation for budget update requests
UpdateBudgetResponse.java DTO with warning flags for budget update responses
api.ts Added updateBudget API function with TypeScript interfaces
BudgetEditForm.tsx New component with form validation and warning dialog
BudgetSummaryView.tsx Added edit mode toggle and Edit Budget button
3-2-update-monthly-budget.md Implementation documentation with detailed summary
Copilot-Processing.md Working document tracking implementation progress

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LofoWalker LofoWalker merged commit eb366c6 into main Feb 13, 2026
2 checks passed
@LofoWalker LofoWalker deleted the feat/3-2-update-monthly-budget branch February 13, 2026 00:21
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.

2 participants