Skip to content

feat(frontend): offer Agent type in the Prompts page create menu#4862

Merged
mmabrouk merged 1 commit into
big-agentsfrom
fe-feat/prompts-create-agent
Jun 25, 2026
Merged

feat(frontend): offer Agent type in the Prompts page create menu#4862
mmabrouk merged 1 commit into
big-agentsfrom
fe-feat/prompts-create-agent

Conversation

@ardaerzin

@ardaerzin ardaerzin commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Stacked on #4850 (agent config panel); it needs the agent create drawer from that PR. Base is fe-feat/agent-config-panel-onbig so the diff is just this feature, and it retargets/rebases onto big-agents once #4850 merges.

Context

Agents can be created from the Home page (the create modal offers Chat / Completion / Agent), but the Prompts page "Create new" menu (and the breadcrumb create menu) only listed Chat and Completion, so agent workflows couldn't be created there.

Changes

Added an Agent item to both create menus, wired exactly like Chat/Completion:

No new logic was needed. The create handler was already type-agnostic: onOpenNewPrompt: (type: AppType)handleOpenNewPromptModalcreateEphemeralAppFromTemplate({type}) → open the agent create drawer. getAppTypeIcon already had the agent (robot) icon. Only the two menu entries were missing.

For the agent service (Mahmoud / agents)

Pure FE menu wiring. No new backend or create-flow code. It reuses the exact createEphemeralAppFromTemplate({type: "agent"}) path the Home modal already uses.

Tests / notes

  • tsc + eslint clean on both files.
  • The create path is identical to the Home "Agent" option, which is confirmed working (Home → Agent → the agent create drawer opens with the config panel + chat).
  • The live submenu render was not screenshotted: the "Create new" menu opens, but antd's nested "New prompt" submenu does not expand under browser automation.

What to QA

  • Prompts page → Create new → New prompt → Agent. The agent create drawer opens with the agent config panel + chat (same as creating an agent from Home).
  • Regression: Chat and Completion still create their respective apps.

The Home create modal offers Chat / Completion / Agent, but the Prompts page's "Create new"
menu (and the breadcrumb create menu) only listed Chat and Completion, so agent workflows
couldn't be created from Prompts. The create handler is already type-agnostic
(handleOpenNewPromptModal → createEphemeralAppFromTemplate({type}) → open the agent create
drawer, with onOpenNewPrompt/onNewPrompt typed `(type: AppType)`); only the menu entries were
missing. Add an Agent item to both menus, wired exactly like Chat/Completion.
@dosubot dosubot Bot added size:S This PR changes 10-29 lines, ignoring generated files. feature Frontend labels Jun 25, 2026
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Ready Ready Preview, Comment Jun 25, 2026 10:35pm

Request Review

@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 29de0136-0c20-465f-bd8a-8863e637a0f6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fe-feat/prompts-create-agent

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@ardaerzin ardaerzin mentioned this pull request Jun 25, 2026
12 tasks
@github-actions

github-actions Bot commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

Railway Preview Environment

Status Destroyed (PR closed)

Updated at 2026-06-25T23:20:16.401Z

@mmabrouk mmabrouk changed the base branch from fe-feat/agent-config-panel-onbig to big-agents June 25, 2026 23:19
@mmabrouk mmabrouk merged commit e910b5b into big-agents Jun 25, 2026
51 of 56 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Frontend size:S This PR changes 10-29 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants