File tree Expand file tree Collapse file tree 4 files changed +12
-17
lines changed
editor/src/messages/portfolio/document Expand file tree Collapse file tree 4 files changed +12
-17
lines changed Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ pub struct FrontendGraphInput {
59
59
pub description : String ,
60
60
#[ serde( rename = "resolvedType" ) ]
61
61
pub resolved_type : String ,
62
- #[ serde( rename = "validTypes" ) ]
63
- pub valid_types : Vec < String > ,
64
62
#[ serde( rename = "connectedTo" ) ]
65
63
/// Either "nothing", "import index {index}", or "{node name} output {output_index}".
66
64
pub connected_to : String ,
Original file line number Diff line number Diff line change @@ -662,20 +662,19 @@ impl NodeNetworkInterface {
662
662
} ;
663
663
664
664
// TODO: Move in separate Tooltip overlay
665
- let valid_types = match self . valid_input_types ( & input_connector, network_path) {
666
- Ok ( input_types) => input_types. iter ( ) . map ( |ty| ty. to_string ( ) ) . collect ( ) ,
667
- Err ( e) => {
668
- log:: error!( "Error getting valid types for input {input_connector:?}: {e}" ) ;
669
- Vec :: new ( )
670
- }
671
- } ;
665
+ // let valid_types = match self.valid_input_types(&input_connector, network_path) {
666
+ // Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
667
+ // Err(e) => {
668
+ // log::error!("Error getting valid types for input {input_connector:?}: {e}");
669
+ // Vec::new()
670
+ // }
671
+ // };
672
672
673
673
Some ( FrontendGraphInput {
674
674
data_type,
675
675
resolved_type,
676
676
name,
677
677
description,
678
- valid_types,
679
678
connected_to,
680
679
} )
681
680
}
Original file line number Diff line number Diff line change 177
177
}
178
178
179
179
function inputTooltip(value : FrontendGraphInput ): string {
180
- return dataTypeTooltip (value ) + " \n\n " + inputConnectedToText (value ) + " \n\n " + validTypesText ( value ) ;
180
+ return dataTypeTooltip (value ) + " \n\n " + inputConnectedToText (value ) + " \n\n " ;
181
181
}
182
182
183
183
function outputTooltip(value : FrontendGraphOutput ): string {
188
188
return ` Data Type: ${value .resolvedType } ` ;
189
189
}
190
190
191
- function validTypesText(value : FrontendGraphInput ): string {
192
- const validTypes = value .validTypes .length > 0 ? value .validTypes .map ((x ) => ` • ${x } ` ).join (" \n " ) : " None" ;
193
- return ` Valid Types:\n ${validTypes } ` ;
194
- }
191
+ // function validTypesText(value: FrontendGraphInput): string {
192
+ // const validTypes = value.validTypes.length > 0 ? value.validTypes.map((x) => `• ${x}`).join("\n") : "None";
193
+ // return `Valid Types:\n${validTypes}`;
194
+ // }
195
195
196
196
function outputConnectedToText(output : FrontendGraphOutput ): string {
197
197
if (output .connectedTo .length === 0 ) return " Connected to nothing" ;
Original file line number Diff line number Diff line change @@ -197,8 +197,6 @@ export class FrontendGraphInput {
197
197
198
198
readonly resolvedType ! : string ;
199
199
200
- readonly validTypes ! : string [ ] ;
201
-
202
200
readonly connectedTo ! : string ;
203
201
}
204
202
You can’t perform that action at this time.
0 commit comments