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
fix(nocodb): keep columns visible when an agent reorders them in a view (#16736)
Kishan Parmard1793d1c6de2
diff --git a/bun.lock b/bun.lockindex d0f3852a634..2220ab92f12 100644--- a/bun.lock+++ b/bun.lock@@ -6514,7 +6514,7 @@},"packages/pieces/community/nocodb": {"name": "@activepieces/piece-nocodb",- "version": "0.5.0",+ "version": "0.6.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/nocodb/package.json b/packages/pieces/community/nocodb/package.jsonindex c91a279a7a8..bb1d93a8091 100644--- a/packages/pieces/community/nocodb/package.json+++ b/packages/pieces/community/nocodb/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-nocodb",- "version": "0.5.0",+ "version": "0.6.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/nocodb/src/i18n/translation.json b/packages/pieces/community/nocodb/src/i18n/translation.jsonindex 625550c3908..87f79f3fce8 100644--- a/packages/pieces/community/nocodb/src/i18n/translation.json+++ b/packages/pieces/community/nocodb/src/i18n/translation.json@@ -71,10 +71,14 @@"Comma separated field names without space.Example: **field1,-field2** will sort the records first by 'field1' in ascending order and then by 'field2' in descending order.": "Comma separated field names without space.Example: **field1,-field2** will sort the records first by 'field1' in ascending order and then by 'field2' in descending order.","Leave unset on self-hosted instances.": "Leave unset on self-hosted instances.","The view-scoped column ID from List View Columns, not the table column ID.": "The view-scoped column ID from List View Columns, not the table column ID.",+ "Whether the column is visible in the view. Leave empty or pick Leave unchanged to keep the current setting.": "Whether the column is visible in the view. Leave empty or pick Leave unchanged to keep the current setting.","When checked, returns only already-read notifications. Leave unchecked to return all notifications (read and unread) — there is no unread-only filter.": "When checked, returns only already-read notifications. Leave unchecked to return all notifications (read and unread) — there is no unread-only filter.","The UUID from the view's public share link.": "The UUID from the view's public share link.","The table column ID to group records by.": "The table column ID to group records by.","Only required if the shared view link is password-protected.": "Only required if the shared view link is password-protected.","The storage path to upload to, e.g. download/noco/<base>/<table>/attachment.": "The storage path to upload to, e.g. download/noco/<base>/<table>/attachment.",- "Display name for the attachment.": "Display name for the attachment."+ "Display name for the attachment.": "Display name for the attachment.",+ "Yes": "Yes",+ "No": "No",+ "Leave unchanged": "Leave unchanged"}\ No newline at end of filediff --git a/packages/pieces/community/nocodb/src/lib/actions/update-view-column.ts b/packages/pieces/community/nocodb/src/lib/actions/update-view-column.tsindex 4314f7558e1..7db98abad04 100644--- a/packages/pieces/community/nocodb/src/lib/actions/update-view-column.ts+++ b/packages/pieces/community/nocodb/src/lib/actions/update-view-column.ts@@ -26,9 +26,18 @@ export const updateViewColumnAction = createAction({description: 'The view-scoped column ID from List View Columns, not the table column ID.',required: true,}),- show: Property.Checkbox({+ show: Property.StaticDropdown<string, false>({displayName: 'Show',+ description: 'Whether the column is visible in the view. Leave empty or pick Leave unchanged to keep the current setting.',required: false,+ options: {+ disabled: false,+ options: [+ { label: 'Yes', value: 'yes' },+ { label: 'No', value: 'no' },+ { label: 'Leave unchanged', value: 'unchanged' },+ ],+ },}),order: Property.Number({displayName: 'Order',@@ -36,8 +45,16 @@ export const updateViewColumnAction = createAction({}),},async run(context) {- const { viewId, columnId, show, order } = context.propsValue;+ const { viewId, columnId, order } = context.propsValue;+ const show = showValue(context.propsValue.show);const client = makeClient(context.auth);return await client.updateViewColumn(viewId, columnId, { show, order });},});++function showValue(value: unknown): boolean | undefined {+ const normalized = typeof value === 'string' ? value.trim().toLowerCase() : value;+ if (normalized === true || normalized === 'yes' || normalized === 'true') return true;+ if (normalized === false || normalized === 'no' || normalized === 'false') return false;+ return undefined;+}