-
Notifications
You must be signed in to change notification settings - Fork 5.6k
WICS - new components #19362
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
base: master
Are you sure you want to change the base?
WICS - new components #19362
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. 2 Skipped Deployments
|
WalkthroughThis PR adds three new actions to the WICS app component (get order by additional reference, update order, delete order line) and enhances the core WICS app module with API integration capabilities. Minor trailing newline formatting changes are applied to unrelated app files. Package dependencies are updated to include Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~35 minutes
Suggested reviewers
Pre-merge checks and finishing touches❌ Failed checks (2 inconclusive)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 3
📜 Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (13)
components/eaccounting/eaccounting.app.mjs(1 hunks)components/factorial_api_keys/factorial_api_keys.app.mjs(1 hunks)components/flowii/flowii.app.mjs(1 hunks)components/hailey_hr/hailey_hr.app.mjs(1 hunks)components/nuvemshop/nuvemshop.app.mjs(1 hunks)components/simpleem/simpleem.app.mjs(1 hunks)components/suitecrm/suitecrm.app.mjs(1 hunks)components/wics/actions/delete-order-line/delete-order-line.mjs(1 hunks)components/wics/actions/get-order-by-additional-reference/get-order-by-additional-reference.mjs(1 hunks)components/wics/actions/update-order/update-order.mjs(1 hunks)components/wics/common/utils.mjs(1 hunks)components/wics/package.json(2 hunks)components/wics/wics.app.mjs(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: 2024-12-12T19:23:09.039Z
Learnt from: jcortes
Repo: PipedreamHQ/pipedream PR: 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.
Applied to files:
components/wics/package.json
📚 Learning: 2025-09-15T22:01:11.472Z
Learnt from: GTFalcao
Repo: PipedreamHQ/pipedream PR: 18362
File: components/leonardo_ai/actions/generate-image/generate-image.mjs:103-105
Timestamp: 2025-09-15T22:01:11.472Z
Learning: In Pipedream components, pipedream/platform's axios implementation automatically excludes undefined values from HTTP requests, so there's no need to manually check for truthiness before including properties in request payloads.
Applied to files:
components/wics/wics.app.mjs
🧬 Code graph analysis (1)
components/wics/actions/update-order/update-order.mjs (1)
components/wics/common/utils.mjs (2)
parseObject(1-32)parseObject(1-32)
⏰ 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: Verify TypeScript components
- GitHub Check: Publish TypeScript components
- GitHub Check: Lint Code Base
🔇 Additional comments (17)
components/eaccounting/eaccounting.app.mjs (1)
11-11: Formatting-only change; no issues.This is a trailing newline adjustment with no functional impact.
components/nuvemshop/nuvemshop.app.mjs (1)
11-11: Unrelated formatting change; verify scope.This file is unrelated to the PR objectives, which focus on adding WICS app actions (get order, update order, delete order line). Only a trailing newline was added here. If this change is incidental, consider excluding it from the PR or confirming it's intentional alongside the primary WICS work.
components/simpleem/simpleem.app.mjs (1)
1-11: Trivial whitespace change.components/flowii/flowii.app.mjs (1)
11-11: No concerns.This change is a minor formatting adjustment (trailing newline) with no functional impact.
components/suitecrm/suitecrm.app.mjs (1)
11-11: Trailing newline formatting — LGTM.This is an incidental cosmetic improvement and does not affect functionality. The change is approved.
components/hailey_hr/hailey_hr.app.mjs (1)
11-11: LGTM!Trailing newline formatting change - no functional impact.
components/wics/package.json (1)
3-17: LGTM!Version bump to 0.1.0 is appropriate for new feature additions, and
@pipedream/platformdependency is required for the HTTP request utilities used in the new actions.components/factorial_api_keys/factorial_api_keys.app.mjs (1)
11-11: LGTM!Trailing newline formatting change - no functional impact.
components/wics/common/utils.mjs (1)
1-10: Approve the core parsing logic.The JSON parsing with fallback and the falsy-to-undefined conversion are appropriate for normalizing optional Pipedream prop inputs.
components/wics/actions/get-order-by-additional-reference/get-order-by-additional-reference.mjs (1)
3-22: LGTM!Action metadata and props are well-defined. The annotations correctly indicate this is a read-only, non-destructive operation.
components/wics/actions/delete-order-line/delete-order-line.mjs (1)
1-41: LGTM! Well-structured delete action.The action is correctly implemented with appropriate destructive annotations and proper use of propDefinitions. The logic is straightforward and follows Pipedream patterns.
components/wics/wics.app.mjs (3)
6-53: LGTM! Proper dynamic prop definitions.The propDefinitions correctly fetch data from the API and map to user-friendly options. The use of optional chaining provides good defensive programming against missing data.
58-100: LGTM! Clean API method implementations.The
_makeRequesthelper correctly configures axios with basic authentication, and all API methods properly delegate to it with the appropriate HTTP methods and paths.
55-57: Verify environment field format in base URL construction.The base URL is constructed by concatenating
this.$auth.environmentdirectly withservicelayer.wics.nl/api. This pattern assumes the environment field contains a full protocol and optional subdomain prefix (e.g.,https://test-). The auth field definition for theenvironmentproperty should be verified to ensure:
- The expected format is clearly documented
- Input validation is applied to prevent malformed URLs
- The pattern is intentional or should be refactored for clarity and robustness
components/wics/actions/update-order/update-order.mjs (3)
1-173: LGTM! Comprehensive props for order updates.The action provides a thorough set of optional props for updating various order fields. The descriptions are clear and helpful for users.
199-236: LGTM! Proper merge of existing and new data.The update logic correctly merges the existing order data with new values. Undefined values from unprovided optional props are automatically excluded by axios from
@pipedream/platform, so only the fields the user actually wants to update will be sent to the API.Based on learnings, axios from @pipedream/platform automatically excludes undefined values from requests.
237-239: LGTM! Proper action completion.The summary export and data return follow standard Pipedream patterns.
components/wics/actions/get-order-by-additional-reference/get-order-by-additional-reference.mjs
Show resolved
Hide resolved
|
@vunguyenhung We have an account in 1PW w/ |
Resolves #19207
Resolves #19359
Summary by CodeRabbit
New Features
Style
Chores
✏️ Tip: You can customize this high-level summary in your review settings.