Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create admin dashboard page for viewing transactions #40

Open
GabrielMajeri opened this issue Feb 10, 2024 · 0 comments
Open

Create admin dashboard page for viewing transactions #40

GabrielMajeri opened this issue Feb 10, 2024 · 0 comments
Assignees
Labels
admin-interface Issues related to the admin interface front-end Issue relating to UI/UX

Comments

@GabrielMajeri
Copy link
Member

For traceability and auditing purposes it's essential for admins to be able to see the list of all transactions (in their various states). We could add a page /admin/transactions for this purpose.

The page should use something like TanStack Query to fetch and cache data and TanStack Table to display it in a tabular format. It is mandatory that for this list to be paginated, since we expect to have hundreds of thousands of transactions in the database eventually.

The data table could have the following columns:

  • ID
  • Transaction ID (EuPlătesc ID / epid) — possibly shortened to not clutter up the list
  • Transaction status (initiated/succeeded/failed)
  • Description (the remarks field from the corresponding tax value; this will indicate what tax the user paid)
  • Value (in RON)
  • First name and last name of payer
  • Personal ID code of payer
  • Creation timestamp
  • Modification timestamp
  • Actions (view details)

On the transaction details page (could have a route like /admin/transactions/<transaction ID>) we will also display all of the other details of the transaction: billing info fields (country, city, address, phone number, e-mail).

It would be great if we could also implement a search/filter feature, at least for the name and personal ID code columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin-interface Issues related to the admin interface front-end Issue relating to UI/UX
Projects
None yet
Development

No branches or pull requests

2 participants