Skip to content

feat(coda): add Coda integration with API-token credential and resource pickers - #7907

Merged
waleedlatif1 merged 4 commits into
stagingfrom
feat/coda-integration
Sep 17, 2026
Merged

waleedlatif1 merged 4 commits into
stagingfrom
feat/coda-integration

Conversation

@waleedlatif1

Copy link
Copy Markdown
Collaborator

Summary

  • Add Coda integration with 60 tools covering docs, pages, tables, rows, columns, formulas, controls, folders, permissions, publishing, automations, analytics, workspaces, and custom domains
  • API-token credential in the credentials dropdown (validated against /whoami), used server-side to populate doc, page, table, column, row, formula, control, folder, and permission pickers
  • Add coda-errors error extractor that surfaces Coda validation issues, plus idempotent-only retry for rate limits
  • Page tokens are sent alone, since Coda rejects a page token combined with other list filters
  • Docs page with a manual intro covering auth, pickers, async writes, pagination, and plan-gated features
  • Fix a block registry audit false positive where subBlocks: inside a nested object was parsed as the block's subblock list

Type of Change

  • New feature

Testing

  • Live end-to-end against a real Coda account for all 60 operations, both through the tool executor and through a local app run (credential creation, pickers, workflow execution)
  • Unit tests for URL building, request bodies, block param mapping, selectors, the credential validator, and the error extractor
  • bun run lint, check:audits, docs-manifest:check, and type-check passing

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel

vercel Bot commented Sep 17, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
docs Ready Ready Preview Sep 17, 2026 2:19am UTC

Request Review

@greptile-apps

greptile-apps Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The integration appears functionally sound, but the explicit repository type-safety requirement in the live test must be satisfied before merging.

Findings

  1. P2 Explicit Any Weakens Outputs

Summary

This PR introduces a comprehensive Coda integration backed by stored API-token credentials and resource selectors.

  • Adds 60 Coda operations spanning documents, pages, tables, rows, sharing, folders, publishing, analytics, automations, and workspace administration.
  • Adds credential validation, selector providers, Coda-specific error extraction, and operation-aware retry behavior.
  • Registers Coda throughout block, tool, icon, integration, CLI, and generated metadata surfaces.
  • Adds generated integration documentation and broad unit and live-test coverage.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
    U[User selects stored Coda credential] --> C[Credential service]
    C --> V[Coda token validation via whoami]
    C --> S[Resource selector providers]
    S --> API[Coda API]
    U --> B[Coda workflow block]
    B --> E[Tool executor]
    C --> E
    E --> T[Selected Coda operation]
    T --> API
    API --> X[Response transform and Coda error extraction]
    X --> O[Structured workflow output]
Loading

Reviews (4) · Last reviewed commit: "fix(coda): declare nullable outputs and ..."

Comment thread apps/sim/tools/coda/update_doc.ts
Comment thread apps/docs/content/docs/integrations/coda.mdx
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 100 files

Tip: instead of fixing issues one by one fix them all with cubic

Re-trigger cubic

Comment thread apps/sim/scripts/check-block-registry.ts Outdated
Comment thread apps/sim/tools/coda/whoami.ts Outdated
Comment thread apps/sim/tools/coda/create_doc.ts
Comment thread apps/sim/lib/credentials/token-service-accounts/validators/coda.ts Outdated
Comment thread apps/sim/tools/coda/get_sharing_metadata.ts Outdated
Comment thread apps/sim/tools/coda/list_custom_domains.ts
Comment thread apps/sim/tools/coda/list_page_analytics.ts Outdated
Comment thread apps/sim/tools/coda/list_page_analytics.ts Outdated
Comment thread apps/sim/components/icons.tsx
Comment thread apps/sim/tools/coda/resolve_browser_link.ts Outdated
@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

Comment thread apps/sim/tools/coda/utils.ts

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 100 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@greptile

@waleedlatif1

Copy link
Copy Markdown
Collaborator Author

@cubic-dev-ai review this PR

@cubic-dev-ai

cubic-dev-ai Bot commented Sep 17, 2026

Copy link
Copy Markdown
Contributor

@cubic-dev-ai review this PR

@waleedlatif1 I have started the AI code review. It will take a few minutes to complete.

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 100 files

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Re-trigger cubic

Comment thread apps/sim/tools/coda/coda.live.test.ts
@waleedlatif1
waleedlatif1 merged commit 25a2136 into staging Sep 17, 2026
34 checks passed
@waleedlatif1
waleedlatif1 deleted the feat/coda-integration branch September 17, 2026 02:30

This branch was successfully deployed

1 active deployment
Preview d292ee0f Deployed Sep 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant