luceroweb / luceroweb/karot-saving-smart
[F3:EF4] Delete Expense & Update Total Balance
@srosenberg74 is already working on this.
Since Jun 16, 2022.
- Dominant language
- TypeScript
- Stars
- 3
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
[timebox: , complexity: ]
As a user, when I am updating an expense, I will see a “delete expense” button - when selected, a confirm/cancel delete dialog will display - so that when confirmed, the expense and any associated transactions will be deleted, and my “Extra Money” value is updated.
**User Expectations**
- There will be a "delete Expenses" control in the edit confirm/cancel delete dialog
- When I click on the "delete expense" control a confirmation dialog will open to make sure I don't delete expenses accidentally
- When I click the "confirm", the expense will be deleted
- If I select "cancel", then there is no change, the expense is not deleted
- The expenses list and the Extra Money will be updated accordingly
**Developer Dependencies**
- Dependent on completion of #94
- Dependent on completion of #93
- Refer to the functions in the `ReduxStateTest.tsx` component for an example of how to recalculate balances
- Create a `deleteExpenses` action in the reducer in `expensesSlice.tsx`
- Add a `delete Expenses` option to the Add/Edit Expenses form, that when selected, will run the `deleteExpenses` action to delete the Expense from the state
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.