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

Add/remove members and invitations (#1744)

* Add/remove members and invitations

* Lint
This commit is contained in:
Josh Pigford 2025-01-30 13:13:37 -06:00 committed by GitHub
parent 282c05345d
commit 0696e1f2f7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 188 additions and 29 deletions

View file

@ -3,7 +3,7 @@ if ENV["SENTRY_DSN"].present?
config.dsn = ENV["SENTRY_DSN"]
config.environment = ENV["RAILS_ENV"]
config.breadcrumbs_logger = [ :active_support_logger, :http_logger ]
config.enabled_environments = %w[development production]
config.enabled_environments = %w[production]
# Set traces_sample_rate to 1.0 to capture 100%
# of transactions for performance monitoring.

View file

@ -4,6 +4,10 @@ en:
create:
failure: Could not send invitation
success: Invitation sent successfully
destroy:
not_authorized: You are not authorized to manage invitations.
success: Invitation was successfully removed.
failure: There was a problem removing the invitation.
new:
email_label: Email Address
email_placeholder: Enter email address

View file

@ -48,11 +48,24 @@ en:
theme_title: Theme
timezone: Timezone
profiles:
destroy:
not_authorized: You are not authorized to remove members.
cannot_remove_self: You cannot remove yourself from the account.
member_removed: Member was successfully removed.
member_removal_failed: There was a problem removing the member.
show:
confirm_delete:
body: Are you sure you want to permanently delete your account? This action
is irreversible.
title: Delete account?
confirm_remove_member:
title: Remove Member
body: Are you sure you want to remove %{name} from your account?
remove_member: Remove Member
confirm_remove_invitation:
title: Remove Invitation
body: Are you sure you want to remove the invitation for %{email}?
remove_invitation: Remove Invitation
danger_zone_title: Danger Zone
delete_account: Delete account
delete_account_warning: Deleting your account will permanently remove all

View file

@ -20,7 +20,7 @@ Rails.application.routes.draw do
end
namespace :settings do
resource :profile, only: :show
resource :profile, only: [ :show, :destroy ]
resource :preferences, only: :show
resource :hosting, only: %i[show update]
resource :billing, only: :show
@ -142,7 +142,7 @@ Rails.application.routes.draw do
resources :exchange_rate_provider_missings, only: :update
end
resources :invitations, only: [ :new, :create ] do
resources :invitations, only: [ :new, :create, :destroy ] do
get :accept, on: :member
end