1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-05 05:25:24 +02:00

Move categories to top-level namespace (#894)

This commit is contained in:
Zach Gollwitzer 2024-06-20 08:15:09 -04:00 committed by GitHub
parent a947db92b2
commit 2681dd96b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
48 changed files with 229 additions and 223 deletions

View file

@ -0,0 +1,43 @@
---
en:
categories:
create:
success: New transaction category created successfully
deletions:
create:
success: Transaction category deleted successfully
new:
category: Category
delete_and_leave_uncategorized: Delete "%{category_name}" and leave uncategorized
delete_and_recategorize: Delete "%{category_name}" and assign new category
delete_category: Delete category?
explanation: By deleting this category, every transaction that has the "%{category_name}"
category will be uncategorized. Instead of leaving them uncategorized, you
can also assign a new category below.
replacement_category_prompt: Select category
dropdowns:
row:
delete: Delete category
edit: Edit category
show:
add_new: Add new
clear: Clear
no_categories: No categories found
search_placeholder: Search
edit:
edit: Edit category
form:
create: Create category
update: Update
index:
categories: Categories
new: New
menu:
loading: Loading...
new:
new_category: New category
row:
delete: Delete category
edit: Edit category
update:
success: Transaction category updated successfully

View file

@ -22,47 +22,6 @@ en:
bulk_update:
failure: Could not update transactions
success: "%{count} transactions updated"
categories:
create:
success: New transaction category created successfully
deletions:
create:
success: Transaction category deleted successfully
new:
category: Category
delete_and_leave_uncategorized: Delete "%{category_name}" and leave uncategorized
delete_and_recategorize: Delete "%{category_name}" and assign new category
delete_category: Delete category?
explanation: By deleting this category, every transaction that has the "%{category_name}"
category will be uncategorized. Instead of leaving them uncategorized,
you can also assign a new category below.
replacement_category_prompt: Select category
dropdowns:
row:
delete: Delete category
edit: Edit category
show:
add_new: Add new
clear: Clear
no_categories: No categories found
search_placeholder: Search
edit:
edit: Edit category
form:
create: Create category
update: Update
index:
categories: Categories
new: New
menu:
loading: Loading...
new:
new_category: New category
row:
delete: Delete category
edit: Edit category
update:
success: Transaction category updated successfully
create:
success: New transaction created successfully
destroy:

View file

@ -41,6 +41,13 @@ Rails.application.routes.draw do
resources :deletions, only: %i[ new create ], module: :tags
end
resources :categories do
resources :deletions, only: %i[ new create ], module: :categories
collection do
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
end
end
resources :transactions do
collection do
post "bulk_delete"
@ -51,14 +58,6 @@ Rails.application.routes.draw do
scope module: :transactions, as: :transaction do
resources :rows, only: %i[ show update ]
resources :categories do
resources :deletions, only: %i[ new create ], module: :categories
collection do
resource :dropdown, only: :show, module: :categories, as: :category_dropdown
end
end
resources :rules, only: %i[ index ]
resources :merchants, only: %i[ index new create edit update destroy ]
end