[go: up one dir, main page]

Refactor Catalog Item UI - Remove Drawer and Unify View/Edit States

Immediate action items

  • Remove the drawer
  • Merge the view/edit state of an agent on the same page, where the user first lands on the view state and has a button to edit it
  • This page also has the 'Add to Project' button and modal
  • We might or might not have a '...' menu on the index page. Maybe the actions in there could act like shortcuts to the edit state of the view page. We can discuss this in more detail in issues - I have some thoughts about this, and I'm sure you do as well

TBD

  • How can we make it as simple as possible to let users test run an agent WHILE creating/editing (viewing) it? And I think it will only get more complicated with versions, so let's not focus on versions right now. The technical problem is that right now we always have to update an agent to start a test run. There isn't a real playground where I could enter whatever and test it out without saving it first. It's also a bit weird that only the user prompt, system prompt, and tools (behind a feature flag) will actually alter the behavior of the test run, but not the name and description (I assume?), even though we edit them in the same form. However, let's ignore this for now - we can solve this UX problem once we've resolved the rest of the action items.

Keep it mind

  • Only admins can edit, test run, and delete agents
  • Everybody should be able to duplicate/create an agent as long as they're logged in
  • Logged-out users can only view, and nothing else
  • The solution does not fix the problem that it's somehow weird that private agents can only be added to the project they were created in, but then the frontend still doesn't know if the item consumers were already created or not, so we'll always have to show the 'Add to Project' button

FYI: Future Vision

Edited by 🤖 GitLab Bot 🤖