feat(admin): admin grant — raw benefits and by-product reward bundles #232
Reference in New Issue
Block a user
Delete Branch "feature/e7-admin-grant"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Third slice of the admin / reports / catalog work (PR1 #230 finance panel, PR2 #231 catalog editor).
Admin grant (user card)
A Grant panel on the
/_gmuser card:payments.Grant;one) →
payments.GrantProduct, which records the sourceproduct_id+ snapshot on the ledger.Both write an
admin_grantledger row and refuse achipsatom (admin never grants currency)or a
tournamentatom (no credit target until the tournament stage). Chips/tournament products arealso excluded from the by-product picker. This replaces the grant-hints action retired in the ads slice.
Tests
TestConsoleAdminGrant— CSRF-guarded; a raw grant (hints + no-ads term) lands on the benefit; aby-product grant of an archived reward bundle lands; a chips pack is refused.