From 20ba897cdeedbf2f82984e4f45116830f9a1b4b4 Mon Sep 17 00:00:00 2001 From: PaulVua Date: Tue, 10 Feb 2026 10:04:22 +0100 Subject: [PATCH] feat(ui): improve SIM card info display and switch to English Add user-friendly alert for SIM card status with ICCID number. Change all modem/SIM status messages to English. Co-Authored-By: Claude Opus 4.5 --- html/saraR4.html | 102 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 91 insertions(+), 11 deletions(-) diff --git a/html/saraR4.html b/html/saraR4.html index c6c39b2..034720d 100755 --- a/html/saraR4.html +++ b/html/saraR4.html @@ -84,14 +84,19 @@ -
+
- +

SIM card information.

- + -
+
+
+
+ +
+
@@ -515,8 +520,8 @@ function getModemInfo(port, timeout) { alertHtml = ` `; + } else if (response.includes('ERROR') || response.trim() === '' || !response.includes('OK')) { + alertHtml = ` + `; + } else { + alertHtml = ` + `; + } + + $("#sim_info_alert").html(alertHtml); + }, + error: function(xhr, status, error) { + console.error('AJAX request failed:', status, error); + $("#loading_ttyAMA2_AT_CCID_").hide(); + $("#sim_info_alert").html(` + `); }