From 708cbb138dede8cb88b97a21af502600ca925327 Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Wed, 8 Apr 2026 15:55:56 +0300 Subject: [PATCH] Updates # Conflicts: # lib/presentation/radiology/radiology_result_page.dart --- assets/langs/ar-SA.json | 5 +++-- assets/langs/en-US.json | 5 +++-- lib/generated/locale_keys.g.dart | 1 + lib/presentation/appointments/appointment_details_page.dart | 6 +++--- lib/presentation/radiology/radiology_result_page.dart | 2 +- 5 files changed, 11 insertions(+), 8 deletions(-) diff --git a/assets/langs/ar-SA.json b/assets/langs/ar-SA.json index 137faf3f..822b73dd 100644 --- a/assets/langs/ar-SA.json +++ b/assets/langs/ar-SA.json @@ -1578,7 +1578,7 @@ "noFreeSlot": "لا توجد مواعيد متاحة في التاريخ المحدد. يرجى اختيار تاريخ آخر أو إعادة المحاولة لاحقاً.", "noThanksIKnowTheClinic": "لا، شكراً. أنا أعرف العيادة.", "unableToSendOTP": "تعذر إرسال رمز التحقق لمرة واحدة", - "loadingAIAnalysis": "جارٍ تحليل نتائج المختبر، يرجى التحلي بالصبر والسماح للذكاء الاصطناعي بالقيام بالمهمة، قد يستغرق هذا بعض الوقت.", + "loadingAIAnalysis": "نقوم بتحليل نتائجك، يرجى التحلي بالصبر والسماح للذكاء الاصطناعي بالقيام بالمهمة، قد يستغرق هذا بعض الوقت.", "symptoms": "أعراض", "insuranceInActive": "التأمين غير نشط", "insuranceInActiveContactSupport": "لديك تأمين ساري المفعول، ولكنه غير مُفعّل حاليًا في مجموعة حبيب الطبية. يُرجى التواصل مع خدمة عملاء مجموعة حبيب الطبية.", @@ -1690,5 +1690,6 @@ "openFiles": "فتح الملفات", "generateAiAnalysisRadResult": "بإنشاء تحليل الذكاء الاصطناعي لهذا التقرير", "grantLocationPermission": "يرجى منح إذن الوصول إلى الموقع من إعدادات التطبيق للحصول على نتائج أفضل.", - "NoBookedAppointments": "لا توجد مواعيد محجوزة" + "NoBookedAppointments": "لا توجد مواعيد محجوزة", + "aiDisclaimerRad": "سيتم مشاركة بيانات نتائج الأشعة الخاصة بك بشكل آمن مع محلل الذكاء الاصطناعي لدينا لتحليلها. يساعد هذا في توفير رؤى صحية مخصصة. هل ترغب في المتابعة؟" } diff --git a/assets/langs/en-US.json b/assets/langs/en-US.json index dbd77443..27a67857 100644 --- a/assets/langs/en-US.json +++ b/assets/langs/en-US.json @@ -1572,7 +1572,7 @@ "contextDependent": "Context Dependent", "calculatedValue": "Calculated Value", "calculationFormula": "Calculation Formula", - "loadingAIAnalysis": "Analysing your lab results, Please be patient and let the AI do the magic, This might take some time.", + "loadingAIAnalysis": "Analysing your results, Please be patient and let the AI do the magic, This might take some time.", "symptoms": "Symptoms", "insuranceInActive": "Insurance Inactive", "insuranceInActiveContactSupport": "You have a valid insurance but it is currently inactive in HMG. Please contact HMG customer support to activate it.", @@ -1682,5 +1682,6 @@ "openFiles": "Open Files", "generateAiAnalysisRadResult": "Generate AI analysis for this result", "grantLocationPermission": "Please grant location permission from app settings to see better results.", - "NoBookedAppointments": "No Booked Appointments" + "NoBookedAppointments": "No Booked Appointments", + "aiDisclaimerRad": "Your radiology result data will be securely shared with our AI Analyzer for analysis. This helps provide personalized health insights. Do you want to proceed?" } diff --git a/lib/generated/locale_keys.g.dart b/lib/generated/locale_keys.g.dart index c6c4182f..29656b23 100644 --- a/lib/generated/locale_keys.g.dart +++ b/lib/generated/locale_keys.g.dart @@ -1682,5 +1682,6 @@ abstract class LocaleKeys { static const generateAiAnalysisRadResult = 'generateAiAnalysisRadResult'; static const grantLocationPermission = 'grantLocationPermission'; static const NoBookedAppointments = 'NoBookedAppointments'; + static const aiDisclaimerRad = 'aiDisclaimerRad'; } diff --git a/lib/presentation/appointments/appointment_details_page.dart b/lib/presentation/appointments/appointment_details_page.dart index 0ba38bd9..31cd5403 100644 --- a/lib/presentation/appointments/appointment_details_page.dart +++ b/lib/presentation/appointments/appointment_details_page.dart @@ -612,7 +612,7 @@ class _AppointmentDetailsPageState extends State { isLocked: false, ).toShimmer2() : MedicalFileCard( - label: !((myAppointmentsVM.appointmentRatedResponseModel!).isAppointmentRated ?? true) + label: !((myAppointmentsVM.appointmentRatedResponseModel!).isAllowedToRate ?? false) ? LocaleKeys.ratingSubmitted.tr(context: context) : LocaleKeys.doctorRatingAppointment.tr(context: context), textColor: AppColors.blackColor, @@ -620,9 +620,9 @@ class _AppointmentDetailsPageState extends State { svgIcon: AppAssets.appointmentRatingIcon, isLargeText: true, iconSize: 36.w, - isLocked: !(myAppointmentsVM.appointmentRatedResponseModel!.isAppointmentRated ?? true), + isLocked: !(myAppointmentsVM.appointmentRatedResponseModel!.isAllowedToRate ?? false), ).onPress(() { - if(!(myAppointmentsVM.appointmentRatedResponseModel!.isAppointmentRated ?? true)) { + if ((myAppointmentsVM.appointmentRatedResponseModel!.isAllowedToRate ?? true)) { showCommonBottomSheetWithoutHeight( context, title: LocaleKeys.doctorRating.tr(context: context), diff --git a/lib/presentation/radiology/radiology_result_page.dart b/lib/presentation/radiology/radiology_result_page.dart index 96b35009..39a268ad 100644 --- a/lib/presentation/radiology/radiology_result_page.dart +++ b/lib/presentation/radiology/radiology_result_page.dart @@ -258,7 +258,7 @@ class _RadiologyResultPageState extends State { ).paddingSymmetrical(24.h, 12.h).onPress(() async { final _dialogService = getIt.get(); await _dialogService.showCommonBottomSheetWithoutH( - message: LocaleKeys.aiDisclaimer.tr(), + message: LocaleKeys.aiDisclaimerRad.tr(), label: LocaleKeys.consent.tr(), okLabel: LocaleKeys.acceptLbl.tr(), cancelLabel: LocaleKeys.rejectView.tr(),