Develop - #207
Conversation
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.
…lation message from ApiMessageTranslator
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.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
| 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
- Understand the implications of revoking this secret by investigating where it is used in your code.
- Replace and store your secrets safely. Learn here the best practices.
- Revoke and rotate these secrets.
- 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
- following these best practices for managing and storing secrets including API keys and other credentials
- install secret detection on pre-commit to catch secret before it leaves your machine and ease remediation.
🦉 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.
|
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 |
No description provided.