-
Notifications
You must be signed in to change notification settings - Fork 15
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
Conversation
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"> |
There was a problem hiding this comment.
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 :(
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
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" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
size="icon"
tool.name | ||
?.toLowerCase() | ||
.includes(searchTerm.toLowerCase()) || | ||
tool.metadata?.category | ||
?.toLowerCase() | ||
.includes(searchTerm.toLowerCase()) || | ||
tool.description | ||
?.toLowerCase() | ||
.includes(searchTerm.toLowerCase()) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good!
Signed-off-by: tylerslaton <[email protected]>
This includes a lot of changes to the admin UI as
per a big batch of feedback from @ibuildthecloud.
The main changes are: