Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Folders, Logs, Records Output and more #1938

Merged
merged 249 commits into from
May 21, 2024
Merged

Conversation

anovazzi1
Copy link
Contributor

Pull Request Description

Summary

This pull request introduces a significant update to the project, primarily focused on enhancing folder management and related functionalities.

Features and Enhancements

  1. Folder Model and Related Classes

    • Added a new Folder model to manage user folders.
    • Introduced related classes to support folder operations.
  2. Default Folder Creation

    • Implemented automatic creation of a default folder for new users to improve user experience.
  3. Logging System Enhancements

    • Added a Logs button to the MenuBar and implemented a Logs modal with tabs for better log management and viewing.
    • Refactored the log_transaction function to include the flow_id parameter, enabling more precise log tracking.
    • Updated the FlowLogsModal component to fetch and display messages in a table format, improving log visualization.
  4. Records Output - New Type of Output

    • Introduced the Record Output component to handle new types of outputs.
    • Added components such as ArrayReader, NumberReader, and ObjectRender for rendering different data types within records.
    • Enhanced the RecordsOutputComponent to use extracted columns from the records, allowing for more flexible and detailed data presentation.
    • Updated RecordsOutput to expect objects instead of strings, improving data handling and output accuracy.
  5. Refactoring and Code Cleanup

    • Extensive refactoring of existing code to improve readability, maintainability, and performance.
    • Removed unnecessary whitespace and redundant code across multiple files.
    • Updated various components to use more efficient and cleaner code practices.

Commits Overview

  • Folder Management Enhancements:

    • Introduced a new Folder model and related functionalities.
    • Automated default folder creation for new users.
    • Refactored folder-related API endpoints and models.
  • Logging System Enhancements:

    • Added a Logs button and modal with tabs for improved log management.
    • Enhanced log tracking with the inclusion of flow_id in log_transaction.
  • Records Output - New Type of Output:

    • Implemented a new component to handle and present various record outputs.
    • Improved data presentation and handling in the RecordsOutputComponent.
  • User Interface Updates:

    • Improved various UI components for a better user experience.
    • Added new components like FolderForms and TableAutoCellRender.
  • Code Refactoring:

    • Cleaned up and optimized existing code.
    • Improved readability and maintainability by removing redundant code and unnecessary whitespace.

This pull request brings substantial improvements to the folder management system, logging capabilities, records output handling, and overall user experience, ensuring smoother operations and a more intuitive interface for managing folders and related data.

ogabrielluiz and others added 30 commits May 7, 2024 11:21
…sion 7.51.4 to ensure compatibility with other packages and improve functionality
Cristhianzl and others added 18 commits May 21, 2024 11:57
…nagerStore to update flows after loading folders
…and useGlobalVariablesStore hooks

📝 (mainPage/index.tsx): remove unused import and useEffect hook that fetches folders
♻️ (temp): delete unused temp folder
…flows" to improve consistency and clarity

✨ (mainPage/index.tsx): add call to getFoldersApi on page load to ensure folders are up to date
🐛 (chatInputOutput.spec.ts): fix selector for input-openai_api_key to use popover-anchor-input-openai_api_key
🐛 (chatInputOutput.spec.ts): fix selector for input-sender_name to use popover-anchor-input-sender_name
♻️ (chatInputOutput.spec.ts): refactor code to improve readability and remove unnecessary code
♻️ (folders.spec.ts): refactor code to improve readability and remove unnecessary code

✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements to match changes in the frontend code
✨ (inputComponent.spec.ts): update selectors for input elements

🐛 (tweaks_test.spec.ts): fix selectors for input fields to match updated HTML structure
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary comma at the end of the function
🐛 (api.tsx): remove unnecessary
… accessibility improvement

✨ (deleteComponentFlows.spec.ts): update delete flow and delete component tests to use checkbox component instead of hovering over card and clicking trash icon for better test stability and reliability
✨ (group.spec.ts): update group node test to use popover anchor input for editing group title instead of directly editing the title for better test stability and reliability
✨ (logs.spec.ts): update logs test to click on "New Project" button by text instead of using locator for better test stability and reliability
…ments and pressing the Escape key

♻️ (folders.spec.ts): refactor code to improve readability and remove unused variables
✨ (folders.spec.ts): add test to verify the ability to change the flow folder
…s to an empty list instead of raising a 404 error
…er` to improve clarity and consistency with the endpoint URL
🔧 (use-on-file-drop.tsx): update import statements for API controllers and services
♻️ (use-on-file-drop.tsx): refactor uploadFromDragCard function to use updateFlowInDatabase function instead of moveFlowToFolder function
♻️ (index.ts): refactor updateFlowInDatabase function to handle null folder_id values correctly
♻️ (index.tsx): refactor HomePage component to remove unnecessary setTimeout function and reduce delay for getFoldersApi function call
Copy link

vercel bot commented May 21, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
langflow ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 9:25pm

@dosubot dosubot bot added size:XL This PR changes 500-999 lines, ignoring generated files. enhancement New feature or request python Pull requests that update Python code labels May 21, 2024
@anovazzi1 anovazzi1 merged commit dd5bad0 into dev May 21, 2024
5 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code size:XL This PR changes 500-999 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants