Skip to content

Commit

Permalink
[Poke] Viewing assistant instructions: use TextArea (#7172)
Browse files Browse the repository at this point in the history
Description
---
Allows to read instructions otherwise unreadable

Before

After

Risk & deploy
---
na
  • Loading branch information
philipperolet authored Sep 6, 2024
1 parent 11614e1 commit 1e57670
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions front/pages/poke/[wId]/assistants/[aId]/index.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ContextItem, Page } from "@dust-tt/sparkle";
import { ContextItem, Page, TextArea } from "@dust-tt/sparkle";
import type { AgentConfigurationType } from "@dust-tt/types";
import { SUPPORTED_MODEL_CONFIGS } from "@dust-tt/types";
import { JsonViewer } from "@textea/json-viewer";
Expand Down Expand Up @@ -62,7 +62,11 @@ const DataSourcePage = ({
</div>
<div className="ml-4 text-sm text-element-700">
<div className="font-bold">Instructions:</div>
{a.instructions}
<TextArea
placeholder=""
value={a.instructions}
onChange={() => {}}
/>
</div>
<div className="ml-4 text-sm text-element-700">
<div className="font-bold">
Expand Down

0 comments on commit 1e57670

Please sign in to comment.