Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add top level obot page to admin ui #1993

Conversation

ryanhopperlowe
Copy link
Contributor

@ryanhopperlowe ryanhopperlowe commented Mar 7, 2025

addresses #1958

  • adds top level obot page
  • adds filters for Spawned from, Agent, Created By
  • adds Obot filter for the /chat-threads page
  • defaults to filtering out "spawned" obots
  • provides actions for opening an obot in the User UI, and deleting the obot (with confirmation)
Screenshot 2025-03-07 at 5 33 05 PM Screenshot 2025-03-07 at 5 35 17 PM Screenshot 2025-03-07 at 5 35 30 PM

@@ -49,7 +50,7 @@ func convertThread(thread v1.Thread) types.Thread {
LastRunID: thread.Status.LastRunName,
CurrentRunID: thread.Status.CurrentRunName,
State: state,
ProjectID: thread.Spec.ParentThreadName,
ProjectID: strings.Replace(thread.Spec.ParentThreadName, system.ThreadPrefix, system.ProjectPrefix, 1),
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since thread.Spec.ParentThreadName is always a project I figured it made sense to convert the projectID value when sending to the UI

AssistantID: thread.Spec.AgentName,
Editor: thread.IsEditor(),
UserID: thread.Spec.UserID,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed this to display a Created By field in the admin UI

@@ -5,6 +5,8 @@ type Project struct {
ProjectManifest
AssistantID string `json:"assistantID,omitempty"`
Editor bool `json:"editor"`
ParentID string `json:"parentID,omitempty"`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let me know if parentID is too ambiguous

Copy link
Contributor

@thedadams thedadams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Go changes look good.

@ryanhopperlowe ryanhopperlowe merged commit 35fdfc2 into obot-platform:main Mar 8, 2025
3 checks passed
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.

3 participants