Add User group functionality on admin and automatically associate users to groups upon signup#18
Closed
JustShah wants to merge 5 commits into
Conversation
76f94ba to
61c4c6b
Compare
8a054e3 to
1bd84cc
Compare
61c4c6b to
c51f789
Compare
1bd84cc to
0a6d710
Compare
c51f789 to
bed02f2
Compare
0c6af2a to
d515d0f
Compare
…management Added associations in Spree::User model for user groups to support grouping users for targeted pricing and management. Created Spree::UserGroup model with associations to users, stores, and price lists to enable flexible user group management. Updated Spree::PriceList model to include associations with user groups for dynamic pricing based on user groups. Updated locale files to include translations for user groups. Added migrations to create spree_user_groups table and add user group references to users and stores.
- Added UserGroupsController to manage user groups. - Created views for user group management, including: - New user group form (`new.html.erb`) - User group edit form (`edit.html.erb`) - User group index view (`index.html.erb`) - Partial view for user group form fields. - Enhanced user management by allowing assignment of user groups to users in the user form. - Updated store form to include a selection for the default cart user group. - Implemented data loading for price lists in user group forms. - Added breadcrumb navigation for improved user experience in the admin panel. This feature allows administrators to create, edit, and manage user groups, facilitating better organization and access control for users within the Spree application.
- Created a new users sub-menu partial to manage user-related navigation, including links to users and user groups. These enhancements improve the organization of the admin interface, making it easier for administrators to manage user groups effectively.
- Updated UsersController to assign the default user group to new users if the current store has the `enforce_group_upon_signup` setting enabled. - Added a checkbox in the store settings form to allow administrators to enable or disable the `enforce_group_upon_signup` feature. - Included a new translation key for the `enforce_group_upon_signup` label in the English locale file. This feature ensures that all new users are automatically added to a specified user group, improving user management and organization within the Spree application.
This commits adds column on price list index to display the number of user groups associated to a price list.
bed02f2 to
7e52bb1
Compare
Author
|
Created a new independent and improved PR: #20 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request introduces several enhancements to the Spree Admin interface, allowing for more efficient management of user groups.
Key Changes:
User Groups Management:
Improved Navigation:
These enhancements improve the overall organization of the admin interface, making it easier for administrators to manage user groups effectively.
Benefits: