Skip to content

Commit

Permalink
fix(frontend): Add integer type definition for node handles (#8803)
Browse files Browse the repository at this point in the history
  • Loading branch information
Abhi1992002 authored and aarushik93 committed Dec 1, 2024
1 parent 52f658f commit 0267886
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions autogpt_platform/frontend/src/components/NodeHandle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const NodeHandle: FC<HandleProps> = ({
const typeName: Record<string, string> = {
string: "text",
number: "number",
integer: "integer",
boolean: "true/false",
object: "object",
array: "list",
Expand Down
3 changes: 3 additions & 0 deletions autogpt_platform/frontend/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export function getTypeTextColor(type: string | null): string {
{
string: "text-green-500",
number: "text-blue-500",
integer: "text-blue-500",
boolean: "text-yellow-500",
object: "text-purple-500",
array: "text-indigo-500",
Expand All @@ -58,6 +59,7 @@ export function getTypeBgColor(type: string | null): string {
{
string: "border-green-500",
number: "border-blue-500",
integer: "border-blue-500",
boolean: "border-yellow-500",
object: "border-purple-500",
array: "border-indigo-500",
Expand All @@ -74,6 +76,7 @@ export function getTypeColor(type: string | null): string {
{
string: "#22c55e",
number: "#3b82f6",
integer: "#3b82f6",
boolean: "#eab308",
object: "#a855f7",
array: "#6366f1",
Expand Down

0 comments on commit 0267886

Please sign in to comment.