fix(frontend): Add integer type definition for node handles (#8803)

This commit is contained in:
Abhimanyu Yadav 2024-11-27 12:46:29 +05:30 committed by GitHub
parent effd1e35a3
commit 6bfe7ff497
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 0 deletions

View File

@ -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",

View File

@ -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",
@ -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",
@ -74,6 +76,7 @@ export function getTypeColor(type: string | null): string {
{
string: "#22c55e",
number: "#3b82f6",
integer: "#3b82f6",
boolean: "#eab308",
object: "#a855f7",
array: "#6366f1",