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

Add/Edit/Delete users in admin dashboard #339

Open
martinovicdev opened this issue Dec 5, 2024 · 2 comments
Open

Add/Edit/Delete users in admin dashboard #339

martinovicdev opened this issue Dec 5, 2024 · 2 comments
Assignees
Labels
admin dashboard enhancement New feature or request

Comments

@martinovicdev
Copy link
Collaborator

It would be nice if we could add functionalities to the template to add/edit and delete users from the admin dashboard (https://opensaas.sh/admin/users)

Editing page:

  • disabled, but visible fields: createdAt, lastActiveTimestamp, subscriptionStatus, subscriptionPlan, sendNewsLetter, stripeId
  • editable: e-mail, username, isAdmin, credits

The only library I would add is react-hook-form, to make form handling a bit easier. Not sure if there is solution for dialog already, but Radix's unstlyed one could be useful: https://www.radix-ui.com/primitives/docs/components/dialog

I'd like to be assigned to this if this gets accepted.

@vincanger
Copy link
Collaborator

vincanger commented Dec 10, 2024

All looks good to me. Thanks, Boris!

Edit: BTW @martinovicdev we are already using the Dialog component from headlessui in the NavBar.tsx component, so maybe you can use that one, or if you think radix is better, then refactor the navbar to use it

@martinovicdev
Copy link
Collaborator Author

I'll go with headlessui, no need to use different one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
admin dashboard enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants