-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Commits on Jul 18, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for d0b74dc - Browse repository at this point
Copy the full SHA d0b74dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for a904ae3 - Browse repository at this point
Copy the full SHA a904ae3View commit details -
Configuration menu - View commit details
-
Copy full SHA for e4bb1d7 - Browse repository at this point
Copy the full SHA e4bb1d7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a28a32 - Browse repository at this point
Copy the full SHA 2a28a32View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94432a1 - Browse repository at this point
Copy the full SHA 94432a1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5e993a8 - Browse repository at this point
Copy the full SHA 5e993a8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6482d8b - Browse repository at this point
Copy the full SHA 6482d8bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for a9625b2 - Browse repository at this point
Copy the full SHA a9625b2View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b3be858 - Browse repository at this point
Copy the full SHA b3be858View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 27d33fb - Browse repository at this point
Copy the full SHA 27d33fbView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ffe83aa - Browse repository at this point
Copy the full SHA ffe83aaView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2116ed4 - Browse repository at this point
Copy the full SHA 2116ed4View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 2ff19a9 - Browse repository at this point
Copy the full SHA 2ff19a9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 58e6c5b - Browse repository at this point
Copy the full SHA 58e6c5bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 86b1dfa - Browse repository at this point
Copy the full SHA 86b1dfaView commit details -
Configuration menu - View commit details
-
Copy full SHA for 155ee70 - Browse repository at this point
Copy the full SHA 155ee70View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for ffddc39 - Browse repository at this point
Copy the full SHA ffddc39View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2a5a80b - Browse repository at this point
Copy the full SHA 2a5a80bView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for caafa75 - Browse repository at this point
Copy the full SHA caafa75View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8ea5ecb - Browse repository at this point
Copy the full SHA 8ea5ecbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 498bbb0 - Browse repository at this point
Copy the full SHA 498bbb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e24a8ee - Browse repository at this point
Copy the full SHA e24a8eeView commit details -
Configuration menu - View commit details
-
Copy full SHA for c69509f - Browse repository at this point
Copy the full SHA c69509fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5f5b234 - Browse repository at this point
Copy the full SHA 5f5b234View commit details -
Creaed a TableModal component, that receives the props that are passe…
…d to the Table, as well as a title, and creates a modal
Configuration menu - View commit details
-
Copy full SHA for f7d5b68 - Browse repository at this point
Copy the full SHA f7d5b68View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0dbf012 - Browse repository at this point
Copy the full SHA 0dbf012View commit details -
Configuration menu - View commit details
-
Copy full SHA for 56690e7 - Browse repository at this point
Copy the full SHA 56690e7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4df6b6d - Browse repository at this point
Copy the full SHA 4df6b6dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cfed20 - Browse repository at this point
Copy the full SHA 1cfed20View commit details -
Configuration menu - View commit details
-
Copy full SHA for 924ec7f - Browse repository at this point
Copy the full SHA 924ec7fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5d1b6ec - Browse repository at this point
Copy the full SHA 5d1b6ecView commit details -
Configuration menu - View commit details
-
Copy full SHA for e784a7b - Browse repository at this point
Copy the full SHA e784a7bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 953b426 - Browse repository at this point
Copy the full SHA 953b426View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 415c626 - Browse repository at this point
Copy the full SHA 415c626View commit details -
chore: Remove unnecessary imports and initialize empty columns array …
…in TableNodeComponent
Configuration menu - View commit details
-
Copy full SHA for 130cb0a - Browse repository at this point
Copy the full SHA 130cb0aView commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for b959053 - Browse repository at this point
Copy the full SHA b959053View commit details -
feat(utils.ts): add check for empty columns array in FormatColumns fu…
…nction to prevent errors
Configuration menu - View commit details
-
Copy full SHA for 5daab25 - Browse repository at this point
Copy the full SHA 5daab25View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 3fc5286 - Browse repository at this point
Copy the full SHA 3fc5286View commit details -
Configuration menu - View commit details
-
Copy full SHA for b5f6e85 - Browse repository at this point
Copy the full SHA b5f6e85View commit details -
Configuration menu - View commit details
-
Copy full SHA for 13c7c8a - Browse repository at this point
Copy the full SHA 13c7c8aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1430e7d - Browse repository at this point
Copy the full SHA 1430e7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9b398b - Browse repository at this point
Copy the full SHA c9b398bView commit details -
feat(validate.py): add exception handling to catch and re-raise Valid…
…ationError with a more informative error message
Configuration menu - View commit details
-
Copy full SHA for ec98ec8 - Browse repository at this point
Copy the full SHA ec98ec8View commit details -
Configuration menu - View commit details
-
Copy full SHA for f39e3eb - Browse repository at this point
Copy the full SHA f39e3ebView commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 8cf1311 - Browse repository at this point
Copy the full SHA 8cf1311View commit details -
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.
Configuration menu - View commit details
-
Copy full SHA for 88d0d94 - Browse repository at this point
Copy the full SHA 88d0d94View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for df98ae9 - Browse repository at this point
Copy the full SHA df98ae9View commit details -
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]>
Configuration menu - View commit details
-
Copy full SHA for 264bd9f - Browse repository at this point
Copy the full SHA 264bd9fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 1b61987 - Browse repository at this point
Copy the full SHA 1b61987View commit details -
Configuration menu - View commit details
-
Copy full SHA for 46e61b5 - Browse repository at this point
Copy the full SHA 46e61b5View commit details
Commits on Jul 19, 2024
-
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.
Configuration menu - View commit details
-
Copy full SHA for cdf240e - Browse repository at this point
Copy the full SHA cdf240eView commit details -
Configuration menu - View commit details
-
Copy full SHA for bb04ddc - Browse repository at this point
Copy the full SHA bb04ddcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 00575c3 - Browse repository at this point
Copy the full SHA 00575c3View commit details
Commits on Jul 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f9ad887 - Browse repository at this point
Copy the full SHA f9ad887View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94a0970 - Browse repository at this point
Copy the full SHA 94a0970View commit details