Skip to content

Develop - #207

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

Develop#207
Johnny-Dang merged 16 commits into
mainfrom
develop

Conversation

@Johnny-Dang

Copy link
Copy Markdown
Contributor

No description provided.

MingoUwU and others added 16 commits August 13, 2026 19:21
Add frontend/lib/backend_messages.json containing backend message strings and expand ApiMessageTranslator with Vietnamese translations for those messages. Localize UI strings and fix typos across screens: AdvancedFeaturesScreen, MealPlanCalendarScreen, NotificationSettingsScreen, UpgradePlanScreen. Also translate SePay cancel response in SepayPaymentRepository. Purpose: improve Vietnamese localization and provide a central list of backend messages for translation/lookup.
…ling

- Updated `GetByDate` method in `UserMealPlanController` to include a `refresh` parameter for cache management.
- Modified `IMealPlanService` and `MealPlanService` to support the new `refresh` parameter in `GetByDateAsync`.
- Introduced `VietnamTime` helper class for consistent handling of time zones in meal logs and date calculations.
- Updated various services to utilize `VietnamTime` for accurate date handling, ensuring meal logs align with the Vietnam calendar.
- Added `PreservePlanTarget` property to `BalanceMealPlanCaloriesRequest` for improved calorie balancing functionality.
- Adjusted cache key versioning for meal plans to reflect changes in the caching strategy.
Add Vietnamese data translations and harmonize UI labels across web and Flutter frontends. Introduce ApiMessageTranslator.translateData with a dictionary for meal types, statuses, categories and common terms. Update labels and copy (e.g. Carbs→Carb, Fat→Chất béo, Calories→Calo), fix Vietnamese diacritics/phrasing (months, weekdays, status messages), adjust recipe/video field label and search keywords, and other small UI text fixes across frontend-web and frontend Dart files.
- Updated `FoodController`, `IngredientController`, `RecipeController`, and `LuckyWheelController` to include `page` and `pageSize` parameters for improved search results pagination.
- Modified service interfaces and implementations to handle pagination in food and ingredient searches.
- Enhanced response DTOs to include pagination details such as `Page`, `PageSize`, and `TotalPages` for better client-side handling of search results.
- Improved error handling in `GetWheelFoods` method to validate budget input.
Add migration 72 to add SourceName column for tracking recipe source.
This fixes the runtime error when the application queries for SourceName
on the recipes table but the column doesn't exist in the database.

Co-authored-by: Cursor <cursoragent@cursor.com>
…on entry

- Changed the import path for token storage from `core/services/token_storage.dart` to `core/network/token_storage.dart`.
- Removed the unused translation entry for 'active' from the ApiMessageTranslator dictionary.
Add migration 73 to add SourceUrl column for tracking recipe source URL.
This fixes the runtime error when the application queries for SourceUrl
on the recipes table but the column doesn't exist in the database.

Co-authored-by: Cursor <cursoragent@cursor.com>
- Removed 'User' from AUDIENCE_OPTIONS in distribute-meal-plan-dialog.
- Updated default role to 'Free' in assign-role-dialog and removed 'User' from ROLE_OPTIONS.
…nd advanced features screens

- Changed default account type from 'User' to 'Free' in register_screen.dart.
- Updated role assignment option from 'Gán User' to 'Gán Free' in advanced_features_screen.dart.
- Removed 'User' role and replaced it with 'Free' in authorization policies and user-related services.
- Updated default account type in registration requests and role assignments to reflect the change from 'User' to 'Free'.
- Adjusted role retrieval logic in various services to ensure consistency with the new role structure.
- Implemented logic in SepayReconciliationBackgroundService and SepayPaymentService to upgrade user role to 'Office' when an Office plan is purchased.
- Ensured user role updates are consistent across both services, enhancing user management during subscription transactions.
@vercel

vercel Bot commented Aug 15, 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 15, 2026 1:30am

@gitguardian

gitguardian Bot commented Aug 15, 2026

Copy link
Copy Markdown

⚠️ GitGuardian has uncovered 2 secrets following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secrets in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
35915822 Triggered Generic High Entropy Secret ba6afcf backend/database/42_coach_profiles.sql View secret
35915825 Triggered Generic High Entropy Secret cd8d5f0 backend/database/42_coach_profiles.sql View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secrets safely. Learn here the best practices.
  3. Revoke and rotate these secrets.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@coderabbitai

coderabbitai Bot commented Aug 15, 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: ee5e1597-9a0d-4a93-a53f-38ab586a73c3


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 7734214 into main Aug 15, 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.

3 participants