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

Create tagging system (#792)

* Repro

* Fix

* Update signage

* Create tagging system

* Add tags to transaction imports

* Build tagging UI

* Cleanup

* More cleanup
This commit is contained in:
Zach Gollwitzer 2024-05-23 08:09:33 -04:00 committed by GitHub
parent 41c991384a
commit 457247da8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 607 additions and 90 deletions

View file

@ -65,6 +65,7 @@ en:
rules_label: Rules
security_label: Security
self_hosting_label: Self-Hosting
tags_label: Tags
transactions_section_title: Transactions
whats_new_label: What's New
nav_link_large:

View file

@ -0,0 +1,33 @@
---
en:
tags:
create:
created: Tag created
deletions:
create:
deleted: Tag deleted
new:
delete_and_leave_uncategorized: Delete "%{tag_name}"
delete_and_recategorize: Delete "%{tag_name}" and assign new tag
delete_tag: Delete tag?
explanation: "%{tag_name} will be removed from transactions and other taggable
entities. Instead of leaving them untagged, you can also assign a new tag
below."
replacement_tag_prompt: Select tag
tag: Tag
edit:
edit: Edit tag
form:
create: Create tag
update: Update
index:
empty: No tags yet
new: New tag
tags: Tags
new:
new: New tag
tag:
delete: Delete
edit: Edit
update:
updated: Tag updated

View file

@ -37,6 +37,10 @@ Rails.application.routes.draw do
end
end
resources :tags, except: %i[ show destroy ] do
resources :deletions, only: %i[ new create ], module: :tags
end
resources :transactions do
collection do
match "search" => "transactions#search", via: %i[ get post ]