From 9941264022097540a90e071e7c28e0a2e4d91973 Mon Sep 17 00:00:00 2001 From: Jose Olarte III Date: Fri, 26 Jun 2026 18:10:08 +0800 Subject: [PATCH] chore(ios): add temporary Share Target debug panel (temporary) Add a dedicated, temporary debug view for the iOS Share Target investigation so native traces can be inspected without attaching Xcode. Kept separate from the Notification/Notiwind test panel so it is easy to remove once the investigation is complete. The panel (src/views/ShareTargetDebugView.vue, route /share-target-debug) has three buttons: - Dump Native Traces: calls SharedImage.getShareExtensionTrace() and getAppLaunchTrace(), logs both in full (untruncated) between EXTENSION TRACE START/END and APP LAUNCH TRACE START/END markers, and shows them in read-only scrollable fields. - Clear Share Extension Trace: clears the native log and the field. - Clear App Launch Trace: clears the native log and the field. Register the route alongside the existing /test debug route and link to the panel from TestView. No share-target behavior changed; Android untouched. All additions marked TEMPORARY SHARE TARGET DIAGNOSTICS. --- src/router/index.ts | 6 + src/views/ShareTargetDebugView.vue | 187 +++++++++++++++++++++++++++++ src/views/TestView.vue | 15 +++ 3 files changed, 208 insertions(+) create mode 100644 src/views/ShareTargetDebugView.vue diff --git a/src/router/index.ts b/src/router/index.ts index ab6502d1..8bdbdcd6 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -290,6 +290,12 @@ const routes: Array = [ name: "test", component: () => import("../views/TestView.vue"), }, + // TEMPORARY SHARE TARGET DIAGNOSTICS + { + path: "/share-target-debug", + name: "share-target-debug", + component: () => import("../views/ShareTargetDebugView.vue"), + }, { path: "/user-profile/:id?", name: "user-profile", diff --git a/src/views/ShareTargetDebugView.vue b/src/views/ShareTargetDebugView.vue new file mode 100644 index 00000000..9a09c8ce --- /dev/null +++ b/src/views/ShareTargetDebugView.vue @@ -0,0 +1,187 @@ + + + + + diff --git a/src/views/TestView.vue b/src/views/TestView.vue index ecea8c78..b420cef6 100644 --- a/src/views/TestView.vue +++ b/src/views/TestView.vue @@ -112,6 +112,21 @@ + +
+

Share Target Diagnostics

+

+ Temporary debug panel for the iOS Share Target investigation (dump/clear + native traces). +

+ + Open Share Target Debug Panel + +
+

URL Flow Testing