Skip to content

Conversation

@atharva-patil-23
Copy link
Contributor

@atharva-patil-23 atharva-patil-23 commented Jul 17, 2025

WHY

This pull request resolves #17588

It implements the following changes:

  • Corrected the type for several props to integer or boolean.
  • Updated descriptions for recurrence props.
  • Made name and startDate optional in the update-event action.
  • Added responseType: "object" to the get-ics-data action to retrieve the full object.

Summary by CodeRabbit

  • New Features

    • Updated several ID fields to accept integer values instead of strings.
    • Changed the metaRobotsOverride property to use a boolean value.
    • Clarified descriptions for recurrence-related fields to improve usability.
  • Bug Fixes

    • Marked certain event properties as optional for improved flexibility.
  • Chores

    • Updated test event data to use a sample email address for consistency.
    • Incremented version numbers across multiple actions and sources for improved component management.

@vercel
Copy link

vercel bot commented Jul 17, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 18, 2025 2:32pm

@vercel
Copy link

vercel bot commented Jul 17, 2025

@atharva-patil-23 is attempting to deploy a commit to the Pipedreamers Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 17, 2025

Walkthrough

The changes update the Add to Calendar PRO components to align with specific app developer requests. Adjustments include property type changes and updated descriptions in the app definition, marking certain action properties as optional, modifying API call parameters, and updating test event data to include a sample email address.

Changes

File(s) Change Summary
components/add_to_calendar_pro/add_to_calendar_pro.app.mjs Changed several prop types from string to integer; changed metaRobotsOverride to boolean; updated descriptions for recurrence fields.
components/add_to_calendar_pro/actions/get-ics-data/get-ics-data.mjs Added responseType: "object" parameter to API call.
components/add_to_calendar_pro/actions/update-event/update-event.mjs Marked name{i} and startDate{i} dynamic props as optional in additionalProps().
components/add_to_calendar_pro/sources/new-rsvp-answer-instant/test-event.mjs
components/add_to_calendar_pro/sources/rsvp-answer-updated-instant/test-event.mjs
Updated "email" field in test event data to "john.doe@email.com".
components/add_to_calendar_pro/actions/create-event-group/create-event-group.mjs
components/add_to_calendar_pro/actions/create-event/create-event.mjs
components/add_to_calendar_pro/actions/create-landing-page-template/create-landing-page-template.mjs
components/add_to_calendar_pro/actions/create-rsvp-template/create-rsvp-template.mjs
components/add_to_calendar_pro/actions/delete-event-group/delete-event-group.mjs
components/add_to_calendar_pro/actions/delete-event/delete-event.mjs
components/add_to_calendar_pro/actions/delete-landing-page-template/delete-landing-page-template.mjs
components/add_to_calendar_pro/actions/delete-rsvp-template/delete-rsvp-template.mjs
components/add_to_calendar_pro/actions/get-event-group/get-event-group.mjs
components/add_to_calendar_pro/actions/get-event/get-event.mjs
components/add_to_calendar_pro/actions/get-landing-page-template/get-landing-page-template.mjs
components/add_to_calendar_pro/actions/get-rsvp-template/get-rsvp-template.mjs
components/add_to_calendar_pro/actions/update-landing-page-template/update-landing-page-template.mjs
components/add_to_calendar_pro/actions/update-rsvp-template/update-rsvp-template.mjs
components/add_to_calendar_pro/sources/event-deleted-instant/event-deleted-instant.mjs
components/add_to_calendar_pro/sources/event-group-deleted-instant/event-group-deleted-instant.mjs
components/add_to_calendar_pro/sources/event-group-updated-instant/event-group-updated-instant.mjs
components/add_to_calendar_pro/sources/event-updated-instant/event-updated-instant.mjs
components/add_to_calendar_pro/sources/new-event-created-instant/new-event-created-instant.mjs
components/add_to_calendar_pro/sources/new-event-group-created-instant/new-event-group-created-instant.mjs
components/add_to_calendar_pro/sources/new-rsvp-answer-instant/new-rsvp-answer-instant.mjs
components/add_to_calendar_pro/sources/rsvp-answer-updated-instant/rsvp-answer-updated-instant.mjs
components/add_to_calendar_pro/actions/update-event-group/update-event-group.mjs
Updated version strings from 0.0.1 to 0.0.2 (or 0.0.3 for update-event-group) in multiple actions and sources with no other changes.
components/add_to_calendar_pro/package.json Bumped package version from 0.1.1 to 0.1.2.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant UpdateEventAction
    participant GetIcsDataAction
    participant AppDefinition

    User->>UpdateEventAction: Call update-event with dynamic props
    UpdateEventAction->>UpdateEventAction: Use optional name{i}, startDate{i}
    User->>GetIcsDataAction: Call get-ics-data
    GetIcsDataAction->>GetIcsDataAction: Pass responseType: "object"
    User->>AppDefinition: Use/define properties (IDs as integer, metaRobotsOverride as boolean)
Loading

Assessment against linked issues

