Currently, the display configurations for functions, variables, rules, and data samples are written directly into the contract view. This makes it difficult to navigate the file due to its size, and impossible to re-use the render logic to preview new suggestions.
Proposed Solution
Create separate components for each display configuration
FunctionDisplay
VariableDisplay
RuleDisplay
DataSampleDisplay
Render these components in the contract view
This will prepare us for a future feature where users can preview AI response before accepting them, as well as add manifest parts manually using the same render.
Problem Description
Currently, the display configurations for functions, variables, rules, and data samples are written directly into the contract view. This makes it difficult to navigate the file due to its size, and impossible to re-use the render logic to preview new suggestions.
Proposed Solution
This will prepare us for a future feature where users can preview AI response before accepting them, as well as add manifest parts manually using the same render.