From e12714ef75c14f5b2176d6a199cbe09447b5a265 Mon Sep 17 00:00:00 2001 From: koalasat Date: Fri, 8 Aug 2025 15:12:04 +0200 Subject: [PATCH] Reports --- .../main/java/com/robosats/WebAppInterface.kt | 18 +-------- frontend/src/basic/RobotPage/RobotProfile.tsx | 20 +++++---- frontend/src/basic/RobotPage/TokenInput.tsx | 7 +--- .../NotificationCard/index.tsx | 3 +- .../TopBar/NotificationsDrawer/index.tsx | 2 - .../src/components/BookTable/BookControl.tsx | 2 +- frontend/src/components/Dialogs/AuditPGP.tsx | 35 +++++++++------- .../MakerForm/SelectCoordinator.tsx | 4 +- .../src/components/OrderDetails/index.tsx | 32 +++++++++++---- .../components/PaymentMethods/Icons/index.tsx | 5 +++ .../PaymentMethods/Icons/paysend.png | Bin 0 -> 10397 bytes .../components/PaymentMethods/MethodList.ts | 1 + .../TradeBox/Forms/LightningPayout.tsx | 28 ++++++++++++- .../src/components/TradeBox/Prompts/Chat.tsx | 9 ++--- .../src/components/TradeBox/TradeSummary.tsx | 7 +--- frontend/src/models/Garage.model.ts | 18 ++------- frontend/src/models/Slot.model.ts | 6 --- frontend/src/utils/saveFile.ts | 38 ++++++++++++------ frontend/static/locales/ca.json | 5 ++- frontend/static/locales/cs.json | 5 ++- frontend/static/locales/de.json | 5 ++- frontend/static/locales/en.json | 5 ++- frontend/static/locales/es.json | 5 ++- frontend/static/locales/eu.json | 5 ++- frontend/static/locales/fr.json | 5 ++- frontend/static/locales/it.json | 5 ++- frontend/static/locales/ja.json | 5 ++- frontend/static/locales/pl.json | 5 ++- frontend/static/locales/pt.json | 5 ++- frontend/static/locales/ru.json | 5 ++- frontend/static/locales/sv.json | 5 ++- frontend/static/locales/sw.json | 5 ++- frontend/static/locales/th.json | 5 ++- frontend/static/locales/zh-SI.json | 5 ++- frontend/static/locales/zh-TR.json | 5 ++- 35 files changed, 180 insertions(+), 140 deletions(-) create mode 100644 frontend/src/components/PaymentMethods/Icons/paysend.png diff --git a/android/app/src/main/java/com/robosats/WebAppInterface.kt b/android/app/src/main/java/com/robosats/WebAppInterface.kt index 20c49100..a30a820c 100644 --- a/android/app/src/main/java/com/robosats/WebAppInterface.kt +++ b/android/app/src/main/java/com/robosats/WebAppInterface.kt @@ -108,31 +108,17 @@ class WebAppInterface(private val context: MainActivity, private val webView: We @JavascriptInterface fun copyToClipboard(message: String) { - // Validate input - if (!isValidInput(message, 10000)) { // Allow longer text for clipboard - Log.e(TAG, "Invalid input for copyToClipboard") - Toast.makeText(context, "Invalid content for clipboard", Toast.LENGTH_SHORT).show() - return - } - try { - // Limit clipboard content size for security - val truncatedMessage = if (message.length > 10000) { - message.substring(0, 10000) + "... (content truncated for security)" - } else { - message - } - // Copy to clipboard val clipboard = context.getSystemService(Context.CLIPBOARD_SERVICE) as android.content.ClipboardManager - val clip = android.content.ClipData.newPlainText("RoboSats Data", truncatedMessage) + val clip = android.content.ClipData.newPlainText("RoboSats Data", message) clipboard.setPrimaryClip(clip) // Show a toast notification Toast.makeText(context, "Copied to clipboard", Toast.LENGTH_SHORT).show() // Log the action (don't log the content for privacy) - Log.d(TAG, "Text copied to clipboard (${truncatedMessage.length} chars)") + Log.d(TAG, "Text copied to clipboard") } catch (e: Exception) { Log.e(TAG, "Error copying to clipboard", e) Toast.makeText(context, "Failed to copy to clipboard", Toast.LENGTH_SHORT).show() diff --git a/frontend/src/basic/RobotPage/RobotProfile.tsx b/frontend/src/basic/RobotPage/RobotProfile.tsx index 60e03377..1211b7b5 100644 --- a/frontend/src/basic/RobotPage/RobotProfile.tsx +++ b/frontend/src/basic/RobotPage/RobotProfile.tsx @@ -264,17 +264,15 @@ const RobotProfile = ({ {t('Robot Garage')} - {client !== 'mobile' && ( - - )} +