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

refactor: overhaul admin ux and ui #377

Merged
merged 2 commits into from
Oct 31, 2024

Conversation

tylerslaton
Copy link
Contributor

This includes a lot of changes to the admin UI as
per a big batch of feedback from @ibuildthecloud.

The main changes are:

  • ToolGrid component has been updated to:
    • Sort alphabetically in each category
    • Show each tool's individual icon as well as the category icon
    • Remove hover effects for badges
    • CreateNewTool button now only has reference field
    • Fix a bug where the tool grid had an empty tool for bundless categories
    • Fixed a bug with the tool tip for category headers
  • Overall background of the application is now bg-background
  • OAuth app dialog is now much wider
  • Fix a broken link for threads breadcrumb
  • Agent edit page is not very different
    • No more accordions for tools and knowledge
    • Add tool now opens a new Dialog instead of a popover
  • ToolTable now has a onRowClick and disableClickPropagation prop
  • Thread and agent tables now link to their respective pages

This includes a lot of changes to the admin UI as
per a big batch of feedback from @ibuildthecloud.

The main changes are:
- ToolGrid component has been updated to:
    * Sort alphabetically in each category
    * Show each tool's individual icon as well as the category icon
    * Remove hover effects for badges
    * CreateNewTool button now only has reference field
    * Fix a bug where the tool grid had an empty tool for bundless categories
    * Fixed a bug with the tool tip for category headers
- Overall background of the application is now bg-background
- OAuth app dialog is now much wider
- Fix a broken link for threads breadcrumb
- Agent edit page is not very different
    * No more accordions for tools and knowledge
    * Add tool now opens a new Dialog instead of a popover
- ToolTable now has a onRowClick and disableClickPropagation prop
- Thread and agent tables now link to their respective pages

Signed-off-by: tylerslaton <[email protected]>
/>
</div>

<div className="p-4 flex-auto space-y-4">
Copy link
Contributor

Choose a reason for hiding this comment

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

there goes our last stoppage of polling in knowledge :(

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RIP.

@@ -100,29 +95,24 @@ export function ToolForm({
))}
</div>
<div className="flex justify-end w-full my-4">
<Popover>
<PopoverTrigger asChild>
<Dialog>
Copy link
Contributor

Choose a reason for hiding this comment

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

This looks way better 🙌

>
<Button
variant="ghost"
size="sm"
Copy link
Contributor

Choose a reason for hiding this comment

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

size="icon"

Comment on lines 34 to 42
tool.name
?.toLowerCase()
.includes(searchTerm.toLowerCase()) ||
tool.metadata?.category
?.toLowerCase()
.includes(searchTerm.toLowerCase()) ||
tool.description
?.toLowerCase()
.includes(searchTerm.toLowerCase())
Copy link
Contributor

@ryanhopperlowe ryanhopperlowe Oct 31, 2024

Choose a reason for hiding this comment

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

pro-tip

                        [tool.name, tool.metadata?.category, tool.description]
                            .filter(x => !!x)
                            .join("|")
                            .toLowerCase()
                            .includes(searchTerm.toLowerCase())

is a bit cleaner

Copy link
Contributor

@ryanhopperlowe ryanhopperlowe left a comment

Choose a reason for hiding this comment

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

Looking good!

@tylerslaton tylerslaton merged commit e85650d into obot-platform:main Oct 31, 2024
1 check 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.

2 participants