Objective Addressed Explanation
Update prop types and descriptions in add_to_calendar_pro.app.mjs (styleId, landingPageTemplateId, etc.; recurrence fields) (#17588)
Add responseType=object to get-ics-data action API call (#17588)
Mark name and startDate as optional in update-event action (#17588)
Set test event email to "john.doe@email.com" in new-rsvp-answer-instant and rsvp-answer-updated-instant (#17588)

Poem

Hopping through fields of code so bright,
I nibbled on types and set things right.
Emails now filled, and options set free,
With integers and booleans, as clear as can be.
A calendar hop, a patch, a cheer—
This bunny’s work brings updates near!
🐇✨

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/add_to_calendar_pro/actions/get-ics-data/get-ics-data.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)


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7141f7f and c1a78c0.

📒 Files selected for processing (1)
  • components/add_to_calendar_pro/actions/get-ics-data/get-ics-data.mjs (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/add_to_calendar_pro/actions/get-ics-data/get-ics-data.mjs
⏰ 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: Lint Code Base
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Publish TypeScript components
✨ Finishing Touches
  • 📝 Generate Docstrings

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 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.

@adolfo-pd adolfo-pd added the User submitted Submitted by a user label Jul 17, 2025
@pipedream-component-development
Copy link
Collaborator

Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.

@pipedream-component-development
Copy link
Collaborator

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

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: 0

🧹 Nitpick comments (1)
components/add_to_calendar_pro/actions/update-event/update-event.mjs (1)

147-158: LGTM! Improved flexibility with minor formatting fix needed.

Making name{i} and startDate{i} properties optional improves the action's flexibility as intended by the PR objectives.

Apply this formatting fix for consistency:

-        optional:true
+        optional: true
-        optional:true
+        optional: true
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 1813f38 and d282624.

📒 Files selected for processing (5)
  • components/add_to_calendar_pro/actions/get-ics-data/get-ics-data.mjs (1 hunks)
  • components/add_to_calendar_pro/actions/update-event/update-event.mjs (1 hunks)
  • components/add_to_calendar_pro/add_to_calendar_pro.app.mjs (8 hunks)
  • components/add_to_calendar_pro/sources/new-rsvp-answer-instant/test-event.mjs (1 hunks)
  • components/add_to_calendar_pro/sources/rsvp-answer-updated-instant/test-event.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
components/add_to_calendar_pro/actions/update-event/update-event.mjs (3)
Learnt from: js07
PR: PipedreamHQ/pipedream#17375
File: components/zerobounce/actions/get-validation-results-file/get-validation-results-file.mjs:23-27
Timestamp: 2025-07-01T17:07:48.193Z
Learning: For "dir" props in Pipedream components, whether to mark them as optional depends on the action's file I/O behavior - if an action always writes files as output, the "dir" prop should not be marked as optional.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#15376
File: components/monday/sources/name-updated/name-updated.mjs:6-6
Timestamp: 2025-01-23T03:55:15.166Z
Learning: Source names in Monday.com components don't need to start with "New" if they emit events for updated items (e.g., "Name Updated", "Column Value Updated") rather than new items. This follows the component guidelines exception where the "New" prefix is only required when emits are limited to new items.
Learnt from: js07
PR: PipedreamHQ/pipedream#17375
File: components/zerobounce/actions/get-validation-results-file/get-validation-results-file.mjs:23-27
Timestamp: 2025-07-01T17:07:48.193Z
Learning: "dir" props in Pipedream components are hidden in the component form and not user-facing, so they don't require labels or descriptions for user clarity.
🔇 Additional comments (6)
components/add_to_calendar_pro/sources/rsvp-answer-updated-instant/test-event.mjs (1)

6-6: LGTM! Test data standardization improvement.

The email field update from an empty string to a realistic email address improves test data quality and consistency across RSVP sources.

components/add_to_calendar_pro/sources/new-rsvp-answer-instant/test-event.mjs (1)

6-6: LGTM! Consistent test data standardization.

The email field update aligns with the corresponding change in the RSVP answer updated source, ensuring consistent test data across RSVP-related components.

components/add_to_calendar_pro/actions/get-ics-data/get-ics-data.mjs (1)

22-22: LGTM! Explicit response type specification.

Adding responseType: "object" clarifies the expected response format and aligns with the PR objective to retrieve the full object response.

components/add_to_calendar_pro/add_to_calendar_pro.app.mjs (3)

20-20: LGTM! Correct data type changes for ID fields.

Converting ID field types from "string" to "integer" is appropriate since these represent numeric identifiers, improving type accuracy as outlined in the PR objectives.

Also applies to: 33-33, 45-45, 57-57, 81-81, 93-93


288-288: LGTM! Correct boolean type for meta robots override.

Changing metaRobotsOverride from "string" to "boolean" accurately reflects its true/false nature, improving type correctness.


122-122: LGTM! Improved recurrence property descriptions.

The updated descriptions clearly explain the relationship between simplifiedRecurrence, recurrence, and recurrenceSimpleType properties, providing better guidance for users on when to use each field.

Also applies to: 128-128

michelle0927
michelle0927 previously approved these changes Jul 17, 2025
Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

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

Thank you so much for your contribution! This looks great. I just updated some versions and formatting to meet Pipedream requirements. Ready for QA!

@michelle0927 michelle0927 merged commit 19c3b7c into PipedreamHQ:master Jul 18, 2025
10 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

User submitted Submitted by a user

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[COMPONENTS] Modify Add to Calendar PRO components per app developer request

5 participants