Skip to content

Commit

Permalink
Change order of Assistant in assistant page
Browse files Browse the repository at this point in the history
  • Loading branch information
PopDaph committed Nov 16, 2023
1 parent 8394ba2 commit 61bd1b4
Showing 1 changed file with 51 additions and 51 deletions.
102 changes: 51 additions & 51 deletions front/pages/w/[wId]/builder/assistants/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,57 @@ export default function AssistantsBuilder({
icon={RobotIcon}
description="Create, manage and deploy Assistants to your collaborators."
/>
<Page.SectionHeader
title="Custom Assistants"
description="Build your Assistant, tailored to your needs. Write specific&nbsp;instructions, select&nbsp;specific data sources to&nbsp;get better&nbsp;answers."
action={{
label: "Create a new Assistant",
variant: "primary",
icon: PlusIcon,
size: "sm",
disabled: !isBuilder,
onClick: () => {
void router.push(`/w/${owner.sId}/builder/assistants/new`);
},
}}
/>
<Searchbar
name="search"
placeholder="AssistantName"
value={assistantSearch}
onChange={(s) => {
setAssistantSearch(s);
}}
/>
<ContextItem.List className="text-element-900">
{filtered.map((agent) => (
<ContextItem
key={agent.sId}
title={`@${agent.name}`}
visual={
<Avatar visual={<img src={agent.pictureUrl} />} size={"sm"} />
}
action={
<Button
variant="secondary"
icon={PencilSquareIcon}
label="Edit"
size="sm"
disabled={!isBuilder}
onClick={() => {
void router.push(
`/w/${owner.sId}/builder/assistants/${agent.sId}`
);
}}
/>
}
>
<ContextItem.Description>
<div className="text-element-700">{agent.description}</div>
</ContextItem.Description>
</ContextItem>
))}
</ContextItem.List>
<Page.SectionHeader
title="Dust Assistants"
description='Assistants built by Dust for multiple use&nbsp;cases. For instance, use "@help" for any&nbsp;question Dust related, use&nbsp;the&nbsp;handle "@notion" to&nbsp;target specifically knowledge on&nbsp;Notion…'
Expand Down Expand Up @@ -189,57 +240,6 @@ export default function AssistantsBuilder({
</ContextItem>
))}
</ContextItem.List>
<Page.SectionHeader
title="Custom Assistants"
description="Build your Assistant, tailored to your needs. Write specific&nbsp;instructions, select&nbsp;specific data sources to&nbsp;get better&nbsp;answers."
action={{
label: "Create a new Assistant",
variant: "primary",
icon: PlusIcon,
size: "sm",
disabled: !isBuilder,
onClick: () => {
void router.push(`/w/${owner.sId}/builder/assistants/new`);
},
}}
/>
<Searchbar
name="search"
placeholder="AssistantName"
value={assistantSearch}
onChange={(s) => {
setAssistantSearch(s);
}}
/>
<ContextItem.List className="text-element-900">
{filtered.map((agent) => (
<ContextItem
key={agent.sId}
title={`@${agent.name}`}
visual={
<Avatar visual={<img src={agent.pictureUrl} />} size={"sm"} />
}
action={
<Button
variant="secondary"
icon={PencilSquareIcon}
label="Edit"
size="sm"
disabled={!isBuilder}
onClick={() => {
void router.push(
`/w/${owner.sId}/builder/assistants/${agent.sId}`
);
}}
/>
}
>
<ContextItem.Description>
<div className="text-element-700">{agent.description}</div>
</ContextItem.Description>
</ContextItem>
))}
</ContextItem.List>
</Page.Vertical>
</AppLayout>
);
Expand Down

0 comments on commit 61bd1b4

Please sign in to comment.