diff --git a/Dockerfile b/Dockerfile index b035b96..0083a63 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,6 @@ RUN npm ci COPY index.html vite.config.ts tsconfig.json tsconfig.node.json components.json ./ COPY src ./src COPY create ./create -COPY public ./public COPY scripts ./scripts COPY signer-static ./signer-static diff --git a/create/index.html b/create/index.html index 2fd3881..68b6c25 100644 --- a/create/index.html +++ b/create/index.html @@ -85,7 +85,7 @@
{ + ( + proxy as OWSProxy & { + analytics?: { + on: (handler: (event: IOWSAnalyticsEvent) => void) => void; + }; + } + ).analytics?.on((event) => { console.info("[oneshot-wallet-host] analytics", event.name, event); setAnalyticsEvents((prev) => [event, ...prev].slice(0, MAX_ANALYTICS_EVENTS), @@ -106,7 +112,9 @@ export function App() { reportStatus( mode === "design" ? `Design preview connected on ${connectedChain}. Apply setStyle to refresh.` - : `Wallet connected on ${connectedChain}. Enter a message and click Sign.`, + : mode === "analytics" + ? "Live analytics — switch to Test to generate events." + : `Wallet connected on ${connectedChain}. Enter a message and click Sign.`, ); } catch (error) { reportStatus( @@ -171,19 +179,20 @@ export function App() { {mode === "test" ? ( - ) : ( + ) : mode === "design" ? ( + ) : ( +
+ setAnalyticsEvents([])} + /> +
)} -
- setAnalyticsEvents([])} - /> -
{/* Flyout create() target — never reparented; Test mode only. */}
- -