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

feat: add new node Input type for data in table format #2635

Merged
merged 55 commits into from
Jul 24, 2024
Merged

Commits on Jul 18, 2024

  1. feat: add Table component and related functionality

    This commit adds the Table component and related functionality to the codebase. The Table component is used to display tabular data and includes features such as pagination, row deletion, row duplication, and adding new rows. The TableOptions component is also added to provide options for resetting the grid and adding new rows. Additionally, the necessary types and interfaces are updated to support the Table component. This feature enhances the user experience by allowing them to interact with tabular data in a more intuitive way.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    d0b74dc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a904ae3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e4bb1d7 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2a28a32 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    94432a1 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    5e993a8 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    6482d8b View commit details
    Browse the repository at this point in the history
  8. feat: update Column model in table schema

    This commit updates the `Column` model in the table schema to include the `display_name` and `name` fields instead of `header` and `field`. It also adds validation for the `formatter` field to accept either a `FormatterType` enum value or a string. This change improves the clarity and flexibility of the table schema.
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    a9625b2 View commit details
    Browse the repository at this point in the history
  9. feat: add displayEmptyAlert prop to TableComponent

    This commit adds the `displayEmptyAlert` prop to the `TableComponent` in order to control whether an alert is displayed when the table has no data. By default, the alert will be shown, but it can be disabled by setting `displayEmptyAlert` to `false`. This feature enhances the flexibility of the table component by allowing users to customize the behavior when there are no rows in the table.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    b3be858 View commit details
    Browse the repository at this point in the history
  10. This commit improves the TableAutoCellRender component by adding supp…

    …ort for a custom formatter. The formatter can be specified as a prop and allows for rendering the cell value in different formats, such as JSON. This enhancement enhances the flexibility and customization options of the TableAutoCellRender component.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    27d33fb View commit details
    Browse the repository at this point in the history
  11. feat: add FormatColumns function to utils.ts

    This commit adds the `FormatColumns` function to `utils.ts` file. The function takes an array of `ColumnField` objects and returns an array of `ColDef` objects. It maps each `ColumnField` to a `ColDef` with properties like `headerName`, `field`, `sortable`, and `filter`. If a `ColumnField` has a `formatter` property, it sets the `cellDataType` or `cellRendererParams` accordingly. This function enhances the flexibility and customization options for formatting columns in the table.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ffe83aa View commit details
    Browse the repository at this point in the history
  12. feat: enhance TableNodeComponent with FormatColumns function

    This commit enhances the TableNodeComponent by utilizing the FormatColumns function from utils.ts. The FormatColumns function takes an array of ColumnField objects and returns an array of ColDef objects, allowing for flexible and customizable column formatting in the table. By integrating this function, the TableNodeComponent now has improved column handling capabilities.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2116ed4 View commit details
    Browse the repository at this point in the history
  13. chore: Update TableNodeComponent and TableComponent

    This commit updates the TableNodeComponent and TableComponent to improve column handling and customization options. The TableNodeComponent now utilizes the FormatColumns function from utils.ts, allowing for flexible and customizable column formatting in the table. The TableComponent now has a new prop, displayEmptyAlert, which controls whether an alert is displayed when the table has no data. These enhancements enhance the flexibility and customization options of the table components.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    2ff19a9 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    58e6c5b View commit details
    Browse the repository at this point in the history
  15. feat: Update TableNodeComponent and TableComponent

    This commit updates the TableNodeComponent and TableComponent to improve column handling and customization options. It utilizes the FormatColumns function from utils.ts for flexible and customizable column formatting in the table. The TableComponent now has a new prop, displayEmptyAlert, to control the display of an alert when the table has no data. These enhancements enhance the flexibility and customization options of the table components.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    86b1dfa View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    155ee70 View commit details
    Browse the repository at this point in the history
  17. feat: Enhance TableNodeComponent with duplicateRow function

    This commit enhances the TableNodeComponent by adding the duplicateRow function. This function allows users to duplicate selected rows in the table. When called, it clones the selected nodes and adds the duplicated rows to the table. This feature enhances the flexibility and customization options of the TableNodeComponent.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ffddc39 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    2a5a80b View commit details
    Browse the repository at this point in the history
  19. feat: Remove "text" from basic_types in FormatColumns function

    This commit removes the "text" value from the basic_types set in the FormatColumns function in utils.ts. The basic_types set is used to determine the column type for formatting in the table. By removing "text", we ensure that only "date" and "number" types are considered as basic types. This change improves the accuracy and consistency of column formatting in the table.
    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    caafa75 View commit details
    Browse the repository at this point in the history
  20. fix: alingment bug on AgGrid cell

    anovazzi1 authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    8ea5ecb View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    498bbb0 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    e24a8ee View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    c69509f View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    5f5b234 View commit details
    Browse the repository at this point in the history
  25. Creaed a TableModal component, that receives the props that are passe…

    …d to the Table, as well as a title, and creates a modal
    lucaseduoli authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    f7d5b68 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0dbf012 View commit details
    Browse the repository at this point in the history
  27. Fixed looks of TableModal

    lucaseduoli authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    56690e7 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    4df6b6d View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    1cfed20 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    924ec7f View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    5d1b6ec View commit details
    Browse the repository at this point in the history
  32. Added styling based on editNode

    lucaseduoli authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    e784a7b View commit details
    Browse the repository at this point in the history
  33. Added Auto Size to table modal

    lucaseduoli authored and ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    953b426 View commit details
    Browse the repository at this point in the history
  34. refactor: update TableOptions component styling and behavior

    - Update TableOptions component to dynamically apply text color based on selection
    - Remove unnecessary console.log statement
    - Improve hover behavior for the Trash2 icon
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    415c626 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    130cb0a View commit details
    Browse the repository at this point in the history
  36. feat: Add default values for sortable and filterable in Column model

    The code changes in `table.py` modify the `Column` model in the `langflow.schema` module. The `sortable` and `filterable` attributes of the `Column` model now have default values of `True`. This change ensures that new instances of the `Column` model will have these attributes set to `True` by default.
    
    Based on the recent user commits and repository commits, the commit message follows the established convention of using a prefix to indicate the type of change (`feat` for a new feature) and provides a clear and concise description of the changes made.
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    b959053 View commit details
    Browse the repository at this point in the history
  37. feat(utils.ts): add check for empty columns array in FormatColumns fu…

    …nction to prevent errors
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    5daab25 View commit details
    Browse the repository at this point in the history
  38. feat: Add validation for TableInput value in inputs.py

    The code changes in `inputs.py` add a validation function for the `value` attribute of the `TableInput` class. The function checks if the value is a list of dictionaries and raises a `ValueError` if it is not. This ensures that the `TableInput` instances have a valid value that is a list of dictionaries.
    
    Based on the recent user commits and repository commits, the commit message follows the established convention of using a prefix to indicate the type of change (`feat` for a new feature) and provides a clear and concise description of the changes made.
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    3fc5286 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    b5f6e85 View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    13c7c8a View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    1430e7d View commit details
    Browse the repository at this point in the history
  42. Configuration menu
    Copy the full SHA
    c9b398b View commit details
    Browse the repository at this point in the history
  43. feat(validate.py): add exception handling to catch and re-raise Valid…

    …ationError with a more informative error message
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    ec98ec8 View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    f39e3eb View commit details
    Browse the repository at this point in the history
  45. fix(validate.py): improve error message formatting in create_class fu…

    …nction
    
    Refactor the error message formatting in the `create_class` function in `validate.py` to improve readability and clarity. Instead of using a list comprehension to extract the error messages, the code now uses a nested list comprehension to split the error messages and extract the relevant information. This change ensures that the error message is properly formatted and provides more informative details about the validation errors.
    
    Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
    Co-authored-by: Lucas Oliveira <[email protected]>
    ogabrielluiz and lucaseduoli committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    8cf1311 View commit details
    Browse the repository at this point in the history
  46. feat: Update TableMixin to support TableSchema or list of Columns

    The TableMixin class in input_mixin.py has been updated to support either a TableSchema object or a list of Columns for the table_schema attribute. This change allows for more flexibility in defining the table schema for input validation.
    ogabrielluiz committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    88d0d94 View commit details
    Browse the repository at this point in the history
  47. feat: Update TableNodeComponent to generate backend columns from value

    Refactor the TableNodeComponent to generate backend columns from the value when the columns prop is not provided. This change ensures that the component can handle dynamic column generation based on the value, improving flexibility and usability.
    
    Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
    Co-authored-by: Lucas Oliveira <[email protected]>
    3 people committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    df98ae9 View commit details
    Browse the repository at this point in the history
  48. Refactor extractColumnsFromRows function to return only ColDef objects

    The extractColumnsFromRows function in utils.ts has been refactored to return only ColDef objects instead of a combination of ColDef and ColGroupDef objects. This change simplifies the function's return type and improves consistency in the codebase.
    
    Co-authored-by: Gabriel Luiz Freitas Almeida <[email protected]>
    Co-authored-by: Lucas Oliveira <[email protected]>
    3 people committed Jul 18, 2024
    Configuration menu
    Copy the full SHA
    264bd9f View commit details
    Browse the repository at this point in the history
  49. Configuration menu
    Copy the full SHA
    1b61987 View commit details
    Browse the repository at this point in the history
  50. Configuration menu
    Copy the full SHA
    46e61b5 View commit details
    Browse the repository at this point in the history

Commits on Jul 19, 2024

  1. refactor: Generate backend columns from value in TableNodeComponent

    Refactor the TableNodeComponent to generate backend columns from the value when the columns prop is not provided. This change ensures that the component can handle dynamic column generation based on the value, improving flexibility and usability.
    anovazzi1 committed Jul 19, 2024
    Configuration menu
    Copy the full SHA
    cdf240e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bb04ddc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    00575c3 View commit details
    Browse the repository at this point in the history

Commits on Jul 22, 2024

  1. Configuration menu
    Copy the full SHA
    f9ad887 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    94a0970 View commit details
    Browse the repository at this point in the history