-
Notifications
You must be signed in to change notification settings - Fork 33
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
[breadboard-ui] Visualize when a wire's input/output schemas are incompatible #2298
Open
Tracked by
#1818
Comments
This was referenced Jun 25, 2024
aomarks
added a commit
that referenced
this issue
Jun 28, 2024
Part of #2298 Just adding some type-safety.
aomarks
added a commit
that referenced
this issue
Jun 28, 2024
Adds a `validate` method to `InspectableEdge`. It grabs the schema for the from/to sides of the edge and calls `canConnect` to determine whether they are compatible. Includes a new Validation type so that we can add more structured data, detailed error messages, etc. Part of #2298
aomarks
added a commit
that referenced
this issue
Jul 2, 2024
This was referenced Jul 3, 2024
aomarks
added a commit
that referenced
this issue
Jul 3, 2024
Add fancy-json component for rendering JSON with configurable annotations. You give it a JSON value, and a list of annotations. The annotations are JSON paths (e.g. `["schema", "properties", 2, "type"]`) and some CSS part name. As we render values, we wrap them in `<span part="<PART>">` so that the parent component can then choose how to style those sub-trees. Part of #2298
aomarks
added a commit
that referenced
this issue
Jul 3, 2024
Add analyzeCanConnect method to InspectablePort which is like canConnect but with detailed error messages. Part of #2298
aomarks
added a commit
that referenced
this issue
Jul 3, 2024
… schema constraints (#2416) If a wire is invalid, and the "Show Port Tooltips" setting is enabled, then the port tooltip will now show which specific part of the schema is mismatched with the other port by rendering a red squiggly line under it. <img width="670" alt="image" src="https://github.com/breadboard-ai/breadboard/assets/48894/92c9440f-c729-4759-aec4-8f000097c137"> Part of #2298
Any chance we could not colour code it? But maybe put an 'x' or something similar on the wire or port? Update... Maybe ignore me. I saw a comment saying squiggles. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A precursor to #1729, since it will take some time to make sure all nodes and boards have fully correct types. We'll just show a wire as red (or some similar treatment) when the input and output schemas are not compatible.
The text was updated successfully, but these errors were encountered: