feat: option to hide a column in frontend when defining a Table Input, hides Tool identifier from table display (#6222)

* added changes to hide fields from table input

* [autofix.ci] apply automated fixes

---------

Co-authored-by: anovazzi1 <otavio2204@gmail.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Edwin Jose 2025-02-11 11:40:12 -05:00 • committed by GitHub
commit d1402b888f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 65 additions and 52 deletions

View file

@ -12,6 +12,7 @@ TOOL_TABLE_SCHEMA = [
"sortable": False,
"filterable": False,
"edit_mode": EditMode.INLINE,
"hidden": False,
},
{
"name": "description",
@ -21,6 +22,7 @@ TOOL_TABLE_SCHEMA = [
"sortable": False,
"filterable": False,
"edit_mode": EditMode.POPOVER,
"hidden": False,
},
{
"name": "tags",
@ -31,6 +33,7 @@ TOOL_TABLE_SCHEMA = [
"sortable": False,
"filterable": False,
"edit_mode": EditMode.INLINE,
"hidden": True,
},
]

View file

@ -30,6 +30,7 @@ class Column(BaseModel):
default: str | None = None
disable_edit: bool = Field(default=False)
edit_mode: EditMode | None = Field(default=EditMode.MODAL)
hidden: bool = Field(default=False)
@model_validator(mode="after")
def set_display_name(self):