fix: makes action title follow the flow name after editing to old title#8293
Conversation
…instead of assigning the immediate name
WalkthroughThe changes update the logic for processing Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🔇 Additional comments (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
…le (langflow-ai#8293) * Set names and descriptions as empty to get from flow name when empty instead of assigning the immediate name * Changed to compare already parsed values * changed parseString to return empty when the string is empty or have only spaces
This pull request refactors the string parsing logic in the
ToolsTablecomponent and enhances theparseStringutility function to handle edge cases more robustly. The changes improve code clarity and ensure consistent behavior when processing empty or blank strings.Refactoring in
ToolsTablecomponent:nameanddisplay_namefields inToolsTableto improve readability and ensure thatnameanddisplay_nameare parsed separately before comparison. Updated theprocessedValueandprocessedDescriptionlogic to handle cases where fields are empty or identical, with additional consideration for theisActionflag. (src/frontend/src/modals/toolsModal/components/toolsTable/index.tsx, src/frontend/src/modals/toolsModal/components/toolsTable/index.tsxL83-R107)Enhancements to
parseStringutility:parseStringfunction to return an empty string if the input string is empty or if theno_blankparser is included and the string contains only whitespace. This ensures more robust handling of edge cases during string manipulation. (src/frontend/src/utils/stringManipulation.ts, src/frontend/src/utils/stringManipulation.tsR81-R88)Summary by CodeRabbit