fix: update model viz to work with latest language - #6
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
There was a problem hiding this comment.
Pull request overview
This PR updates the model visualizer to stay compatible with the latest OpenFGA language package by aligning the backend’s translated node/edge types and updating the UI’s operator-node detection.
Changes:
- Bump
github.com/openfga/language/pkg/gotov0.3.1and refresh related indirect dependencies. - Extend backend translation to emit updated node/edge type strings (including new logical grouping types).
- Update the UI to treat
"OperatorNode"as the operator node type.
Reviewed changes
Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| ui/index.html | Updates operator-node detection to match the backend’s new NodeType string value. |
| cmd/main.go | Updates translated node/edge type strings and adds support for new language graph node/edge variants. |
| go.mod | Bumps Go version and updates the language dependency plus indirect requirements. |
| go.sum | Updates dependency checksums consistent with the module upgrades. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
What problem is being solved?
Latest language has updated types. Updated the language package and added the types so they can be rendered.
Old:

New:

References
Review Checklist
main