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
feat(shareModal): add logic to remove file names from flows before sharing to improve privacy and security
feat(reactflowUtils): add removeFileNameFromComponents function to recursively remove file names from flow components
The checkFileType function in the InputFileComponent component now handles the case when the fileTypes prop is undefined. This prevents an error from occurring when checking the file type of the selected file.
fix(shareModal/index.tsx): import has function from lodash to fix missing import error
fix(shareModal/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): add hasStore to the list of dependencies in useEffect to fix missing dependency warning
fix(extraSidebarComponent/index.tsx): disable share button if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(extraSidebarComponent/index.tsx): disable share button in ShareModal if hasStore is false to prevent sharing without a store
fix(nodeToolbarComponent/index.tsx): add hasStore to the list of dependencies to fix missing dependency warning
fix(nodeToolbarComponent/index.tsx): disable share option in SelectItem if hasStore is false to prevent sharing without a store
fix(genericModal/index.tsx): fix condition for checking if inputVariables is empty or null
refactor(genericModal/index.tsx): remove unnecessary code and reorganize code logic in the validatePrompt function
chore(tagsSelectorComponent): add darkContext to useContext hook to access dark mode state
chore(tagsSelectorComponent): add className conditionally based on dark mode state to fade-container div
chore(shareModal): change initial state of checked variable to false
chore(shareModal): add saveFlow function to useContext hook to access saveFlow function from FlowsContext
chore(shareModal): add saveFlow function call to saveFlowStore function call to save flow data to store
chore(shareModal): add saveFlow function call to addFlow function call to add flow to FlowsContext
chore(shareModal): set checked variable to false when sharePublic state changes
chore(shareModal): disable save with my API keys checkbox when sharePublic is true
chore(shareModal): add warning message about deselecting save with my API keys checkbox
chore(components): add resetFilter function to reset filter state variables and set allData to original flows data
chore(components): call resetFilter function when flow is deleted to reset filter state variables and set allData to original flows data
chore(applies.css): rearrange classes in community-page-arrangement to match order of properties
chore(applies.css): add fade-container-dark class to handle dark mode for fade-container div
chore(applies.css): add linear gradient background color for fade-container-dark class to handle dark mode