diff --git a/web/app/(main-layout)/layout.tsx b/web/app/(main-layout)/layout.tsx
index b1750d2..9f1e1d0 100644
--- a/web/app/(main-layout)/layout.tsx
+++ b/web/app/(main-layout)/layout.tsx
@@ -7,7 +7,6 @@ import PlatformAssistantProvider from "@/components/providers/platform-assistant
import RemoteModuleProvider from "@/components/providers/remote-module-provider";
import WrappedHeroUIProvider from "@/components/providers/wrapped-hero-ui-provider";
import { Analytics } from "@vercel/analytics/next";
-import { ReactFlowProvider } from "@xyflow/react";
import "material-icons/iconfont/material-icons.css";
import type { Metadata } from "next";
import { Suspense } from "react";
@@ -33,18 +32,16 @@ export default function RootLayout({
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/web/components/explorer/app/app-explorer.tsx b/web/components/explorer/app/app-explorer.tsx
index e719783..902c507 100644
--- a/web/components/explorer/app/app-explorer.tsx
+++ b/web/components/explorer/app/app-explorer.tsx
@@ -90,14 +90,14 @@ function DraggableAppPreviewCard({ ext }: { ext: ExtensionApp }) {
isShowCompatibleChip={false}
isShowContextMenu={false}
isDisableButtonPress={!isDragFinished}
- onPress={(ext) => {
+ onPress={async (ext) => {
const config: AppViewConfig = {
app: ext.config.id,
viewId: `${ext.config.id}-${v4()}`,
recommendedHeight: ext.config.recommendedHeight,
recommendedWidth: ext.config.recommendedWidth,
};
- createAppViewInCanvasView(config);
+ await createAppViewInCanvasView(config);
console.log("Is Landscape:", isLandscape);
if (!isLandscape) {
editorContext?.setEditorStates((prev) => ({
diff --git a/web/components/modals/sharing-modal.tsx b/web/components/modals/sharing-modal.tsx
index d696ade..c554440 100644
--- a/web/components/modals/sharing-modal.tsx
+++ b/web/components/modals/sharing-modal.tsx
@@ -21,6 +21,7 @@ export default function SharingModal({
const params = useSearchParams();
// Use the 'app' query parameter to load specific extension app upon loading page
const app = params.get("app");
+ const workflow = params.get("workflow");
const tabItems: TabItem[] = [
{
@@ -139,7 +140,7 @@ export default function SharingModal({
Share your workspace via this URL
- {`${window.location.origin}?app=${app}${shareInfo?.inviteCode ? `&inviteCode=${shareInfo.inviteCode}` : ""}`}
+ {`${window.location.origin}?${app ? `app=${app}` : workflow ? `workflow=${workflow}` : ""}${shareInfo?.inviteCode ? `&inviteCode=${shareInfo.inviteCode}` : ""}`}