Skip to content

Commit

Permalink
Deploying Sparkle 40 and implementing (#2558)
Browse files Browse the repository at this point in the history
Co-authored-by: édouard wautier <edouardwautier@MacBook-Pro-de-edouard.local>
  • Loading branch information
Duncid and édouard wautier authored Nov 16, 2023
1 parent 9a60b51 commit b57f99c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion front/components/assistant/AssistantPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {
Button,
DropdownMenu,
Item,
PlusIcon,
RobotIcon,
Searchbar,
Expand Down Expand Up @@ -52,6 +53,7 @@ export function AssistantPicker({
<Searchbar
placeholder="Search"
name="input"
size="xs"
value={searchText}
onChange={setSearchText}
onKeyDown={(e) => {
Expand All @@ -65,10 +67,12 @@ export function AssistantPicker({
)}
<div className="max-h-[22.5rem] overflow-y-auto [&>*]:w-full">
{searchedAssistants.map((c) => (
<DropdownMenu.Item
<Item.Avatar
key={`assistant-picker-${c.sId}`}
label={"@" + c.name}
visual={c.pictureUrl}
hasAction={false}
className="px-3"
onClick={() => {
onItemClick(c);
setSearchText("");
Expand Down
2 changes: 1 addition & 1 deletion front/components/assistant/conversation/InputBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ function AgentListImpl(
left: position.left,
}}
>
<div className="flex flex-col gap-y-4 px-3 py-2">
<div className="flex flex-col gap-y-1 px-3 py-2">
{filtered.map((c, i) => (
<div
className="flex w-full px-1"
Expand Down
8 changes: 4 additions & 4 deletions front/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion front/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"initdb": "env $(cat .env.local) npx tsx admin/db.ts"
},
"dependencies": {
"@dust-tt/sparkle": "^0.2.39",
"@dust-tt/sparkle": "^0.2.40",
"@emoji-mart/data": "^1.1.2",
"@emoji-mart/react": "^1.1.1",
"@headlessui/react": "^1.7.7",
Expand Down

0 comments on commit b57f99c

Please sign in to comment.