Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the node catalog, originating from a wire dropped in the graph, filter for valid types #2423

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

singhutsav5502
Copy link
Contributor

@singhutsav5502 singhutsav5502 commented Mar 11, 2025

Add InputType based filtering capabilites to NodeCatalog.

  • Send InputTypes through SendUiMetadata under nodeTypes.
  • Update NodeCatalog.svelte component to support type based filtering.
  • Update ContextMenuData to support compatibleType as an input to the searchTerm for the NodeCatalog.
  • Update Graph.svelte component to support new ContextMenuData enum types.
  • Send CompatibleType data from rust backend on wire drag and release to NodeCatalog to already show filtered data.

Adds functionality to open NodeCatalog on DoubleClick input ( in empty node graph area. )

Closes #2359

Send InputTypes through SendUiMetadata under
odeTypes.
Update NodeCatalog.svelte component to support 	ype based filtering.
Update ContextMenuData to support compatibleType as an input to the searchTerm for the NodeCatalog.
Update Graph.svelte component to support new ContextMenuData enum types.
Send CompatibleType data from rust backend on wire drag and release to NodeCatalog to already show filtered data.
Send InputTypes through SendUiMetadata under
odeTypes.
Update NodeCatalog.svelte component to support 	ype based filtering.
Update ContextMenuData to support compatibleType as an input to the searchTerm for the NodeCatalog.
Update Graph.svelte component to support new ContextMenuData enum types.
Send CompatibleType data from rust backend on wire drag and release to NodeCatalog to already show filtered data.
@singhutsav5502
Copy link
Contributor Author

@Keavon @0HyperCube please review.

@singhutsav5502 singhutsav5502 changed the title Add Node InputType based filtering capabilites to NodeCatalog. Add Node InputType based filtering capabilites to NodeCatalog. ( and open NodeCatalog on double click. ) Mar 12, 2025
@Keavon Keavon changed the title Add Node InputType based filtering capabilites to NodeCatalog. ( and open NodeCatalog on double click. ) Make the node catalog, originating from a wire dropped in the graph, filter for valid types Mar 12, 2025
@singhutsav5502
Copy link
Contributor Author

Hi, it passes the test after merge as well.

@singhutsav5502
Copy link
Contributor Author

Hi, @Keavon please review.

Copy link

📦 Build Complete for 4528a8c
https://58af6b84.graphite.pages.dev

Copy link
Member

@0HyperCube 0HyperCube left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your work so far on this @singhutsav5502.

@@ -82,7 +99,7 @@
</script>

<div class="node-catalog">
<TextInput placeholder="Search Nodes..." value={searchTerm} on:value={({ detail }) => (searchTerm = detail)} bind:this={nodeSearchInput} />
<TextInput placeholder="Search Nodes... (or type:InputType)" value={searchTerm} on:value={({ detail }) => (searchTerm = detail)} bind:this={nodeSearchInput} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure of the UX of having the type as the search term. This prevents the user from further filtering down the options.

For example vector data is used by many nodes (and more will be added over time), so the user may wish to further filter them with a keyword.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @0HyperCube pushed code changes that adds support for simultaneous type, category and node name search.

@Keavon
Copy link
Member

Keavon commented Mar 17, 2025

Marking as a draft while awaiting changes. Please switch back when ready.

… sending metadata.

Update NodeCatalog Search filter to support single type search alongside name and category search
@singhutsav5502
Copy link
Contributor Author

Hi @Keavon pushed some changes, that should close this issue unless i overlooked something.

@singhutsav5502 singhutsav5502 marked this pull request as ready for review March 17, 2025 20:12
…Update missing categories and make sure to remove nodes with empty categories
@singhutsav5502
Copy link
Contributor Author

Hi, @0HyperCube please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node Graph UX: improved discoverability through type-based suggestions
3 participants