Develop - #210
Merged
Merged
Conversation
Replace English status strings in the profile view with Vietnamese equivalents for better localization. In frontend/lib/features/profile/views/profile_view.dart, 'ACTIVE' was changed to 'HOẠT ĐỘNG' and 'FREE' to 'MIỄN PHÍ'. 'OFFICE' remains unchanged.
- Changed the authorization policy from `GymerOnly` to `GymFeatures` across multiple controllers including `GymGoalsController`, `MealPlanProposalController`, and `PtReviewController`. - Updated the `AssignRoleRequest` to restrict roles to `User`, `Coach`, and `Admin` using a regular expression. - Modified the `NutritionTrackingService` to utilize the new entitlement-based access check for gym features. - Adjusted database scripts to normalize legacy roles and ensure proper role assignments. - Enhanced documentation to reflect changes in role management and entitlement policies.
- Changed account type from 'PT' to 'Coach' in the registration request and related services. - Updated role assignment logic in AuthService to reflect the new account type. - Modified UI components to display 'PT / Coach' for better clarity. - Enhanced Vietnamese translations for activity levels in the localization file.
- Keep 3 roles: User, Coach, Admin (remove Free/PT) - Default role on registration is User - Update Coach snackbar notifications to auto-hide after 5s Co-authored-by: Cursor <cursoragent@cursor.com>
- Streamlined the logic for displaying notification titles in the Coach notifications tab by removing unnecessary checks for empty strings. - Updated the profile view by removing unused imports to enhance code clarity and maintainability.
- Removed unused imports and variables in analytics API and components. - Improved DonutChart component by calculating dash offsets more efficiently. - Updated useEffect hooks in various components to use setTimeout for better performance. - Introduced ManageMembershipDialog for managing user memberships. - Enhanced user management UI to display membership status and allow management actions. - Added new API endpoints for user membership management. - Updated user types to include membership details.
Refactor analytics and user management components
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review available on request
Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
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.
No description provided.