mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +02:00
Feat: Data "reset" button (#1913)
* feat: Allow admins to delete family data * feat: Allow self-hosting users to delete cached data * Remove system tests
This commit is contained in:
parent
f7064fd4dd
commit
8208722247
13 changed files with 206 additions and 16 deletions
|
@ -39,6 +39,9 @@ en:
|
|||
body: Are you sure you want to permanently delete your account? This action
|
||||
is irreversible.
|
||||
title: Delete account?
|
||||
confirm_reset:
|
||||
body: Are you sure you want to reset your account? This will delete all your accounts, categories, merchants, tags, and other data. This action cannot be undone.
|
||||
title: Reset account?
|
||||
confirm_remove_invitation:
|
||||
body: Are you sure you want to remove the invitation for %{email}?
|
||||
title: Remove Invitation
|
||||
|
@ -49,6 +52,8 @@ en:
|
|||
delete_account: Delete account
|
||||
delete_account_warning: Deleting your account will permanently remove all
|
||||
your data and cannot be undone.
|
||||
reset_account: Reset account
|
||||
reset_account_warning: Resetting your account will delete all your accounts, categories, merchants, tags, and other data, but keep your user account intact.
|
||||
email: Email
|
||||
first_name: First Name
|
||||
household_form_input_placeholder: Enter household name
|
||||
|
|
|
@ -20,6 +20,12 @@ en:
|
|||
general: General Settings
|
||||
invites: Invite Codes
|
||||
title: Self-Hosting
|
||||
danger_zone: Danger Zone
|
||||
clear_cache: Clear data cache
|
||||
clear_cache_warning: Clearing the data cache will remove all exchange rates, security prices, account balances, and other data. This will not delete accounts, transactions, categories, or other user-owned data.
|
||||
confirm_clear_cache:
|
||||
title: Clear data cache?
|
||||
body: Are you sure you want to clear the data cache? This will remove all exchange rates, security prices, account balances, and other data. This action cannot be undone.
|
||||
synth_settings:
|
||||
api_calls_used: "%{used} / %{limit} API calls used (%{percentage})"
|
||||
description: Input the API key provided by Synth
|
||||
|
@ -30,6 +36,8 @@ en:
|
|||
update:
|
||||
failure: Invalid setting value
|
||||
success: Settings updated
|
||||
clear_cache:
|
||||
cache_cleared: Data cache has been cleared. This may take a few moments to complete.
|
||||
upgrade_settings:
|
||||
description: Configure how your application receives updates
|
||||
latest_commit_description: Automatically update to the latest commit (unstable)
|
||||
|
@ -40,3 +48,4 @@ en:
|
|||
manual_description: You control when to download and install updates
|
||||
manual_title: Manual
|
||||
title: Auto Upgrade
|
||||
not_authorized: You are not authorized to perform this action
|
||||
|
|
|
@ -8,3 +8,6 @@ en:
|
|||
email_change_initiated: Please check your new email address for confirmation
|
||||
instructions.
|
||||
success: Your profile has been updated.
|
||||
reset:
|
||||
success: Your account has been reset. Data will be deleted in the background in some time.
|
||||
unauthorized: You are not authorized to perform this action
|
||||
|
|
|
@ -18,7 +18,9 @@ Rails.application.routes.draw do
|
|||
resource :password, only: %i[edit update]
|
||||
resource :email_confirmation, only: :new
|
||||
|
||||
resources :users, only: %i[update destroy]
|
||||
resources :users, only: %i[update destroy] do
|
||||
delete :reset, on: :member
|
||||
end
|
||||
|
||||
resource :onboarding, only: :show do
|
||||
collection do
|
||||
|
@ -30,7 +32,9 @@ Rails.application.routes.draw do
|
|||
namespace :settings do
|
||||
resource :profile, only: [ :show, :destroy ]
|
||||
resource :preferences, only: :show
|
||||
resource :hosting, only: %i[show update]
|
||||
resource :hosting, only: %i[show update] do
|
||||
delete :clear_cache, on: :collection
|
||||
end
|
||||
resource :billing, only: :show
|
||||
resource :security, only: :show
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue