Transactions views #2

Closed
opened 2025-02-13 11:26:05 -05:00 by null · 0 comments
Owner

The user account should show the user's balance in both currencies.

create an /admin/transactions view
it shows store liability for each currency
it shows 10 most recent transactions
it shows top 10 whales by sats
it shows top 10 whales by cents
it has an input which accepts a user_id or email
it has a submit button
if a user_id is submitted, it tries to get the user
if an email is submitted, it tries to get the user
if the user is not found, redirect to /admin/transactions and show an error banner
if a user is found, redirect to /admin/transactions/add

create an admin/transactions/add view
it shows the information about the user which is in the session from the email or user_id lookup
it has a number input set the amount
it has a select to choose CREDIT or REVOKE
it has a select to choose SATS or CENTS
it has a submit button
it runs the transaction::add to credit/revoke the user balance

The user account should show the user's balance in both currencies. create an /admin/transactions view it shows store liability for each currency it shows 10 most recent transactions it shows top 10 whales by sats it shows top 10 whales by cents it has an input which accepts a user_id or email it has a submit button if a user_id is submitted, it tries to get the user if an email is submitted, it tries to get the user if the user is not found, redirect to /admin/transactions and show an error banner if a user is found, redirect to /admin/transactions/add create an admin/transactions/add view it shows the information about the user which is in the session from the email or user_id lookup it has a number input set the amount it has a select to choose CREDIT or REVOKE it has a select to choose SATS or CENTS it has a submit button it runs the transaction::add to credit/revoke the user balance
null closed this issue 2025-02-16 22:03:53 -05:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: null/ecomm-store#2
No description provided.