https://discord.gg/botpress logo
Action editor bugs
# 🤝help
e
Ever since the ui of the action editor changed to look like the attached image, I have been encountering a lot of bugs. There's one action that I hadn't defined an output schema for yet, and if I add the schema in the editor, it doesn't save. If I create a new action, then I can't edit the code or the input and output schemas. What's going on here? I've tried multiple browsers, logging out and in again. https://cdn.discordapp.com/attachments/1430875404473864222/1430875405174308905/f04b2d41-a8ed-465e-90cb-a95ec7447e2d.jpg?ex=68fb5e10&is=68fa0c90&hm=29a2eff5490a7bc206dc0fdefea9c49ba064385d58e05982d05e7157d92637d0&
w
uh i just see the new ui.
it'd be usefull if i don't need a saved schema, but in this way if i update my schema this one stay as is (i don't like)
i try to set Input schema but it's not saved
i create a new action, schemas are prefilled and i can't clear them if i don't need
a
Hey @echoing-barista-47535 , thank you for bringing this up. Fixing this up right now
While I'm at it, you can create a new action and copy code from teh existing one. When action is created, it acutomatically creates both input and output schemas
w
yes i see pre-filled schemas even if i don't write code.
Copy code
ts
z.object({
  name: z.string(),
  age: z.number(),
  email: z.string().email(),
  address: z.object({
    street: z.string(),
    city: z.string(),
    zip: z.string().length(5),
  })
})
a
That's correct, when action is created, input and output schemas are created with it
@echoing-barista-47535 You should be able to switch and create schemas from the actions modal now
e
Thank you, I'll test that out when I'm back at work!
w
@aloof-traffic-22451 I like it very much 🆙