feature(blocks): added github dropdown for actions

This commit is contained in:
Emir Karabeg
2025-02-17 22:16:37 -08:00
parent 2d77590d03
commit 7c40f24162
2 changed files with 20 additions and 9 deletions
+11
View File
@@ -24,6 +24,17 @@ export const GitHubBlock: BlockConfig<RepoInfoResponse> = {
layout: 'half',
placeholder: 'e.g., vscode',
},
{
id: 'action',
title: 'Action',
type: 'dropdown',
layout: 'full',
options: [
{ label: 'Get general info', id: 'general_info' },
{ label: 'Get pull requests', id: 'pull_requests' },
],
value: () => 'general_info',
},
{
id: 'apiKey',
title: 'GitHub Token',
+9 -9
View File
@@ -23,14 +23,6 @@ export const PineconeBlock: BlockConfig<PineconeResponse> = {
{ label: 'Delete', id: 'delete' },
],
},
{
id: 'apiKey',
title: 'API Key',
type: 'short-input',
layout: 'full',
placeholder: 'Your Pinecone API key',
password: true,
},
{
id: 'environment',
title: 'Environment',
@@ -58,7 +50,7 @@ export const PineconeBlock: BlockConfig<PineconeResponse> = {
id: 'topK',
title: 'Top K Results',
type: 'short-input',
layout: 'half',
layout: 'full',
placeholder: '10',
condition: { field: 'operation', value: 'query' },
},
@@ -104,6 +96,14 @@ export const PineconeBlock: BlockConfig<PineconeResponse> = {
value: () => 'false',
condition: { field: 'operation', value: 'delete' },
},
{
id: 'apiKey',
title: 'API Key',
type: 'short-input',
layout: 'full',
placeholder: 'Your Pinecone API key',
password: true,
},
],
tools: {