Skip to content

Commit d2924e1

Browse files
caoxing9claude
andcommitted
feat(zapier): restore the dynamic View dropdown
Re-add the hidden views trigger, the dynamic viewId field, the altersDynamicFields wiring on Table, and the view|read scope. Pending the Teable backend allowing OAuth tokens to read views; once that ships the dropdown populates. Drop the temporary debug logs. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d643a93 commit d2924e1

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

packages/zapier/src/triggers/views.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,14 @@ import type { TeableView, DropdownItem } from '../lib/types';
55
// Hidden trigger powering the "View" dropdown. Depends on a chosen tableId.
66
const perform = async (z: ZObject, bundle: Bundle): Promise<DropdownItem[]> => {
77
const { tableId } = bundle.inputData;
8-
z.console.log(`views dropdown: tableId=${tableId ?? '(none)'}`);
98
if (!tableId) return [];
109
const response = await z.request<TeableView[]>({
1110
url: apiUrl(bundle, `/table/${tableId}/view`),
1211
});
13-
const items = (response.data || []).map((view) => ({
12+
return (response.data || []).map((view) => ({
1413
id: view.id,
1514
name: view.name,
1615
}));
17-
z.console.log(`views dropdown: ${items.length} view(s) for table ${tableId}`);
18-
return items;
1916
};
2017

2118
export default {

0 commit comments

Comments
 (0)