From b7d58d9c9dabd527bb0a793c7b5057ea6d65714a Mon Sep 17 00:00:00 2001 From: haroon amjad Date: Tue, 21 Apr 2026 17:17:36 +0300 Subject: [PATCH] updates --- assets/langs/ar-SA.json | 2 +- lib/core/api_consts.dart | 4 +-- ...mediate_livecare_pending_request_page.dart | 27 ++++++++++++++++++- pubspec.yaml | 4 +-- 4 files changed, 31 insertions(+), 6 deletions(-) diff --git a/assets/langs/ar-SA.json b/assets/langs/ar-SA.json index d888db1d..d70fa0f7 100644 --- a/assets/langs/ar-SA.json +++ b/assets/langs/ar-SA.json @@ -1608,7 +1608,7 @@ "dietModerateCarbsDescription": "تناول معتدل للكربوهيدرات مع توازن في البروتين والدهون: يوفر طاقة مستقرة للأنشطة اليومية والتمارين مع قدر من المرونة. مناسب لكثير من الأشخاص الذين يسعون لإدارة وزن مستدامة وتحسين الأداء.", "dietUSDAGuidelinesDescription": "نمط متوازن مستند إلى (USDA): يركز على الفواكه والخضروات والحبوب الكاملة والبروتينات قليلة الدهن، مع الحد من السكريات المضافة والدهون المشبعة. يُعد إطارًا قائمًا على الأدلة لدعم الصحة العامة، وكفاية العناصر الغذائية، والوقاية من الأمراض المزمنة.", "dietZoneDietDescription": "حمية الزون (~40٪ كربوهيدرات / 30٪ بروتين / 30٪ دهون): تركز على التوازن الهرموني وضبط الحصص الغذائية. قد تُحسّن تركيب الجسم ومستوى الطاقة لدى بعض الأشخاص، لكنها تتطلب تخطيطًا جيدًا؛ ويُفضّل تخصيصها بالتعاون مع مختص تغذية.", - "contextDependent": "يعتمد السياق", + "contextDependent": "يختلف باختلاف الحالة", "calculatedValue": "القيمة المحسوبة", "calculationFormula": "صيغة الحساب", "confirmYourLocation": "قم بتأكيد موقعك", diff --git a/lib/core/api_consts.dart b/lib/core/api_consts.dart index 29c690e1..f6426caa 100644 --- a/lib/core/api_consts.dart +++ b/lib/core/api_consts.dart @@ -27,7 +27,7 @@ class ApiConsts { static String QLINE_URL = "https://ms.hmg.com/nscapi/api/PatientCall/PatientInQueue_Detail"; // static String QLINE_URL = "https://qline.hmg.com/api/PatientCall/PatientInQueue_Detail"; - static String CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId="; + static String CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId="; // static String GET_TAMARA_INSTALLMENTS_URL = "https://epharmacy.hmg.com/tamara/Home/getinstallments"; @@ -46,7 +46,7 @@ class ApiConsts { GET_TAMARA_PAYMENT_STATUS = 'https://mdlaboratories.com/tamaralive/api/OnlineTamara/order_status?orderid='; rcBaseUrl = 'https://rc.hmg.com/'; QLINE_URL = "https://qline.hmg.com/api/PatientCall/PatientInQueue_Detail"; - CHAT_URL = "https://chat.hmg.com/Index.aspx?RequestedId="; + CHAT_URL = "https://chat.hmg.com/geneysChat/Index.aspx?RequestedId="; break; case AppEnvironmentTypeEnum.dev: baseUrl = "https://uat.hmgwebservices.com/"; diff --git a/lib/presentation/book_appointment/livecare/immediate_livecare_pending_request_page.dart b/lib/presentation/book_appointment/livecare/immediate_livecare_pending_request_page.dart index ed524ab6..1c4f63e8 100644 --- a/lib/presentation/book_appointment/livecare/immediate_livecare_pending_request_page.dart +++ b/lib/presentation/book_appointment/livecare/immediate_livecare_pending_request_page.dart @@ -9,6 +9,7 @@ import 'package:hmg_patient_app_new/core/utils/size_utils.dart'; import 'package:hmg_patient_app_new/core/utils/utils.dart'; import 'package:hmg_patient_app_new/extensions/string_extensions.dart'; import 'package:hmg_patient_app_new/extensions/widget_extensions.dart'; +import 'package:hmg_patient_app_new/features/contact_us/contact_us_view_model.dart'; import 'package:hmg_patient_app_new/features/immediate_livecare/immediate_livecare_view_model.dart'; import 'package:hmg_patient_app_new/generated/locale_keys.g.dart'; import 'package:hmg_patient_app_new/theme/colors.dart'; @@ -31,6 +32,7 @@ class _ImmediateLiveCarePendingRequestPageState extends State().getChatRequestID( + name: name, + mobileNo: mobileNo, + workGroup: "Live_Care_Chat", + onSuccess: (response) { + debugPrint("Chat Request ID received: ${getIt.get().chatRequestID}"); + chatURL = "https://chat.hmg.com/Index.aspx?RequestedId=${getIt.get().chatRequestID}"; + debugPrint("Chat URL: $chatURL"); + Uri uri = Uri.parse(chatURL); + launchUrl(uri, mode: LaunchMode.platformDefault, webOnlyWindowName: ""); + }, + onError: (error) { + debugPrint("Error getting chat request ID: $error"); + }, + ); + } + // void startTimer() { // // timer = Timer.periodic(const Duration(seconds: 1), (_) => addTime()); // // setState(() {}); diff --git a/pubspec.yaml b/pubspec.yaml index a52b9c22..5db6c526 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,8 +2,8 @@ name: hmg_patient_app_new description: "New HMG Patient App" publish_to: 'none' # Remove this line if you wish to publish to pub.dev -#version: 0.0.24+23 -version: 0.0.1+22 +version: 0.0.25+24 +#version: 0.0.1+23 environment: sdk: ">=3.6.0 <4.0.0"