feat: add data flow annotations to connections#17
Merged
trmquang93 merged 1 commit intomainfrom Mar 30, 2026
Merged
Conversation
Connections can now carry typed data items (name, type, description) that describe what information passes between screens. This closes the biggest gap in instruction generation -- AI agents now know exactly what parameters each screen receives. - Add dataFlow[] to connection data model (FILE_VERSION 10 -> 11) - New DataFlowEditor component for editing data items in modals - Integrate into ConnectionEditModal (navigate + conditional modes) - Integrate into HotspotModal (navigate, modal, API success/error, conditional) - Render teal pill badge on canvas for connections with data annotations - Add "Input Parameters" table per screen in generated screens.md - Add "Data" column to navigation.md connection table - Annotate wire items in tasks.md with passed parameters - Add data_flow parameter to MCP server create/update connection tools - Update user guide with data flow annotations documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
dataFlow: [{ name, type, description }]) describing what information passes between screensDataFlowEditorcomponent integrated into bothConnectionEditModalandHotspotModal(navigate, modal, API success/error, and conditional modes)screens.md, a "Data" column innavigation.md, and annotated wire items intasks.mdcreate_connectionandupdate_connectiontools acceptdata_flowparameterWhy
This is the single biggest gap in instruction generation. The flow captures where users navigate but not what data they carry. Without this, AI agents generate screens that don't receive the data they need, leading to broken navigation or redundant API calls.
Test plan
navigation.mdhas "Data" column andscreens.mdhas "Input Parameters" tables.drawdfile (v10) -- verify it loads without errors (dataFlow backfilled to[])create_connectionwithdata_flowparam, verify inlist_connectionsnpm run lintpassesnpm testpasses (271/271, excluding pre-existing @grida/refig issue)