Skip to content

Commit

Permalink
handle workflows without suggestions and description
Browse files Browse the repository at this point in the history
  • Loading branch information
breeg554 committed Oct 4, 2024
1 parent 556cc23 commit e9f6671
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 21 deletions.
26 changes: 14 additions & 12 deletions apps/web-remix/app/components/chat/Webchat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -271,20 +271,22 @@ ${JSON.stringify(files)}
className={cn('max-w-[820px] mx-auto', {
hidden:
!!messages.length ||
!pipeline.interface_config.suggested_messages.length,
!(pipeline.interface_config.suggested_messages || []).length,
})}
>
{pipeline.interface_config.suggested_messages.map((msg, index) => {
return (
<SuggestedMessage
disabled={disabled}
key={index}
onClick={onSubmit}
content={msg}
size={size}
/>
);
})}
{(pipeline.interface_config.suggested_messages || []).map(
(msg, index) => {
return (
<SuggestedMessage
disabled={disabled}
key={index}
onClick={onSubmit}
content={msg}
size={size}
/>
);
},
)}
</SuggestedMessages>

<IntroPanel
Expand Down
2 changes: 1 addition & 1 deletion apps/web-remix/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"typecheck": "tsc"
},
"dependencies": {
"@buildel/buildel": "0.3.0",
"@buildel/buildel": "0.3.1",
"@codemirror/autocomplete": "^6.15.0",
"@dagrejs/dagre": "^1.1.3",
"@fastify/early-hints": "^1.0.1",
Expand Down
10 changes: 5 additions & 5 deletions apps/web-remix/pnpm-lock.yaml

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

2 changes: 1 addition & 1 deletion packages/buildel/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@buildel/buildel",
"private": false,
"version": "0.3.0",
"version": "0.3.1",
"license": "MIT",
"description": "A flexible library for integrating with the Buildel service via WebSockets. Enables easy connection, authentication, and real-time event handling within the context of organizations and pipelines.",
"keywords": [
Expand Down
4 changes: 2 additions & 2 deletions packages/buildel/src/buildel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,8 +476,8 @@ export type BuildelRunRunFormConfig = BuildelRunRunBaseConfig;
export type BuildelRunRunWebchatConfig = BuildelRunRunBaseConfig & {
audio_outputs?: BuildelRunPipelineConfigProperty[];
audio_inputs?: BuildelRunPipelineConfigProperty[];
description: string;
suggested_messages: string[];
description?: string;
suggested_messages?: string[];
};

export type BuildelRunRunConfig = {
Expand Down

0 comments on commit e9f6671

Please sign in to comment.