AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(tables): ui improvement (#16448)
Talal Jaber0414f05548a9
diff --git a/bun.lock b/bun.lockindex be30c82e223..a4947b5b39b 100644--- a/bun.lock+++ b/bun.lock@@ -10814,7 +10814,7 @@},"packages/pieces/core/tables": {"name": "@activepieces/piece-tables",- "version": "0.5.3",+ "version": "0.6.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/core/tables/package.json b/packages/pieces/core/tables/package.jsonindex 778a78d7b8f..de85d1c059c 100644--- a/packages/pieces/core/tables/package.json+++ b/packages/pieces/core/tables/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-tables",- "version": "0.5.3",+ "version": "0.6.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/core/tables/src/i18n/de.json b/packages/pieces/core/tables/src/i18n/de.jsonindex 3609b1ffb68..b5ad77cfcbc 100644--- a/packages/pieces/core/tables/src/i18n/de.json+++ b/packages/pieces/core/tables/src/i18n/de.json@@ -41,5 +41,6 @@"Record Deleted": "Eintrag gelöscht","Triggers when a new record is added to the selected table.": "Wird ausgelöst, wenn ein neuer Datensatz zur ausgewählten Tabelle hinzugefügt wird.","Triggers when a record is updated in the selected table.": "Wird ausgelöst, wenn ein Datensatz in der ausgewählten Tabelle aktualisiert wird.",- "Triggers when a record is deleted from the selected table.": "Wird ausgelöst, wenn ein Datensatz aus der ausgewählten Tabelle gelöscht wird."+ "Triggers when a record is deleted from the selected table.": "Wird ausgelöst, wenn ein Datensatz aus der ausgewählten Tabelle gelöscht wird.",+ "Empty fields keep their current value.": "Leere Felder behalten ihren aktuellen Wert."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/es.json b/packages/pieces/core/tables/src/i18n/es.jsonindex 64952cab035..66ef58e2031 100644--- a/packages/pieces/core/tables/src/i18n/es.json+++ b/packages/pieces/core/tables/src/i18n/es.json@@ -41,5 +41,6 @@"Record Deleted": "Registro eliminado","Triggers when a new record is added to the selected table.": "Se activa cuando se añade un nuevo registro a la tabla seleccionada.","Triggers when a record is updated in the selected table.": "Se activa cuando un registro se actualiza en la tabla seleccionada.",- "Triggers when a record is deleted from the selected table.": "Se activa cuando se elimina un registro de la tabla seleccionada."+ "Triggers when a record is deleted from the selected table.": "Se activa cuando se elimina un registro de la tabla seleccionada.",+ "Empty fields keep their current value.": "Los campos vacíos conservan su valor actual."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/fr.json b/packages/pieces/core/tables/src/i18n/fr.jsonindex 7ec33de6a68..67e82700fd1 100644--- a/packages/pieces/core/tables/src/i18n/fr.json+++ b/packages/pieces/core/tables/src/i18n/fr.json@@ -41,5 +41,6 @@"Record Deleted": "Enregistrement supprimé","Triggers when a new record is added to the selected table.": "Déclenche lorsqu'un nouvel enregistrement est ajouté à la table sélectionnée.","Triggers when a record is updated in the selected table.": "Déclenche lorsqu'un enregistrement est mis à jour dans le tableau sélectionné.",- "Triggers when a record is deleted from the selected table.": "Déclenche lorsqu'un enregistrement est supprimé de la table sélectionnée."+ "Triggers when a record is deleted from the selected table.": "Déclenche lorsqu'un enregistrement est supprimé de la table sélectionnée.",+ "Empty fields keep their current value.": "Les champs vides conservent leur valeur actuelle."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/id.json b/packages/pieces/core/tables/src/i18n/id.jsonindex 481dccc0735..ecd0bb5f453 100644--- a/packages/pieces/core/tables/src/i18n/id.json+++ b/packages/pieces/core/tables/src/i18n/id.json@@ -28,5 +28,6 @@"Record Deleted": "Record Deleted","Triggers when a new record is added to the selected table.": "Triggers when a new record is added to the selected table.","Triggers when a record is updated in the selected table.": "Triggers when a record is updated in the selected table.",- "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table."+ "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table.",+ "Empty fields keep their current value.": "Kolom yang kosong mempertahankan nilainya saat ini."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/ja.json b/packages/pieces/core/tables/src/i18n/ja.jsonindex c4fa90eb213..e24f3eccaee 100644--- a/packages/pieces/core/tables/src/i18n/ja.json+++ b/packages/pieces/core/tables/src/i18n/ja.json@@ -41,5 +41,6 @@"Record Deleted": "レコードの削除","Triggers when a new record is added to the selected table.": "選択したテーブルに新しいレコードが追加されたときに、フローを開始します。","Triggers when a record is updated in the selected table.": "選択したテーブルでレコードが更新されたときに、フローを開始します。",- "Triggers when a record is deleted from the selected table.": "選択したテーブルからレコードが削除されたときに、フローを開始します。"+ "Triggers when a record is deleted from the selected table.": "選択したテーブルからレコードが削除されたときに、フローを開始します。",+ "Empty fields keep their current value.": "空欄のフィールドは現在の値のままです。"}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/nl.json b/packages/pieces/core/tables/src/i18n/nl.jsonindex 1e45d2562f5..177f9868342 100644--- a/packages/pieces/core/tables/src/i18n/nl.json+++ b/packages/pieces/core/tables/src/i18n/nl.json@@ -41,5 +41,6 @@"Record Deleted": "Record verwijderd","Triggers when a new record is added to the selected table.": "Activeert wanneer een nieuwe record wordt toegevoegd aan de geselecteerde tabel.","Triggers when a record is updated in the selected table.": "Activeert wanneer een record wordt bijgewerkt in de geselecteerde tabel.",- "Triggers when a record is deleted from the selected table.": "Activeert wanneer een record wordt verwijderd uit de geselecteerde tabel."+ "Triggers when a record is deleted from the selected table.": "Activeert wanneer een record wordt verwijderd uit de geselecteerde tabel.",+ "Empty fields keep their current value.": "Lege velden behouden hun huidige waarde."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/pt.json b/packages/pieces/core/tables/src/i18n/pt.jsonindex 017a08815b4..e69b7892dd1 100644--- a/packages/pieces/core/tables/src/i18n/pt.json+++ b/packages/pieces/core/tables/src/i18n/pt.json@@ -41,5 +41,6 @@"Record Deleted": "Registro Excluído","Triggers when a new record is added to the selected table.": "Dispara quando um novo registro é adicionado à tabela selecionada.","Triggers when a record is updated in the selected table.": "Dispara quando um registro é atualizado na tabela selecionada.",- "Triggers when a record is deleted from the selected table.": "Dispara quando um registro é excluído da tabela selecionada."+ "Triggers when a record is deleted from the selected table.": "Dispara quando um registro é excluído da tabela selecionada.",+ "Empty fields keep their current value.": "Campos vazios mantêm o valor atual."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/ru.json b/packages/pieces/core/tables/src/i18n/ru.jsonindex 3c3d5f7d2df..db556b1729f 100644--- a/packages/pieces/core/tables/src/i18n/ru.json+++ b/packages/pieces/core/tables/src/i18n/ru.json@@ -28,5 +28,6 @@"Record Deleted": "Запись удалена","Triggers when a new record is added to the selected table.": "Включает при добавлении новой записи в выбранную таблицу.","Triggers when a record is updated in the selected table.": "Включает при обновлении записи в выбранной таблице.",- "Triggers when a record is deleted from the selected table.": "Включает при удалении записи из выбранной таблицы."+ "Triggers when a record is deleted from the selected table.": "Включает при удалении записи из выбранной таблицы.",+ "Empty fields keep their current value.": "Пустые поля сохраняют текущее значение."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/translation.json b/packages/pieces/core/tables/src/i18n/translation.jsonindex 6c17e8bfa13..abb3b0f3acd 100644--- a/packages/pieces/core/tables/src/i18n/translation.json+++ b/packages/pieces/core/tables/src/i18n/translation.json@@ -24,6 +24,7 @@"Records as JSON": "Records as JSON","Record IDs": "Record IDs","Record ID": "Record ID",+ "Markdown": "Markdown","Filters": "Filters","Limit": "Limit","Include Headers": "Include Headers",@@ -32,6 +33,7 @@"Array of objects keyed by field name. Overrides the form above.": "Array of objects keyed by field name. Overrides the form above.","Usually mapped from a Find Records step or a table trigger.": "Usually mapped from a Find Records step or a table trigger.","Usually comes from a Find Records step or a table trigger.": "Usually comes from a Find Records step or a table trigger.",+ "Empty fields keep their current value.": "Empty fields keep their current value.","Leave a field empty to keep its current value.": "Leave a field empty to keep its current value.","All conditions must match. Empty returns every record.": "All conditions must match. Empty returns every record.","Maximum records to return. Empty returns all records.": "Maximum records to return. Empty returns all records.",diff --git a/packages/pieces/core/tables/src/i18n/vi.json b/packages/pieces/core/tables/src/i18n/vi.jsonindex c7e7ad995bd..6a1c8c1b01b 100644--- a/packages/pieces/core/tables/src/i18n/vi.json+++ b/packages/pieces/core/tables/src/i18n/vi.json@@ -28,5 +28,6 @@"Record Deleted": "Record Deleted","Triggers when a new record is added to the selected table.": "Triggers when a new record is added to the selected table.","Triggers when a record is updated in the selected table.": "Triggers when a record is updated in the selected table.",- "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table."+ "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table.",+ "Empty fields keep their current value.": "Các trường để trống sẽ giữ nguyên giá trị hiện tại."}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/i18n/zh.json b/packages/pieces/core/tables/src/i18n/zh.jsonindex 38f23f1fc5f..7ab2bd0031f 100644--- a/packages/pieces/core/tables/src/i18n/zh.json+++ b/packages/pieces/core/tables/src/i18n/zh.json@@ -41,5 +41,6 @@"Record Deleted": "Record Deleted","Triggers when a new record is added to the selected table.": "Triggers when a new record is added to the selected table.","Triggers when a record is updated in the selected table.": "Triggers when a record is updated in the selected table.",- "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table."+ "Triggers when a record is deleted from the selected table.": "Triggers when a record is deleted from the selected table.",+ "Empty fields keep their current value.": "留空的字段保留当前值。"}\ No newline at end of filediff --git a/packages/pieces/core/tables/src/lib/actions/create-records.ts b/packages/pieces/core/tables/src/lib/actions/create-records.tsindex 7630a5139ca..d743ee2ffd8 100644--- a/packages/pieces/core/tables/src/lib/actions/create-records.ts+++ b/packages/pieces/core/tables/src/lib/actions/create-records.ts@@ -12,6 +12,22 @@ export const createRecords = createAction({description: 'Insert one or more new records into a table.',aiMetadata: { description: 'Inserts one or more new rows into an Activepieces Table via either a per-field form built from the columns of the selected table, or a raw JSON array of objects keyed by column name that overrides the form, for when the table is chosen dynamically at runtime. Use Update Record instead to change a row that already exists. Requires a table ID, and any value whose key does not match a real column is silently dropped; not idempotent, since every call appends new records with new IDs.', idempotent: false },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'destination',+ display: 'section',+ label: 'Save to',+ icon: 'file',+ props: ['table_id'],+ },+ {+ key: 'records',+ display: 'section',+ label: 'New records',+ icon: 'text',+ props: ['values'],+ },+ ],props: {table_id: tablesCommon.table_id,values: Property.DynamicProperties({diff --git a/packages/pieces/core/tables/src/lib/actions/create-table.ts b/packages/pieces/core/tables/src/lib/actions/create-table.tsindex 70185d1eda9..d36223de139 100644--- a/packages/pieces/core/tables/src/lib/actions/create-table.ts+++ b/packages/pieces/core/tables/src/lib/actions/create-table.ts@@ -11,6 +11,22 @@ export const createTable = createAction({description: 'Create a new table, optionally with fields.',aiMetadata: { description: 'Creates a new Activepieces Table in the current project, optionally defining its columns up front - each field takes a name plus a type of text, number, date, date & time, or single select, with single-select choices supplied as one comma-separated string. Date and date & time both hold an ISO-8601 UTC timestamp; date & time additionally shows the time of day. Pick this when a flow needs somewhere to store data that does not exist yet. Only those five column types are supported; not idempotent, since each call creates another table and repeating it with the same name yields duplicates.', idempotent: false },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'table',+ display: 'section',+ label: 'New table',+ icon: 'file',+ props: ['name'],+ },+ {+ key: 'columns',+ display: 'section',+ label: 'Columns',+ icon: 'type',+ props: ['fields'],+ },+ ],props: {name: Property.ShortText({displayName: 'Table Name',diff --git a/packages/pieces/core/tables/src/lib/actions/delete-record.ts b/packages/pieces/core/tables/src/lib/actions/delete-record.tsindex 6daaa9cea7c..ac6f91526b4 100644--- a/packages/pieces/core/tables/src/lib/actions/delete-record.ts+++ b/packages/pieces/core/tables/src/lib/actions/delete-record.ts@@ -11,6 +11,15 @@ export const deleteRecord = createAction({description: 'Delete record(s) from a table.',aiMetadata: { description: 'Deletes one or more rows from an Activepieces Table by record ID, accepting a list of IDs in a single call. Pick this to remove specific known rows; use Clear Table to empty a table wholesale, or Delete Table to drop the table along with its schema. Requires the table ID plus the record IDs, which come from Find Records or a table trigger payload, and cannot delete by filter or field value; idempotent.', idempotent: true },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'records',+ display: 'section',+ label: 'Records to delete',+ icon: 'tag',+ props: ['table_id', 'records_ids'],+ },+ ],props: {table_id: tablesCommon.table_id,records_ids: Property.Array({diff --git a/packages/pieces/core/tables/src/lib/actions/download-table.ts b/packages/pieces/core/tables/src/lib/actions/download-table.tsindex 10915f8d141..d818ff693b4 100644--- a/packages/pieces/core/tables/src/lib/actions/download-table.ts+++ b/packages/pieces/core/tables/src/lib/actions/download-table.ts@@ -19,6 +19,22 @@ export const downloadTable = createAction({description: 'Export a table as a CSV file.',aiMetadata: { description: 'Exports all records of an Activepieces Table as a CSV file, optionally prefixed with a header row of column names. Pick this when a whole table is needed as a file; use Find Records instead to read rows as structured data. Requires the table ID and always exports the full table - it accepts no filters, column selection, or row limit; read-only and idempotent.', idempotent: true },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'source',+ display: 'section',+ label: 'Export from',+ icon: 'file',+ props: ['table_id'],+ },+ {+ key: 'csv',+ display: 'section',+ label: 'CSV file',+ icon: 'paperclip',+ props: ['include_headers'],+ },+ ],props: {table_id: tablesCommon.table_id,include_headers: Property.Checkbox({diff --git a/packages/pieces/core/tables/src/lib/actions/find-records.ts b/packages/pieces/core/tables/src/lib/actions/find-records.tsindex ba14cb9ac9e..83985b5d7a8 100644--- a/packages/pieces/core/tables/src/lib/actions/find-records.ts+++ b/packages/pieces/core/tables/src/lib/actions/find-records.ts@@ -19,6 +19,22 @@ export const findRecords = createAction({description: 'Find records in a table with filters.',aiMetadata: { description: 'Queries rows in an Activepieces Table, optionally narrowing them with a list of column/operator/value filter conditions and an optional row limit. This is the main way to read or search a table and to resolve the record IDs needed by Get Record, Update Record, or Delete Record(s); use Get Record when the record ID is already known. Requires the table ID; with no filters it returns every row, and filter values are type-checked against the column, so number and date columns reject unparseable values; on date and date & time columns the gt/gte/lt/lte operators compare chronologically while eq/neq compare the stored text exactly; read-only and idempotent.', idempotent: true },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'source',+ display: 'section',+ label: 'Search in',+ icon: 'file',+ props: ['table_id'],+ },+ {+ key: 'conditions',+ display: 'section',+ label: 'Conditions',+ icon: 'filter',+ props: ['filters'],+ },+ ],props: {table_id: tablesCommon.table_id,filters: Property.DynamicProperties({diff --git a/packages/pieces/core/tables/src/lib/actions/get-record.ts b/packages/pieces/core/tables/src/lib/actions/get-record.tsindex 8af7fbc9838..7124ea2ee52 100644--- a/packages/pieces/core/tables/src/lib/actions/get-record.ts+++ b/packages/pieces/core/tables/src/lib/actions/get-record.ts@@ -12,6 +12,15 @@ export const getRecord = createAction({description: 'Get a single record by its ID.',aiMetadata: { description: 'Fetches one Activepieces Table record by its record ID and returns its cell values. Pick this when the exact record ID is already in hand, for example from a table trigger payload or an earlier Find Records step; use Find Records to look rows up by column value instead. Requires both the table ID and the record ID, and cannot search by column content; read-only and idempotent.', idempotent: true },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'record',+ display: 'section',+ label: 'Record to get',+ icon: 'tag',+ props: ['table_id', 'record_id'],+ },+ ],props: {table_id: tablesCommon.table_id,record_id: tablesCommon.record_id,diff --git a/packages/pieces/core/tables/src/lib/actions/update-record.ts b/packages/pieces/core/tables/src/lib/actions/update-record.tsindex 3d35fa857d7..646f2c9de77 100644--- a/packages/pieces/core/tables/src/lib/actions/update-record.ts+++ b/packages/pieces/core/tables/src/lib/actions/update-record.ts@@ -12,9 +12,29 @@ export const updateRecord = createAction({description: 'Update values in an existing record.',aiMetadata: { description: 'Overwrites cell values on one existing Activepieces Table record addressed by its record ID, changing only the columns supplied - blank values are skipped and keep whatever the record already holds. Pick this to modify a known row; use Create Record(s) to insert new rows, since this action only edits a record that already exists. Requires both the table ID and the record ID, and each value is validated against the type of its column; idempotent, since re-applying the same values leaves the record unchanged.', idempotent: true },auth: PieceAuth.None(),+ propertyGroups: [+ {+ key: 'record',+ display: 'section',+ label: 'Record to update',+ icon: 'tag',+ props: ['table_id', 'record_id'],+ },+ {+ key: 'changes',+ display: 'section',+ label: 'Changes',+ icon: 'text',+ props: ['empty_fields_info', 'values'],+ },+ ],props: {table_id: tablesCommon.table_id,record_id: tablesCommon.record_id,+ empty_fields_info: Property.MarkDown({+ value: 'Empty fields keep their current value.',+ variant: MarkdownVariant.INFO,+ }),values: Property.DynamicProperties({auth: PieceAuth.None(),displayName: 'Values',