Skip to content

Commit 096f898

Browse files
authored
Merge pull request #79 from ClayPulse/add-workflow-marketplace
Add workflow marketplace
2 parents 752b168 + 6b01cd1 commit 096f898

30 files changed

+852
-381
lines changed

package-lock.json

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/components/extension/extension-loader.tsx renamed to web/components/app-loaders/base-app-loader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { useRef } from "react";
33

44
import { PlatformEnum } from "@/lib/enums";
55

6-
export default function ExtensionLoader({
6+
export default function BaseAppLoader({
77
remoteOrigin,
88
moduleId,
99
moduleVersion,

web/components/app-loaders/sandbox-app-loader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ExtensionLoader from "@/components/extension/extension-loader";
1+
import BaseAppLoader from "@/components/app-loaders/base-app-loader";
22
import Loading from "@/components/interface/loading";
33
import { EditorContext } from "@/components/providers/editor-context-provider";
44
import { IMCContext } from "@/components/providers/imc-provider";
@@ -323,7 +323,7 @@ export default function SandboxAppLoader({
323323
</div>
324324
)}
325325
{currentExtension && currentViewId && (
326-
<ExtensionLoader
326+
<BaseAppLoader
327327
viewId={currentViewId}
328328
remoteOrigin={currentExtension.remoteOrigin}
329329
moduleId={currentExtension.config.id}

web/components/explorer/app/app-explorer.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ExtensionPreview from "@/components/extension/extension-preview";
1+
import AppPreviewCard from "@/components/marketplace/app/app-preview-card";
22
import { EditorContext } from "@/components/providers/editor-context-provider";
33
import { useScreenSize } from "@/lib/hooks/use-screen-size";
44
import { useTabViewManager } from "@/lib/hooks/use-tab-view-manager";
@@ -24,7 +24,7 @@ export default function AppExplorer() {
2424
e.dataTransfer.setData("text/plain", JSON.stringify(ext));
2525
}}
2626
>
27-
<ExtensionPreview
27+
<AppPreviewCard
2828
extension={ext}
2929
isShowInstalledChip={false}
3030
isShowUninstallButton={false}

web/components/extension/extension-details.tsx

Lines changed: 0 additions & 5 deletions
This file was deleted.

web/components/extension/extension-gallery.tsx

Lines changed: 0 additions & 65 deletions
This file was deleted.

web/components/interface/editor-toolbar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Button, Divider, Tooltip } from "@heroui/react";
1010
import { AnimatePresence, motion } from "framer-motion";
1111
import { useContext, useState } from "react";
1212
import AgentConfigModal from "../modals/agent-config-modal";
13-
import ExtensionMarketplaceModal from "../modals/extension-marketplace-modal";
13+
import MarketplaceModal from "../modals/marketplace-modal";
1414
import { EditorContext } from "../providers/editor-context-provider";
1515

1616
export default function EditorToolbar() {
@@ -174,7 +174,7 @@ export default function EditorToolbar() {
174174
<Icon name="storefront" variant="outlined" />
175175
</Button>
176176
</Tooltip>
177-
<ExtensionMarketplaceModal
177+
<MarketplaceModal
178178
isOpen={editorContext?.editorStates.isMarketplaceOpen || false}
179179
setIsOpen={(isOpen) =>
180180
editorContext?.setEditorStates((prev) => ({

web/components/interface/extension-suggestion-overlay.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import ExtensionPreview from "../extension/extension-preview";
1+
import AppPreviewCard from "../marketplace/app/app-preview-card";
22

33
export default function ExtensionSuggestionOverlay() {
44
return (
@@ -7,7 +7,7 @@ export default function ExtensionSuggestionOverlay() {
77
<div className="bg-content1 responsive-content h-20 rounded-lg"></div>
88
<div className="flex h-full flex-col justify-center pb-20">
99
<div className="responsive-content flex gap-2">
10-
<ExtensionPreview
10+
<AppPreviewCard
1111
isShowInstalledChip
1212
extension={{
1313
config: {
@@ -23,7 +23,7 @@ export default function ExtensionSuggestionOverlay() {
2323
remoteOrigin: `${process.env.NEXT_PUBLIC_CDN_URL}/${process.env.NEXT_PUBLIC_STORAGE_CONTAINER}`,
2424
}}
2525
/>
26-
<ExtensionPreview
26+
<AppPreviewCard
2727
isShowInstalledChip
2828
extension={{
2929
config: {
@@ -39,7 +39,7 @@ export default function ExtensionSuggestionOverlay() {
3939
remoteOrigin: `${process.env.NEXT_PUBLIC_CDN_URL}/${process.env.NEXT_PUBLIC_STORAGE_CONTAINER}`,
4040
}}
4141
/>
42-
<ExtensionPreview
42+
<AppPreviewCard
4343
isShowInstalledChip
4444
extension={{
4545
config: {

web/components/interface/navigation/menu-dropdown/file-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default function FileMenuDropDown() {
1414
{
1515
name: "New Workflow",
1616
menuCategory: "file",
17-
shortcut: "Ctrl+N",
17+
shortcut: "Ctrl+Alt+N",
1818
icon: "add",
1919
description: "Create a new Workflow",
2020
},
@@ -30,7 +30,7 @@ export default function FileMenuDropDown() {
3030
{
3131
name: "Close Workflow",
3232
menuCategory: "file",
33-
shortcut: "Ctrl+C",
33+
shortcut: "Ctrl+Alt+C",
3434
icon: "close",
3535
description: "Close the current workflow",
3636
},

web/components/interface/navigation/menu-dropdown/view-menu.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default function ViewMenuDropDown() {
8686
const viewId = "canvas-" + v4();
8787
await createCanvasTabView({
8888
viewId,
89-
appConfigs: workflow.nodes.map((node) => node.data.config),
89+
appConfigs: workflow.content.nodes.map((node) => node.data.config),
9090
initialWorkflow: workflow,
9191
} as CanvasViewConfig);
9292
} else {

0 commit comments

Comments
 (0)