Added Beta badge
This commit is contained in:
parent
95f69442d6
commit
19c714a7d5
3 changed files with 9 additions and 2 deletions
|
|
@ -4,6 +4,7 @@ import { NodeToolbar, useUpdateNodeInternals } from "reactflow";
|
|||
import ShadTooltip from "../../components/ShadTooltipComponent";
|
||||
import Tooltip from "../../components/TooltipComponent";
|
||||
import IconComponent from "../../components/genericIconComponent";
|
||||
import { Badge } from "../../components/ui/badge";
|
||||
import { useSSE } from "../../contexts/SSEContext";
|
||||
import { alertContext } from "../../contexts/alertContext";
|
||||
import { TabsContext } from "../../contexts/tabsContext";
|
||||
|
|
@ -111,6 +112,11 @@ export default function GenericNode({
|
|||
</div>
|
||||
</div>
|
||||
<div className="round-button-div">
|
||||
{data.node.beta && (
|
||||
<Badge size="sm" variant="destructive">
|
||||
Beta
|
||||
</Badge>
|
||||
)}
|
||||
<div>
|
||||
<Tooltip
|
||||
title={
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ The cursor: default; property value restores the browser's default cursor style
|
|||
}
|
||||
|
||||
.generic-node-status-position {
|
||||
@apply relative top-[3px] h-5 w-5;
|
||||
@apply relative top-[1.5px] h-5 w-5;
|
||||
}
|
||||
|
||||
.generic-node-status-animation {
|
||||
|
|
|
|||
|
|
@ -14,8 +14,9 @@ export type APIClassType = {
|
|||
display_name: string;
|
||||
input_types?: Array<string>;
|
||||
output_types?: Array<string>;
|
||||
beta?: boolean;
|
||||
documentation: string;
|
||||
[key: string]: Array<string> | string | APITemplateType;
|
||||
[key: string]: Array<string> | string | APITemplateType | boolean;
|
||||
};
|
||||
|
||||
export type TemplateVariableType = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue