Skip to content

Conversation

@michelle0927
Copy link
Collaborator

@michelle0927 michelle0927 commented Jul 25, 2025

Resolves #17585

@vunguyenhung Hold off on merging this one until I switch the base_url back from Development to Production.

Summary by CodeRabbit

  • Documentation

    • Updated documentation links in action descriptions for improved reference.
    • Clarified the phone number format example in property descriptions.
    • Added an informational alert clarifying webhook trigger behavior for KrispCall.
  • Chores

    • Incremented version numbers for multiple actions and sources to reflect recent updates.
    • Updated the package version for KrispCall.
  • Style

    • Improved clarity of property descriptions for better user understanding.

@vercel
Copy link

vercel bot commented Jul 25, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jul 28, 2025 3:03pm
pipedream-docs ⬜️ Ignored (Inspect) Jul 28, 2025 3:03pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 28, 2025 3:03pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 25, 2025

Walkthrough

This update revises multiple KrispCall component files by updating documentation URLs to the new v3 API, incrementing version numbers, and clarifying alert messages. The base application file updates example values and switches the development base URL to v3. No functional or logic changes are introduced in any component.

Changes

Files Change Summary
components/krispcall/actions/add-contact/add-contact.mjs Updated documentation URL in description; incremented version to 0.0.5
components/krispcall/actions/delete-contact/delete-contact.mjs Updated documentation URL in description; incremented version to 0.0.5
components/krispcall/actions/new-mms/new-mms.mjs, components/krispcall/actions/new-sms/new-sms.mjs Updated documentation URLs in descriptions; incremented versions to 0.0.5
components/krispcall/krispcall.app.mjs Updated example phone number format; changed dev base URL to v3; commented out old URLs
components/krispcall/package.json Incremented package version from 0.2.2 to 0.2.3
components/krispcall/sources/common/base.mjs Added informational alert about webhook trigger event scope
components/krispcall/sources/new-call-instant/new-call-instant.mjs Incremented version to 0.0.4
components/krispcall/sources/new-contact-instant/new-contact-instant.mjs Incremented version to 0.0.5
components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs Incremented version to 0.0.5
components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs Incremented version to 0.0.5

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~7 minutes

Poem

A hop to v3, with URLs anew,
KrispCall’s docs now point true!
Versions bumped with gentle care,
Alerts inform, so users beware.
No logic changed, just metadata bright—
The rabbit approves this update tonight!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/krispcall/actions/delete-contact/delete-contact.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

components/krispcall/actions/new-mms/new-mms.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

components/krispcall/actions/add-contact/add-contact.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:202:49)

  • 7 others

Note

⚡️ Unit Test Generation is now available in beta!

Learn more here, or try it out under "Finishing Touches" below.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch issue-17585

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@michelle0927 michelle0927 marked this pull request as ready for review July 25, 2025 15:34
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (4)
components/krispcall/sources/common/base.mjs (1)

11-15: Correct brand capitalization in the alert copy

“KrispCall” is camel-cased elsewhere (file name, props key).
Keeping the same formatting avoids tiny UX inconsistencies.

-      content: "Note: Krispcall webhook triggers will emit events for changes made via the KrispCall UI, but not via the API.",
+      content: "Note: KrispCall webhook triggers will emit events for changes made via the KrispCall UI, but not via the API.",
components/krispcall/sources/new-call-instant/new-call-instant.mjs (1)

9-9: Optional: keep version numbers in lock-step

Other instant sources are now 0.0.5, while this one is 0.0.4.
Not harmful (each was bumped by +1), but a uniform patch level makes tracking easier.

No change required if this is intentional.

components/krispcall/actions/add-contact/add-contact.mjs (2)

6-6: Use a canonical docs URL instead of a transient Postman share

