The `GenericNode` component in `index.tsx` has been updated to include an import statement for the `priorityFields` constant from `constants.ts`. This constant is a `Set` containing the field names "code" and "template".
In the `sort` function of the `GenericNode` component, the logic has been modified to check if a field name is present in the `priorityFields` set. If so, it gives higher priority to that field during sorting. This change improves the sorting logic in the component.
The `constants.ts` file has also been updated to include the `priorityFields` constant.
fix(GradientSparkles): add new icon component "GradientUngroup" to render the "Ungroup" icon with gradient stroke
fix(ComponentsComponent): add TODO comment to create a placeholder for when there are no components created yet
fix(styleUtils): import and use the new "GradientUngroup" icon component for the "group_components" icon in nodeIconsLucide
The `removeFileNameFromComponents` function is added to remove the file name from the components in the `clonedFlow` object before creating the data URI. This ensures that the file name is not included in the exported flow data.
refactor(genericModal/index.tsx): fix formatting of genericModalPropsType
The formatting of the `genericModalPropsType` interface is fixed to improve readability and maintain consistency with the codebase.
feat(parameterComponent): add support for process.env.PORT environment variable to be able to run app on a configurable port
fix(PageComponent): add conditional logic to fit the view based on the number of nodes in the flow
🔧 refactor(custom_component.py): refactor get_code_tree method to use the _tree attribute
🔧 refactor(custom_component.py): refactor get_build_method method to use the tree attribute
🔧 refactor(custom_component.py): refactor get_main_class_name method to use the tree attribute
🔧 refactor(custom_component.py): refactor build_template_config method to use the tree attribute
🔧 refactor(custom_component.py): refactor load_flow method to use import statement on separate lines for better readability
🐛 fix(code_parser.py): fix import formatting to improve readability
✨ feat(code_parser.py): add support for parsing function arguments and body in function or method nodes