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 settings panel #155

Closed
cleverbeagle opened this issue Apr 21, 2018 · 3 comments
Closed

Add settings panel #155

cleverbeagle opened this issue Apr 21, 2018 · 3 comments
Labels

Comments

@cleverbeagle
Copy link
Owner

Plays into Pupgrades. It’d be good if there was a built in pattern for managing settings as a user. Some sort of simple toggle switch type of UI and a data model on the user.

@cleverbeagle
Copy link
Owner Author

This works in tandem with #149 for a real nice integration.

@cleverbeagle
Copy link
Owner Author

This is a twofer. There needs to be a user settings panel but it'd also be helpful to have one for the app admins as well. Can group this with #151.

@cleverbeagle
Copy link
Owner Author

Thinking it would be better if this was handled in a separate collection. A data model like this should work well:

userId // ID of the user this settings object belongs to.
settings: {} // Blackbox object supporting key/value pairs.

To make this a bit easier to use, it'd be good to have a module like userSettings('sendMarketingEmails'). that automatically resolves to that field in the user's settings object.

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

No branches or pull requests

1 participant