Skip to content

Develop - #210

Merged
Johnny-Dang merged 9 commits into
mainfrom
develop
Aug 16, 2026
Merged

Develop#210
Johnny-Dang merged 9 commits into
mainfrom
develop

Conversation

@Johnny-Dang

Copy link
Copy Markdown
Contributor

No description provided.

MingoUwU and others added 9 commits August 15, 2026 12:50
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
@vercel

vercel Bot commented Aug 16, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
menu-green-system Ready Ready Preview Aug 16, 2026 6:15am

@coderabbitai

coderabbitai Bot commented Aug 16, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 068f0ee2-b1bc-4f58-ae8a-9e587a11eb57


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Johnny-Dang
Johnny-Dang merged commit 11c1812 into main Aug 16, 2026
10 of 11 checks passed
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.

4 participants