File tree Expand file tree Collapse file tree
editor/src/messages/portfolio/document Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,8 +59,6 @@ pub struct FrontendGraphInput {
5959 pub description : String ,
6060 #[ serde( rename = "resolvedType" ) ]
6161 pub resolved_type : String ,
62- #[ serde( rename = "validTypes" ) ]
63- pub valid_types : Vec < String > ,
6462 #[ serde( rename = "connectedTo" ) ]
6563 /// Either "nothing", "import index {index}", or "{node name} output {output_index}".
6664 pub connected_to : String ,
Original file line number Diff line number Diff line change @@ -663,20 +663,19 @@ impl NodeNetworkInterface {
663663 } ;
664664
665665 // TODO: Move in separate Tooltip overlay
666- let valid_types = match self . valid_input_types ( & input_connector, network_path) {
667- Ok ( input_types) => input_types. iter ( ) . map ( |ty| ty. to_string ( ) ) . collect ( ) ,
668- Err ( e) => {
669- log:: error!( "Error getting valid types for input {input_connector:?}: {e}" ) ;
670- Vec :: new ( )
671- }
672- } ;
666+ // let valid_types = match self.valid_input_types(&input_connector, network_path) {
667+ // Ok(input_types) => input_types.iter().map(|ty| ty.to_string()).collect(),
668+ // Err(e) => {
669+ // log::error!("Error getting valid types for input {input_connector:?}: {e}");
670+ // Vec::new()
671+ // }
672+ // };
673673
674674 Some ( FrontendGraphInput {
675675 data_type,
676676 resolved_type,
677677 name,
678678 description,
679- valid_types,
680679 connected_to,
681680 } )
682681 }
Original file line number Diff line number Diff line change 177177 }
178178
179179 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 " ;
181181 }
182182
183183 function outputTooltip(value : FrontendGraphOutput ): string {
188188 return ` Data Type: ${value .resolvedType } ` ;
189189 }
190190
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+ // }
195195
196196 function outputConnectedToText(output : FrontendGraphOutput ): string {
197197 if (output .connectedTo .length === 0 ) return " Connected to nothing" ;
Original file line number Diff line number Diff line change @@ -195,8 +195,6 @@ export class FrontendGraphInput {
195195
196196 readonly resolvedType ! : string ;
197197
198- readonly validTypes ! : string [ ] ;
199-
200198 readonly connectedTo ! : string ;
201199}
202200
You can’t perform that action at this time.
0 commit comments