This repository has been archived by the owner on Oct 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(toolkit): user can better identify some nested output on connect…
…or nodes (#954) Because - improve UX This commit - user can better identify some nested output on connector nodes
- Loading branch information
Showing
14 changed files
with
260 additions
and
195 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
packages/toolkit/src/view/pipeline-builder/use-node-output-fields/ArrayObjectField.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as React from "react"; | ||
import { Nullable } from "../../../lib"; | ||
import { ConnectorNodeFieldRoot, EndNodeFieldRoot } from "./FieldRoot"; | ||
|
||
export type ArrayObjectFieldProps = { | ||
nodeType: "end" | "connector"; | ||
title: Nullable<string>; | ||
children: React.ReactNode; | ||
}; | ||
|
||
export const ArrayObjectField = (props: ArrayObjectFieldProps) => { | ||
const { nodeType, title, children } = props; | ||
|
||
if (nodeType === "connector") { | ||
return ( | ||
<ConnectorNodeFieldRoot title={title} key={`${title}-field`}> | ||
{children} | ||
</ConnectorNodeFieldRoot> | ||
); | ||
} | ||
|
||
return ( | ||
<EndNodeFieldRoot title={title} key={`${title}-field`}> | ||
{children} | ||
</EndNodeFieldRoot> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
f1c6b38
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
design-system – ./
design-system-git-main-instill-ai.vercel.app
design-system-instill-ai.vercel.app
design-system-beta.vercel.app
ui.instill.tech