Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
6ecd448
implement ui for publish system prompt to hub
shatfield4 Jun 10, 2025
17b4b72
rework ui + add backend to upload to hub
shatfield4 Jun 11, 2025
2f905eb
add success modal view + publish menu item + translations
shatfield4 Jun 12, 2025
74828a6
normalize translations
shatfield4 Jun 12, 2025
c55d8d2
refactor PublishEntityModal + add hook
shatfield4 Jun 12, 2025
2014514
normalize translations
shatfield4 Jun 12, 2025
6ef96e8
Merge branch 'master' into 3975-feat-publish-system-prompt-via-ws-set…
shatfield4 Jun 12, 2025
929d70b
fix ui for success screen
shatfield4 Jun 13, 2025
a414e0d
Merge branch 'master' into 3975-feat-publish-system-prompt-via-ws-set…
timothycarambat Jun 13, 2025
cfe3e98
refactor, auth checks, UI/UX, and naming conventions to be more clear
timothycarambat Jun 13, 2025
fe28e0f
move components to CommunityHub folder + small ui tweak
shatfield4 Jun 13, 2025
a55917d
wip publish agent flows to community hub
shatfield4 Jun 14, 2025
09160c6
rework translations/implement uploading agent flows
shatfield4 Jun 16, 2025
6b5b6ac
normalize/restructure translations
shatfield4 Jun 16, 2025
7aa1640
Merge branch 'master' into publish-agent-flows-to-hub
shatfield4 Jun 16, 2025
2389edc
rename component/add jsdoc for consistency
shatfield4 Jun 16, 2025
8a7c67b
fix en translation
shatfield4 Jun 16, 2025
316cf47
remove comments/duplicate function from merge conf
shatfield4 Jun 16, 2025
b37a238
update styles of publish button in flow builder
shatfield4 Jun 16, 2025
2cc3538
resolve ssr icon issue
shatfield4 Jun 16, 2025
e6b0db3
UI linting
timothycarambat Jun 24, 2025
3a78b34
merge master
timothycarambat Jun 24, 2025
f609fc4
language diff
timothycarambat Jun 24, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rename component/add jsdoc for consistency
  • Loading branch information
shatfield4 committed Jun 16, 2025
commit 2389edc0d228b908c561623c1ed1313af2566b3d
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import paths from "@/utils/paths";
import { X, CaretRight } from "@phosphor-icons/react/dist/ssr";
import { BLOCK_INFO } from "@/pages/Admin/AgentBuilder/BlockList";

export default function AgentFlow({ entity }) {
export default function AgentFlows({ entity }) {
const { t } = useTranslation();
const formRef = useRef(null);
const [isSubmitting, setIsSubmitting] = useState(false);
const [tags, setTags] = useState([]);
const [tagInput, setTagInput] = useState("");
const [visibility, setVisibility] = useState("public");
const [isSuccess, setIsSuccess] = useState(false);
const [itemId, setItemId] = useState(null);
const [expandedStep, setExpandedStep] = useState(null);
Expand All @@ -27,13 +26,13 @@ export default function AgentFlow({ entity }) {
name: form.get("name"),
description: form.get("description"),
tags: tags,
visibility: visibility,
visibility: "private",
flow: JSON.stringify({
name: form.get("name"),
description: form.get("description"),
steps: entity.steps,
tags: tags,
visibility: visibility,
visibility: "private",
}),
};
const { success, error, itemId } =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { X } from "@phosphor-icons/react";
import { useCommunityHubAuth } from "@/hooks/useCommunityHubAuth";
import UnauthenticatedHubModal from "@/components/CommunityHub/UnauthenticatedHubModal";
import SystemPrompts from "./SystemPrompts";
import AgentFlow from "./AgentFlow";
import ModalWrapper from "@/components/ModalWrapper";
import AgentFlows from "./AgentFlows";

export default function PublishEntityModal({
show,
Expand All @@ -21,7 +21,7 @@ export default function PublishEntityModal({
case "system-prompt":
return <SystemPrompts entity={entity} />;
case "agent-flow":
return <AgentFlow entity={entity} />;
return <AgentFlows entity={entity} />;
default:
return null;
}
Expand Down
6 changes: 6 additions & 0 deletions frontend/src/models/communityHub.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ const CommunityHub = {
}));
},

/**
* Create a new agent flow in the community hub
* @param {Object} data - The agent flow data
* @returns {Promise<{success: boolean, error: string | null}>}
*/

createAgentFlow: async (data) => {
return await fetch(`${API_BASE}/community-hub/agent-flow/create`, {
method: "POST",
Expand Down