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

show all hoodie-account data in account template #39

Merged
merged 1 commit into from
Nov 13, 2016

Conversation

fredguth
Copy link
Contributor

This is a minor change. But now basic feature set of hoodie-admin is done:
√ login as admin
√manage user accounts (add and remove account)
√ access user data

@gr2m
Copy link
Member

gr2m commented Nov 13, 2016

This looks good, thanks 👍

Right now we can only view accounts, we cannot change them. Also there are a few special properties in accounts. Here’s what I’d suggest to do next

  1. Add username change feature
  2. Add password change feature
  3. Add password reset feature
  4. Show profile properties as a table with key / value, value itself might be an object, so this could be nested. For example, there could be properties like profile.address.street. Allow to add / remove / change properties
  5. Show roles (.roles) . Allow to add / remove roles. Roles is an array of strings. Roles are used for access management and feature flags (e.g. a "pro-plan" role after a user signed up for a paid plan)
  6. List tokens (.tokens). Allow to remove tokens. Tokens are used for password reset, email confirmations, one-time logins, etc. They have an id, a type and an expiration date.

@fredguth
Copy link
Contributor Author

@gregor.
About item (4), I see 2 different approaches:
a) Firebase approach: create a tree (https://www.evernote.com/l/AZQ34mmVBppCQqyaN90MFID2Be5qZIVqbQkB/image.png)

b)Parse approach: a menu tree and tables
https://www.evernote.com/l/AZSLZVqPGLFD1Zhz9bQlz3CHn3LqZS-pyVEB/image.png

What have you imagined?

@gr2m gr2m merged commit 19f9531 into hoodiehq:master Nov 13, 2016
@gr2m
Copy link
Member

gr2m commented Nov 13, 2016

Thanks for doing the research, both parse and firebase are definitely projects we can learn from to make our admin dashboard great :)

We didn’t yet give a lot of thought on how to design the account edit forms. I think for now we would be good to have different sections for

# {username}

created: {createadAt}
signed up: {signedUpAt}
last update: {updatedAt}

[change username], [change password], [reset password], [delete account]

## Roles

list roles as bullet points, allow to add / remove

## Tokens

Show table of tokens with id, type, timestamp, expiration, and meta data. Allow to delete

## Profile

Show a table with key / value. For nested properties, we can simply do JSON for now and come up with something more sophisticated later?

@fredguth
Copy link
Contributor Author

fredguth commented Apr 2, 2018

@gr2m This is long due... but I was wondering if what you mean is something like this:
hoodie_admin
When you click in the user, it opens details of profile.
I don't know about Roles and Tokens in Hoodie, though.

@gr2m
Copy link
Member

gr2m commented Apr 2, 2018

looks good to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants