feat: update diagram layout #490
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces multiple updates across the project, focusing on enhancing configuration flexibility, improving the editor's UI/UX, and refactoring code for better maintainability. Key changes include updates to environment variables, UI components, and graph rendering logic.
Configuration Updates:
.envto increase theNEXT_PUBLIC_NODE_LIMITfrom 600 to 800 and added a newNEXT_PUBLIC_DISABLE_EXTERNAL_MODEvariable in.env.development. These changes allow for more flexibility in node limits and external mode behavior. [1] [2]README.mdto document how to modify theNEXT_PUBLIC_NODE_LIMITvalue.UI/UX Improvements:
BottomBarwith a dropdown menu for selecting file formats, improving usability. [1] [2]ExternalModemodal with an accordion-based FAQ and removed the previous styled alert, making the dialog more user-friendly and informative.SearchInputplaceholder to dynamically display the correct hotkey based on the user's operating system. [1] [2]Refactoring and Code Simplification:
CustomEdgein the graph view to useedgesfrom the state for determining the target node, replacing DOM-based logic for better reliability.ObjectNodeto use a more structured approach for rendering rows, replacing theValuetuple with aNodeData-based structure. This improves clarity and maintainability. [1] [2]Data and Styling Updates:
example.json) containing structured information about fruits, which can be used for testing or demonstration purposes.