mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 21:45:23 +02:00
New Settings Menu, Routes and Controllers Organization (#641)
* Add new settings routes and controllers * Add new settings view, restructure controllers and routes * Fix lint errors
This commit is contained in:
parent
39d57a167e
commit
9bda7efc3f
52 changed files with 771 additions and 203 deletions
|
@ -16,6 +16,8 @@ en:
|
|||
placeholder: Example account name
|
||||
select_accountable_type: What would you like to add?
|
||||
title: Add an account
|
||||
summary:
|
||||
new: New account
|
||||
sync:
|
||||
success: Account sync started
|
||||
update:
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
---
|
||||
en:
|
||||
layouts:
|
||||
application:
|
||||
accounts: Accounts
|
||||
dashboard: Dashboard
|
||||
new_account: New account
|
||||
transactions: Transactions
|
||||
auth:
|
||||
or: or
|
||||
privacy_policy: Privacy Policy
|
||||
|
@ -13,3 +8,8 @@ en:
|
|||
sign_up: create an account
|
||||
terms_of_service: Terms of Service
|
||||
your_account: Your account
|
||||
sidebar:
|
||||
accounts: Accounts
|
||||
dashboard: Dashboard
|
||||
new_account: New account
|
||||
transactions: Transactions
|
||||
|
|
|
@ -1,8 +1,25 @@
|
|||
---
|
||||
en:
|
||||
settings:
|
||||
self_hosting:
|
||||
hostings:
|
||||
update:
|
||||
render_deploy_hook_error: Render deploy hook must be provided to enable auto
|
||||
upgrades
|
||||
success: Settings updated successfully.
|
||||
nav:
|
||||
accounts_label: Accounts
|
||||
billing_label: Billing
|
||||
categories_label: Categories
|
||||
feedback_label: Feedback
|
||||
invite_label: Invite friends
|
||||
merchants_label: Merchants
|
||||
notifications_label: Notifications
|
||||
preferences_label: Preferences
|
||||
profile_label: Account
|
||||
rules_label: Rules
|
||||
security_label: Security
|
||||
self_hosting_label: Self Hosting
|
||||
whats_new_label: What's New
|
||||
nav_link_large:
|
||||
next: Next
|
||||
previous: Back
|
||||
|
|
|
@ -1,24 +1,39 @@
|
|||
Rails.application.routes.draw do
|
||||
mount GoodJob::Engine => "jobs"
|
||||
|
||||
get "changelog" => "pages#changelog", as: :changelog
|
||||
get "feedback" => "pages#feedback", as: :feedback
|
||||
get "invites" => "pages#invites", as: :invites
|
||||
|
||||
resource :registration
|
||||
resource :session
|
||||
resource :password_reset
|
||||
resource :password
|
||||
|
||||
resource :settings, only: %i[edit update] do
|
||||
resource :self_hosting, only: %i[edit update], controller: "settings/self_hosting"
|
||||
namespace :settings do
|
||||
resource :profile, only: %i[show update]
|
||||
resource :preferences, only: %i[show update]
|
||||
resource :notifications, only: %i[show update]
|
||||
resource :billing, only: %i[show update]
|
||||
resource :hosting, only: %i[show update]
|
||||
resource :security, only: %i[show update]
|
||||
end
|
||||
|
||||
namespace :transactions do
|
||||
resources :categories
|
||||
|
||||
# TODO: These are *placeholders*
|
||||
# Uncomment `only` and add the necessary actions as they are implemented.
|
||||
resources :rules, only: [ :index ]
|
||||
resources :merchants, only: [ :index ]
|
||||
end
|
||||
|
||||
resources :transactions do
|
||||
match "search" => "transactions#search", on: :collection, via: [ :get, :post ], as: :search
|
||||
end
|
||||
|
||||
namespace :transactions do
|
||||
resources :categories
|
||||
end
|
||||
|
||||
resources :accounts, shallow: true do
|
||||
get :summary, on: :collection
|
||||
post :sync, on: :member
|
||||
resources :valuations
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue