Skip to content

17338 components joggai #17503

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 11, 2025
Merged

17338 components joggai #17503

merged 4 commits into from
Jul 11, 2025

Conversation

luancazarine
Copy link
Collaborator

@luancazarine luancazarine commented Jul 7, 2025

Resolves #17338

Summary by CodeRabbit

  • New Features

    • Added actions to create AI avatar photos, avatar videos, products from product info, and products from URLs using the JoggAI API.
    • Introduced an action to update product information.
    • Added a real-time event source for video status changes, emitting events when a video is successfully generated or fails.
    • Provided test event data for video status changes.
  • Enhancements

    • Expanded integration with JoggAI, including full support for managing avatars, voices, products, media uploads, and webhooks.
    • Added standardized option sets for media types, avatars, and user demographics to improve UI selections.
    • Improved media handling utilities for preparing and uploading product media assets.
  • Chores

    • Updated package metadata and dependencies.

Actions
 - Create AI Avatar Photo
 - Crate Avatar Video
 - Create Product From Product Info
 - Create Product From URL
 - Update Product Info

Sources
 - Video Status Changed (Instant)
@luancazarine luancazarine linked an issue Jul 7, 2025 that may be closed by this pull request
Copy link

vercel bot commented Jul 7, 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 9, 2025 3:27pm
pipedream-docs ⬜️ Ignored (Inspect) Jul 9, 2025 3:27pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jul 9, 2025 3:27pm

Copy link
Contributor

coderabbitai bot commented Jul 7, 2025

Walkthrough

This update introduces a comprehensive JoggAI integration, adding multiple actions for product and avatar creation, a webhook source for video status changes, shared constants and utilities, and a fully implemented API client. Each action and source is modularized, with validation and response handling, enabling seamless interaction with the JoggAI API for media and avatar management.

Changes

File(s) Change Summary
components/joggai/actions/create-ai-avatar-photo/create-ai-avatar-photo.mjs New action: Create AI Avatar Photo via JoggAI API
components/joggai/actions/create-avatar-video/create-avatar-video.mjs New action: Create Avatar Video via JoggAI API
components/joggai/actions/create-product-from-product-info/create-product-from-product-info.mjs New action: Create Product from Product Info via JoggAI API
components/joggai/actions/create-product-from-url/create-product-from-url.mjs New action: Create Product from URL via JoggAI API
components/joggai/actions/update-product-info/update-product-info.mjs New action: Update Product Info via JoggAI API
components/joggai/common/constants.mjs New module: Shared constants for options (media types, age, aspect ratios, etc.)
components/joggai/common/utils.mjs New module: Utility functions for props preparation, media upload, and response checking
components/joggai/joggai.app.mjs Major update: Full JoggAI API client implementation with prop definitions and API methods
components/joggai/package.json Package metadata updated: version bump, dependency added, keywords updated
components/joggai/sources/common/base.mjs New module: Base webhook source with activate, deactivate, and run logic
components/joggai/sources/video-status-changed/test-event.mjs New module: Test event fixture for video status change
components/joggai/sources/video-status-changed/video-status-changed.mjs New source: Video Status Changed (Instant) webhook integration

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Action
    participant JoggAI API

    User->>Action: Trigger action (e.g., create-product-from-url)
    Action->>JoggAI API: Send API request with parameters
    JoggAI API-->>Action: Respond with result/status
    Action-->>User: Return response and summary
Loading
sequenceDiagram
    participant JoggAI
    participant Webhook Source
    participant External Service

    JoggAI-->>Webhook Source: Send video status event (success/failure)
    Webhook Source->>External Service: Emit event with summary and details
Loading

Assessment against linked issues

Objective Addressed Explanation
Implement webhook source: video-status-changed (event emission on video status change) (#17338)
Implement create-product-from-url action (upload URL, analyze, create product) (#17338)
Implement create-product-from-product-info action (create product from info and media assets) (#17338)
Implement update-product-info action (update product details and media) (#17338)
Implement create-avatar-video and create-photo-avatar-video actions (avatar video creation) (#17338)

Poem

In the land of JoggAI, new features bloom,
Avatars and products, created in a zoom!
Webhooks now listen for videos complete,
Constants and helpers make coding so neat.
With every new action, we hop in delight—
🐰 CodeRabbit’s garden is thriving 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/joggai/actions/update-product-info/update-product-info.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/joggai/sources/common/base.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 61d4e5a and 213015b.

📒 Files selected for processing (2)
  • components/joggai/actions/update-product-info/update-product-info.mjs (1 hunks)
  • components/joggai/sources/common/base.mjs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • components/joggai/actions/update-product-info/update-product-info.mjs
  • components/joggai/sources/common/base.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). (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Lint Code Base
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify 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.

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

🧹 Nitpick comments (4)
components/joggai/common/utils.mjs (3)

8-9: Consider adding an upper bound validation for mediaQuantity.

Without an upper limit, users could potentially create an excessive number of dynamic properties, which could impact performance and user experience.

Consider adding validation:

export const prepareAdditionalProps = (props) => {
  const newProps = {};
  if (props.mediaQuantity) {
+   const MAX_MEDIA_ITEMS = 50; // or another reasonable limit
+   const quantity = Math.min(props.mediaQuantity, MAX_MEDIA_ITEMS);
-   for (let i = 0; i < props.mediaQuantity; i++) {
+   for (let i = 0; i < quantity; i++) {

54-79: Add error handling for individual media uploads.

If one media upload fails, the entire operation will fail. Consider adding try-catch for individual uploads to handle partial failures gracefully.

Wrap the media upload logic in a try-catch block:

  for (let i = 0; i < props.mediaQuantity; i++) {
+   try {
      const media = await props.joggai.createUrl({
        data: {
          filename: props[`mediaUrl${i}`],
        },
      });
      
      // ... rest of the upload logic ...
      
      data.media.push({
        type: props[`mediaType${i}`],
        name: props[`mediaName${i}`],
        url: media.data.asset_id,
        description: props[`mediaDescription${i}`],
      });
+   } catch (error) {
+     console.error(`Failed to upload media item ${i}:`, error);
+     // Optionally continue with other uploads or throw
+   }
  }

83-87: Consider validating response structure.

The error checking logic is good, but consider adding a null check for defensive programming.

export const checkResponse = (response) => {
-  if (response.code) {
+  if (response?.code) {
-    throw new ConfigurationError(response.msg);
+    throw new ConfigurationError(response.msg || "Unknown error occurred");
  }
};
components/joggai/common/constants.mjs (1)

1-105: Consider standardizing constant structures for consistency.

Some constants use objects with label and value properties while others use plain strings. This inconsistency might cause confusion when consuming these constants.

For example, AGE_OPTIONS, AVATAR_STYLE_OPTIONS, GENDER_OPTIONS, MODEL_OPTIONS, and ETHNICITY_OPTIONS use plain strings, while MEDIA_TYPES, ASPECT_RATIO_OPTIONS, etc. use objects. Consider standardizing to one format based on how they're consumed by the API.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 7224a54 and 82a4bd1.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (12)
  • components/joggai/actions/create-ai-avatar-photo/create-ai-avatar-photo.mjs (1 hunks)
  • components/joggai/actions/create-avatar-video/create-avatar-video.mjs (1 hunks)
  • components/joggai/actions/create-product-from-product-info/create-product-from-product-info.mjs (1 hunks)
  • components/joggai/actions/create-product-from-url/create-product-from-url.mjs (1 hunks)
  • components/joggai/actions/update-product-info/update-product-info.mjs (1 hunks)
  • components/joggai/common/constants.mjs (1 hunks)
  • components/joggai/common/utils.mjs (1 hunks)
  • components/joggai/joggai.app.mjs (1 hunks)
  • components/joggai/package.json (1 hunks)
  • components/joggai/sources/common/base.mjs (1 hunks)
  • components/joggai/sources/video-status-changed/test-event.mjs (1 hunks)
  • components/joggai/sources/video-status-changed/video-status-changed.mjs (1 hunks)
🧰 Additional context used
🧠 Learnings (10)
components/joggai/actions/create-ai-avatar-photo/create-ai-avatar-photo.mjs (4)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-07-04T18:11:59.822Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12731
File: components/hackerone/actions/get-members/get-members.mjs:3-28
Timestamp: 2024-10-08T15:33:38.240Z
Learning: When exporting a summary message in the `run` method of an action, ensure the message is correctly formatted. For example, in the `hackerone-get-members` action, the correct format is `Successfully retrieved ${response.data.length} members`.
Learnt from: js07
PR: PipedreamHQ/pipedream#17375
File: components/tinypng/actions/compress-image/compress-image.mjs:18-23
Timestamp: 2025-07-01T17:01:46.327Z
Learning: In TinyPNG compress-image action (components/tinypng/actions/compress-image/compress-image.mjs), the syncDir property uses accessMode: "read" because this action only reads input files and returns API responses without writing files to /tmp, unlike other TinyPNG actions that save processed files to disk.
components/joggai/sources/video-status-changed/test-event.mjs (1)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
components/joggai/package.json (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14935
File: components/sailpoint/package.json:15-18
Timestamp: 2024-12-12T19:23:09.039Z
Learning: When developing Pipedream components, do not add built-in Node.js modules like `fs` to `package.json` dependencies, as they are native modules provided by the Node.js runtime.
components/joggai/actions/update-product-info/update-product-info.mjs (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
components/joggai/actions/create-avatar-video/create-avatar-video.mjs (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
components/joggai/common/utils.mjs (2)
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#13961
File: components/fakturoid/actions/create-invoice/create-invoice.mjs:95-99
Timestamp: 2024-10-15T15:07:38.361Z
Learning: An "object array" type is not yet supported for Pipedream props.
components/joggai/sources/common/base.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-10-08T15:33:38.240Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-07-24T02:06:47.016Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
components/joggai/joggai.app.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#16954
File: components/salesloft/salesloft.app.mjs:14-23
Timestamp: 2025-06-04T17:52:05.780Z
Learning: In the Salesloft API integration (components/salesloft/salesloft.app.mjs), the _makeRequest method returns response.data which directly contains arrays for list endpoints like listPeople, listCadences, listUsers, and listAccounts. The propDefinitions correctly call .map() directly on these responses without needing to destructure a nested data property.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#16954
File: components/salesloft/salesloft.app.mjs:14-23
Timestamp: 2025-06-04T17:52:05.780Z
Learning: The Salesloft API list endpoints (listPeople, listCadences, listUsers, listAccounts) return arrays directly in the response body, not wrapped in a metadata object with a nested data property. The _makeRequest method correctly returns response.data which contains the arrays that can be mapped over directly in propDefinitions.
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.
components/joggai/actions/create-product-from-product-info/create-product-from-product-info.mjs (1)
Learnt from: jcortes
PR: PipedreamHQ/pipedream#14467
File: components/gainsight_px/actions/create-account/create-account.mjs:4-6
Timestamp: 2024-10-30T15:24:39.294Z
Learning: In `components/gainsight_px/actions/create-account/create-account.mjs`, the action name should be "Create Account" instead of "Create Memory".
components/joggai/sources/video-status-changed/video-status-changed.mjs (3)
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#14265
File: components/the_magic_drip/sources/common.mjs:35-43
Timestamp: 2024-10-10T19:18:27.998Z
Learning: In `components/the_magic_drip/sources/common.mjs`, when processing items in `getAndProcessData`, `savedIds` is intentionally updated with IDs of both emitted and non-emitted items to avoid emitting retroactive events upon first deployment and ensure only new events are emitted as they occur.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-07-24T02:06:47.016Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
Learnt from: GTFalcao
PR: PipedreamHQ/pipedream#12697
File: components/salesforce_rest_api/sources/common-webhook-methods.mjs:1-71
Timestamp: 2024-10-08T15:33:38.240Z
Learning: The `common-webhook-methods.mjs` object is designed to be extended, similar to an abstract class, and intentionally does not implement certain methods like `generateWebhookMeta` and `getEventType` to enforce implementation in subclasses.
⏰ 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). (4)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
  • GitHub Check: pnpm publish
🔇 Additional comments (23)
components/joggai/common/utils.mjs (1)

36-43: LGTM!

Clean and efficient stream-to-buffer conversion implementation with proper error handling.

components/joggai/package.json (1)

3-16: LGTM!

Version bump to 0.1.0 is appropriate for the new features being added, and the @pipedream/platform dependency is correctly specified.

components/joggai/sources/video-status-changed/test-event.mjs (1)

1-10: Verify the timestamp value.

The timestamp 1751909260 corresponds to a date in 2025. Please confirm if this is intentional for testing purposes.

components/joggai/actions/update-product-info/update-product-info.mjs (1)

8-65: LGTM!

Well-structured action module with proper error handling and consistent use of shared utilities. The implementation follows Pipedream best practices.

components/joggai/actions/create-avatar-video/create-avatar-video.mjs (4)

1-8: LGTM on imports and structure

The imports are well-organized and follow the expected pattern for JoggAI actions, importing constants, utilities, and the app client appropriately.


10-15: LGTM on action metadata

The action metadata follows the standard Pipedream pattern with clear key, name, description, version, and type definitions.


86-91: Good validation logic for mutually exclusive parameters

The validation correctly ensures that either script OR audio URL is provided, but not both, which aligns with the API requirements described in the property descriptions.


108-112: LGTM on response handling

The response handling follows the established pattern using checkResponse utility and proper export of summary message.

components/joggai/sources/video-status-changed/video-status-changed.mjs (4)

1-3: LGTM on imports

The imports are appropriate, bringing in the base module and test event sample.


4-11: LGTM on source metadata

The source metadata follows Pipedream conventions with proper key, name, description, version, type, and dedupe strategy.


12-22: Good implementation of required methods

The getEvents() and getSummary() methods are properly implemented as required by the base class pattern. The events returned match typical video processing workflow states.


23-24: LGTM on sample emit

The sample emit is properly included for testing purposes, following the established pattern.

components/joggai/actions/create-ai-avatar-photo/create-ai-avatar-photo.mjs (4)

1-10: LGTM on imports and structure

The imports are well-organized and consistent with other JoggAI actions.


12-17: LGTM on action metadata

Good action metadata with proper documentation link included.


18-75: LGTM on property definitions

The property definitions are comprehensive and well-structured, using appropriate constants for option sets and proper optional flags.


92-96: LGTM on response handling

The response handling follows the established pattern correctly.

components/joggai/sources/common/base.mjs (3)

1-8: LGTM on structure and props

The base module properly defines the essential props for webhook sources: app instance, database, and HTTP interface.


10-19: Good webhook activation logic

The activation hook properly creates the webhook and stores the ID for later cleanup. The use of this.getEvents() correctly delegates to the implementing class.


25-31: LGTM on event emission

The event emission logic properly uses the event body and includes appropriate metadata with ID, summary, and timestamp.

components/joggai/actions/create-product-from-url/create-product-from-url.mjs (3)

1-3: LGTM on imports

The imports are minimal and appropriate for this action.


4-17: LGTM on action structure

The action metadata and property definitions are clean and well-documented with appropriate API documentation link.


18-31: LGTM on implementation

The implementation is straightforward and follows the established pattern with proper response handling and summary export.

components/joggai/actions/create-product-from-product-info/create-product-from-product-info.mjs (1)

41-57: Well-structured action implementation!

The code properly uses utility functions for media data preparation and response validation, follows async patterns correctly, and provides clear user feedback.

michelle0927
michelle0927 previously approved these changes Jul 7, 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.

LGTM

…nalProps and mediaQuantity definitions. Update base source to handle string body input gracefully.
@luancazarine
Copy link
Collaborator Author

/approve

@luancazarine luancazarine merged commit 02aa2ee into master Jul 11, 2025
11 checks passed
@luancazarine luancazarine deleted the 17338-components-joggai branch July 11, 2025 19:23
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.

[Components] joggai
2 participants