hackclub / hackclub/hcb

[Governance::Admin::Transfer::Limit] Add UI for superadmins to configure transfer limits

Open
#14,894 1 comment 0 reactions 1 assignee Claimed by @anishanne View on GitHub
Dominant language
Ruby
Stars
870
Forks
138
Avg merge
1d 20h
Merged PRs (30d)
201

Description

> [!NOTE]
> This has been assigned to @mahimtiwari

Right now, there is no UI for superadmins to configure other admin's transfer limits. Gary has to go into the Rails console and run:

```ruby
user = # sldfjslkfd
amount_cents = 10_000_00 # $10k
Governance::Admin::Transfer::Limit.find_or_initalize_by(user:).update!(amount_cents:)
```

Let's add a UI form for this on the User's admin settings page. e.g. `/users/gary/settings/admin`

Ensure this setting can't be changed while impersonating

Users should NOT be able to edit their own transfer limit. Ensure paper trail logs these changes

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.