-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Users Admin #472
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
Comments
@thomporter I think your first point is a matter of opinion, because I like the admin url where it is. I do like the rest of your points and would love to see all that implemented 👍 |
The first and second bullet point are related [edit: ie, no need for generic home page if you're not moving the users to it's own page in the admin...] Or is that what you mean by "first point", the ones I call "big"? |
I apologize, I did mean your "big points". Specifically,
I think (please correct me if I'm wrong) this implies updating the UI to a certain spec. That would be great, but I don't think that everyone would like one particular spec, so I'd leave it to developers/designers to create what they want. However, I would love to see the functionality mentioned in the rest of your points. Pagination would be fantastic, search is easy to implement, and create/update should be relatively easy also 😄 |
Well, the same could be said about using /admin - that's a decision on the spec... I'd also add that what I'm suggesting is making the user's admin a "module", put all of the files in a folder (called "users" in the admin folder) and then give it the url /admin/users. If a dev wants to change the URL & move the files, they can... But I still feel like making the user's admin it's own module is worth-while... Love the pagination directive, I'll use that for sure. =) |
Having I see your point about breaking it down into What I'm trying to get across is to have the features that you keep copying over for every project in the PR. But like you said, the breakdowns can vary from project to project, if there are any at all... perhaps the |
IMO sounds like a job for UI-Router and nested states. I think you could easily accomplish what you're looking for with that. You can define your custom urls as relative or absolute if you like, have multiple views in parallel or as children, and a lot of other cool stuff. I think it could work. As a bonus you could tie into the socket update framework laid out and keep your users' info up to date in real time ;) |
Oh yeah, UI-Router & nested states for sure, but I think we'd have to support ngRoute too, no? |
Oh, you meant in the generator. My mistake, I thought you were referring to your implementations. I have an idea for a compromise between your thoughts and @JaKXz. What if instead of a full blown page for |
Ack, I meant directives, thanks @kingcody. |
As a bonus (maybe) this could serve as a demonstration to new users the power of angular's directives and some best practices for modularizing code/functionality? |
Directives sound like a great plan. In which case, I don't mind just having the generated admin home page just include the directive, that's super simple to move if needed. Good call! |
@thomporter, I actually really like the idea of nested views and allowing restful URL routing with |
@kingcody indeed, w/ the directive plan, I'm just not that worried about it now! =) |
I updated the original comment to reflect the current consensus. Curious about thoughts on the last point I make in the original comment, about offering an extended user model with addresses & phone numbers (both being arrays of sub-models.) I suppose @JaKXz gave a thumbs up in his original reply, but IDK, later he specifically called out other stuff he loved the idea of, but not that, so I thought I'd be sure! 😇 |
@thomporter go right ahead! In truth I just wanted to point out the pagination directive. |
My proposed extended user model, with address & phone numbers: (any comments?)
|
When implementing extended user profiles, please consider reading up on the Portable Contacts specification which is used by passportjs. Thank you. |
I would like to make some changes to the admin, I thought I'd open a discussion on them as I have a lot in mind:
Move the users admin to it's own url: /admin/usersCreate generic admin home pageThe first 2 changes listed above are big for me... My clients typically want something entirely different on their admin home page. They may want a small "widget" with the most recently logged-in or created users, but more often then not they want a summary of sales! =)Not so much anymore if it's just a directive. ;-)The rest of the items are of less importance, but still, I do see it as something I'll have to copy & paste from project to project. =)
I would also consider adding more to the users, perhaps as a filter option in the generator, "Create Extended User Model (phone, address, etc.)?" Typically most of the sites I build the client wants this sort of thing.
The text was updated successfully, but these errors were encountered: