1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-02 20:15:22 +02:00

Bulk transaction deletion (#845)

* Clean up transaction show view, add delete button

* Clean up tailwind global styles, add switch

* Bulk deletion controller and tests

* Normalize translations

* Add bulk deletion button and form
This commit is contained in:
Zach Gollwitzer 2024-06-07 16:56:30 -04:00 committed by GitHub
parent 115f792198
commit d3f9be15f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 225 additions and 95 deletions

View file

@ -1,6 +1,11 @@
---
en:
transactions:
bulk_delete:
success: "%{count} transactions deleted"
bulk_update:
failure: Could not update transactions
success: "%{count} transactions updated"
categories:
create:
success: New transaction category created successfully
@ -96,6 +101,17 @@ en:
update:
success: Merchant updated successfully
show:
additional: Additional
delete: Delete
delete_subtitle: This permanently deletes the transaction, affects your historical
balances, and cannot be undone.
delete_title: Delete transaction
description: Description
exclude_subtitle: This excludes the transaction from any in-app features or
analytics.
exclude_title: Exclude transaction
overview: Overview
select_tags: Select one or more tags
settings: Settings
update:
success: Transaction updated successfully

View file

@ -43,6 +43,9 @@ Rails.application.routes.draw do
resources :transactions do
collection do
post "bulk_delete"
post "bulk_update"
scope module: :transactions, as: :transaction do
resources :rows, only: %i[ show update ]