Postman “documenter” links occasionally change or become private. If KrispCall has a stable, version-specific docs domain (e.g. https://docs.krispcall.com/api/v3/#add-contact), prefer that to prevent future 404s.


7-7: Version bump looks good – don’t forget the changelog

Incrementing to 0.0.5 is consistent with the other components. Ensure the corresponding package/monorepo CHANGELOG is updated so consumers know why this patch was published.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 0471e62 and fdad361.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (11)
  • components/krispcall/actions/add-contact/add-contact.mjs (1 hunks)
  • components/krispcall/actions/delete-contact/delete-contact.mjs (1 hunks)
  • components/krispcall/actions/new-mms/new-mms.mjs (1 hunks)
  • components/krispcall/actions/new-sms/new-sms.mjs (1 hunks)
  • components/krispcall/krispcall.app.mjs (2 hunks)
  • components/krispcall/package.json (1 hunks)
  • components/krispcall/sources/common/base.mjs (1 hunks)
  • components/krispcall/sources/new-call-instant/new-call-instant.mjs (1 hunks)
  • components/krispcall/sources/new-contact-instant/new-contact-instant.mjs (1 hunks)
  • components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs (1 hunks)
  • components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (9)
components/krispcall/sources/common/base.mjs (1)

35-41: Verify deleteWebhook payload – id vs. URL

activate() stores data.id (a numeric/UUID hook id) in the DB, but deactivate() sends it back as hookUrl.
If the v3 API expects the webhook ID (most APIs do), deletion will fail with a 4xx.

-          hookUrl: hookId,
+          id: hookId,
# or, if the API expects the field name `hookId`:
+#         hookId,

Please confirm the v3 API spec.
If hookUrl is truly correct, ignore this.
Otherwise, adjust before shipping to prod.

components/krispcall/package.json (1)

3-3: Patch-level bump looks good

Version bump to 0.2.3 is consistent with per-component patch bumps.
No further action needed.

components/krispcall/sources/new-contact-instant/new-contact-instant.mjs (1)

9-9: LGTM – metadata only

Patch bump to 0.0.5 aligns with most other sources/actions.

components/krispcall/sources/new-voicemail-instant/new-voicemail-instant.mjs (1)

9-9: LGTM – metadata only

Patch bump to 0.0.5 looks correct.

components/krispcall/sources/new-sms-or-mms-instant/new-sms-or-mms-instant.mjs (1)

9-9: LGTM: Version increment is consistent with v3 API migration.

The version bump from "0.0.4" to "0.0.5" aligns with the coordinated update across all KrispCall components for the v3 API migration.

components/krispcall/actions/new-mms/new-mms.mjs (1)

6-7: Documentation URL Accessibility Verified

  • components/krispcall/actions/new-mms/new-mms.mjs (lines 6–7): The new Postman documentation link returns HTTP 200 and serves the expected v3 API documentation.
  • Version bumped to “0.0.5” is consistent with other action components.

Changes are metadata-only and approved.

components/krispcall/actions/delete-contact/delete-contact.mjs (1)

7-8: LGTM: Consistent metadata updates for v3 API migration.

The documentation URL update and version increment are consistent with the coordinated v3 API migration across all KrispCall components.

components/krispcall/krispcall.app.mjs (1)

10-10: Good UX improvement with example phone number format.

Adding the example phone number format (+16789296543) helps users understand the expected input format.

components/krispcall/actions/new-sms/new-sms.mjs (1)

6-7: LGTM: Final component completes the coordinated v3 API migration.

The documentation URL update and version increment complete the consistent metadata updates across all KrispCall components for the v3 API migration.

GTFalcao
GTFalcao previously approved these changes Jul 25, 2025
Copy link
Collaborator

@GTFalcao GTFalcao left a comment

Choose a reason for hiding this comment

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

LGTM!

@michelle0927 michelle0927 merged commit 08133ea into master Jul 28, 2025
10 checks passed
@michelle0927 michelle0927 deleted the issue-17585 branch July 28, 2025 15:39
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.

[FEATURE] Refactor KrispCall components to use new v3 API

5 participants