diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
index 1ee1b970..e9d6d522 100644
--- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx
+++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
@@ -838,204 +838,216 @@ export default function MainView({ className, initService }) {
fontSize: "11px",
opacity: ".9",
zIndex: "999",
- backgroundColor: "rgba(0,0,0,0.9)",
- padding: "15px",
- maxWidth: "600px",
+ backgroundColor: "rgba(0,0,0,0.7)",
+ padding: "8px",
+ width: "700px",
+ height: "550px",
borderRadius: "5px",
fontFamily: "monospace",
- maxHeight: "400px",
- overflowY: "auto",
+ overflow: "hidden",
+ boxSizing: "border-box",
+ display: "flex",
+ flexDirection: "column",
}}
>
🔗 Deep Link Debug Info
- {/* Deep Link Info */}
-
-
- isDeepLink:{" "}
-
- {deepLinkInfo.isDeepLink ? "true" : "false"}
-
-
-
- contentTarget:{" "}
-
- {deepLinkInfo.contentTarget || "(empty)"}
-
-
-
+
+ {/* Left Column */}
+
+ {/* Current State */}
+
+
+ 📊 Current:
+
+
+ isDeepLink:{" "}
+
+ {deepLinkInfo.isDeepLink ? "✓" : "✗"}
+
+
+
+ contentTarget:{" "}
+
+ {deepLinkInfo.contentTarget || "MISSING"}
+
+
+
+ panels: {panels.length}, top:{" "}
+ {panels.length > 0 ? panels[panels.length - 1].name : "none"}
+
+
- {/* Launch Params Check */}
-
-
- 📱 Launch Params:
+ {/* App Status */}
+
+
+ 📱 System:
+
+
webOS: {appStatus.webOSVersion || "unknown"}
+
+ deviceId:{" "}
+ {appStatus.deviceId
+ ? appStatus.deviceId.substring(0, 8) + "..."
+ : "unknown"}
+
+
server: {appStatus.serverHOST || "unknown"}
+
+
+ {/* Redux State */}
+
+
+ 🏪 Redux:
+
+
deepLink: {JSON.stringify(deepLinkInfo)}
+
secondLayer: {JSON.stringify(secondLayerInfo)}
+
-
- {(() => {
- try {
- const getLaunchParams = () => {
+
+ {/* Right Column */}
+
+ {/* Launch Params */}
+
+
+ 📱 Launch Params:
+
+ {(() => {
+ try {
+ if (
+ !(
+ typeof window === "object" &&
+ window.PalmSystem &&
+ window.PalmSystem.launchParams
+ )
+ ) {
+ return (
+
+ No webOS environment
+
+ );
+ }
+
+ const raw = window.PalmSystem.launchParams;
+ const parsed = JSON.parse(raw);
+ const containerFlag = parsed["x-webos-app-container-launch"];
+ const finalParams =
+ containerFlag === true ? parsed.details : parsed;
+ const contentTarget = finalParams.contentTarget;
+
+ return (
+ <>
+
raw: {raw.substring(0, 50)}...
+
containerFlag: {String(containerFlag)}
+
+ contentTarget:{" "}
+
+ {contentTarget || "MISSING"}
+
+
+ >
+ );
+ } catch (e) {
+ return (
+
Error: {e.message}
+ );
+ }
+ })()}
+
+
+ {/* Real-time Check */}
+
+
+ 🔄 Real-time:
+
+ {(() => {
+ try {
+ let currentParams = {};
if (
typeof window === "object" &&
window.PalmSystem &&
window.PalmSystem.launchParams
) {
- try {
- let params = JSON.parse(window.PalmSystem.launchParams);
- if (params["x-webos-app-container-launch"] === true) {
- params = params.details;
- }
- return params;
- } catch (e) {
- return { error: "Parse failed: " + e.message };
+ currentParams = JSON.parse(window.PalmSystem.launchParams);
+ if (
+ currentParams["x-webos-app-container-launch"] === true
+ ) {
+ currentParams = currentParams.details;
}
- } else {
- return { debug: "Not on webOS or no launchParams" };
}
- };
- const params = getLaunchParams();
- return JSON.stringify(params, null, 2);
- } catch (e) {
- return "Error: " + e.message;
- }
- })()}
-
-
-
- {/* App Status */}
-
-
- 📊 App Status:
-
-
-
- webOSVersion:{" "}
- {appStatus.webOSVersion || "unknown"}
-
-
- deviceId:{" "}
- {appStatus.deviceId || "unknown"}
-
-
-
serverHOST:{" "}
- {appStatus.serverHOST || "unknown"}
+ return (
+ <>
+
time: {new Date().toLocaleTimeString()}
+
+ current:{" "}
+
+ {currentParams.contentTarget || "MISSING"}
+
+
+ >
+ );
+ } catch (e) {
+ return (
+
Error: {e.message}
+ );
+ }
+ })()}
- {/* Panel Stack */}
-
-
- 📚 Panel Stack ({panels.length}):
-
-
- {panels.map((panel, index) => (
-
- {index}: {panel.name}{" "}
- {index === panels.length - 1 ? "(current)" : ""}
-
- ))}
-
-
-
- {/* Second Layer Info */}
- {secondLayerInfo && Object.keys(secondLayerInfo).length > 0 && (
-
-
- 🔗 Second Layer Info:
-
-
- {JSON.stringify(secondLayerInfo, null, 2)}
-
-
- )}
-
{/* Parsed Deep Link */}
{deepLinkInfo.contentTarget && (
-
-
- 🔍 Parsed Deep Link:
+
+
+ 🔍 Parsed:
-
- {(() => {
- const tokens = deepLinkInfo.contentTarget.split("_");
- if (tokens[0] === "V2" || tokens[0] === "V3") {
- return (
- <>
-
- Version:{" "}
- {tokens[0]}
-
-
- Link Code:{" "}
- {tokens[1]}
-
-
- Link Name:{" "}
- {tokens[2]}
-
-
- Type:{" "}
- {tokens[3]}
-
- {tokens.length > 4 && (
-
-
- Extra Params:
- {" "}
- {tokens.slice(4).join("_")}
-
- )}
- >
- );
- }
+ {(() => {
+ const tokens = deepLinkInfo.contentTarget.split("_");
+ if (tokens[0] === "V2" || tokens[0] === "V3") {
return (
-
- ❌ Raw format (not V2/V3)
-
+ <>
+
+ Version: {tokens[0]}, Code: {tokens[1]}, Name: {tokens[2]}
+ , Type: {tokens[3]}
+
+ {tokens.length > 4 && (
+
Extra: {tokens.slice(4).join("_")}
+ )}
+ >
);
- })()}
-
+ }
+ return (
+
❌ Not V2/V3 format
+ );
+ })()}
)}