Skip to content

feat: add command and event listener sharing using json flow - #340

Open
lemoncubedev wants to merge 11 commits into
merlinfuchs:mainfrom
lemoncubedev:command-sharing
Open

lemoncubedev wants to merge 11 commits into
merlinfuchs:mainfrom
lemoncubedev:command-sharing

Conversation

@lemoncubedev

Copy link
Copy Markdown
Contributor

This adds sharing of commands and event listeners between bots. Exporting is done through a button within the dropdown menu on each command and event listener. A popup will appear with the command or event listener's json flow, which can be copied. Importing is done through a button directly next to create command/event listener. A popup will appear where the json flow is pasted. The command or event listener is then imported using the useCommandsImportMutation mutation and useEventListenersImportMutation mutation.

Screenshot 2026-08-23 161221 Screenshot 2026-08-23 161234
Screenshot 2026-08-23 161420 Screenshot 2026-08-23 161432
Screenshot 2026-08-23 161508 Screenshot 2026-08-23 161518
Screenshot 2026-08-23 161534 Screenshot 2026-08-23 161543

@vercel

vercel Bot commented Aug 23, 2026

Copy link
Copy Markdown

@lemoncubedev is attempting to deploy a commit to the merlinfuchs' projects Team on Vercel.

A member of the Team first needs to authorize it.

@8of4

8of4 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

hi, cool features, i know youve been working on it for a while!

i did notice something ux/ui related (correct me if im wrong);

  • theres a mismatch between the "Copy" and "Paste" screens.
    • exporting uses a multi-line <Textarea> (CommandExportDialog.tsx lines 71-75, EventListenerExportDialog.tsx lines 74-78), but importing uses a standard single-line field (CommandImportDialog.tsx lines 127-131, EventListenerImportDialog.tsx lines 128-132), making multi-line a little difficult.

@lemoncubedev

Copy link
Copy Markdown
Contributor Author
  • exporting uses a multi-line <Textarea> (CommandExportDialog.tsx lines 71-75, EventListenerExportDialog.tsx lines 74-78), but importing uses a standard single-line field (CommandImportDialog.tsx lines 127-131, EventListenerImportDialog.tsx lines 128-132), making multi-line a little difficult.

I decided to use the single-line field for importing because users don't need to be looking at the json when they are just pasting and clicking import. When they are exporting, they might need to drag to highlight the entire json if they are having trouble with copying to clipboard.

@8of4

8of4 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

oh ok, i see where youre coming from now. just thought id let you know incase you didnt notice
👍🏻

Switched JSON input on importing from input to textarea

Updated error messages to match format
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants