Skip to content

[21034] add MCP-optimized actions for Returnista#21111

Merged
vetrivigneshwaran merged 24 commits into
masterfrom
mcp/returnista
Jun 30, 2026
Merged

[21034] add MCP-optimized actions for Returnista#21111
vetrivigneshwaran merged 24 commits into
masterfrom
mcp/returnista

Conversation

@vetrivigneshwaran

@vetrivigneshwaran vetrivigneshwaran commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Summary

Requested Actions

  1. Get Return Order (Read a single return order)
    Retrieve a single return order by ID, including status, date, price, return reason, and other details.

Endpoint: GET /account/:accountId/return-order/:id
Docs: https://platform.returnista.com/reference/rest-api/
2. List Return Orders (Read all return orders)
Retrieve a list of all return orders for an account, with filtering by status, date, return reason, etc.

Endpoint: GET /account/:accountId/return-orders
Docs: https://platform.returnista.com/reference/rest-api/
3. Approve Return Request
Approve a draft return order request, accepting it for further processing.

Endpoint: PUT /account/{accountId}/draft-return-order/{draftReturnOrderId}/accept
Docs: https://platform.returnista.com/reference/rest-api/
4. Reject Return Request
Reject a draft return order request.

Endpoint: PUT /account/{accountId}/draft-return-order/{draftReturnOrderId}/reject
Docs: https://platform.returnista.com/reference/rest-api/
5. Create Return Label (multi-step)
Create a return shipping label. This involves the following steps:

Step 5a: Create Draft Return Order
Create a new draft return order for a consumer.

Endpoint: POST /consumer/{consumerId}/draft-return-order
Docs: https://platform.returnista.com/reference/rest-api/
Step 5b: Accept Return Request
Accept the draft return order to confirm it.

Endpoint: PUT /account/{accountId}/draft-return-order/{draftReturnOrderId}/accept
Docs: https://platform.returnista.com/reference/rest-api/
Step 5c: Get Return Order Data (for label URL)
Retrieve the return order details including the label URL.

Endpoint: GET /account/:accountId/return-order/:id
Docs: https://platform.returnista.com/reference/rest-api/
6. Resend Confirmation Email
Resend the confirmation email for a return order.

Endpoint: GET /account/:accountId/return-order/:id/resend-confirmation-email
Docs: https://platform.returnista.com/reference/rest-api/

Refactored prop descriptions across all propDefinitions for improved clarity
Added 4 new methods:
createDraftReturnOrder — POST /consumer/{consumerId}/draft-return-order
resendConfirmationEmail — GET /account/{accountId}/return-order/{id}/resend-confirmation-email
(plus getReturnOrders and paginated variants added in the committed commit)

New action components added (net result)

Action | Status -- | -- process-draft-return-order | Added create-draft-return-order | Added resend-confirmation-email | Added

Resolves #21034

Checklist

Please check the following items before your PR can be reviewed:

Versioning

  • All components updated in this PR had their version updated (0.0.1 for new ones)
  • The app updated in this PR had its package.json's version updated

New app

If this is a new app, please submit an app integration request - the PR will only be reviewed after the app is integrated.

  • The app updated in this PR is already integrated

CodeRabbit review

After the PR is opened, and if new changes are pushed, CodeRabbit will automatically review it. Do not 'mark as resolved' CodeRabbit's comments, but reply to them instead, whether you agree (and update the PR accordingly) or disagree.

  • I have addressed or acknowledged all of CodeRabbit's review comments

Summary by CodeRabbit

  • New Features

    • Added actions to create draft return orders, accept/reject pending drafts, resend return confirmation emails, and list available shipping products.
    • Extended the Returnista app with REST-backed capabilities for draft creation, draft processing, shipping product retrieval, and email resending.
  • Improvements

    • Enhanced action descriptions with clearer required/optional guidance and support/audit workflow instructions.
    • Updated success messages and made response handling more resilient, including support for expanded return order data.
  • Chores

    • Bumped action/component/source versions, including the Returnista package to 1.0.0.

vetrivigneshwaran and others added 3 commits June 8, 2026 12:09
…agement

Adds 5 new list/process actions and refactors 6 existing actions with improved
prop descriptions, optional parameters, and structured response summaries for
LLM usability. Updates app.mjs with paginated methods and new API endpoints.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
new component addition and removal of newly added component for list
@vercel

vercel Bot commented Jun 9, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
pipedream-docs-redirect-do-not-edit Ignored Ignored Jun 30, 2026 5:07pm

Request Review

@pipedream-component-development

Copy link
Copy Markdown
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
Copy Markdown
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:

@coderabbitai

coderabbitai Bot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a5dfaf8a-50c0-42dd-b755-5245902a79da

📥 Commits

Reviewing files that changed from the base of the PR and between fee94bf and 53ec92e.

📒 Files selected for processing (1)
  • components/returnista/actions/list-shipping-products/list-shipping-products.mjs

📝 Walkthrough

Walkthrough

Adds draft return order creation, processing (accept/reject), and resend-confirmation actions; updates app props/methods for draft workflows; tightens create/update return-location schemas; improves defensive response handling across several Returnista actions; adds list-shipping-products action; and bumps component and source versions to 1.0.0 and 0.0.2 respectively.

Changes

Returnista Draft Return Order and Returns Management

Layer / File(s) Summary
App integration foundation with props and methods
components/returnista/returnista.app.mjs
Adds new prop definitions for draftReturnOrderId, purchaseId, return reason fields, resolutionType, exchange fields, and answers. Removes dynamic async options from returnOrderId, returnLocationId, and returnRequestId. Adds four new API methods: createDraftReturnOrder (POST), processDraftReturnOrder (PUT with action segment), resendConfirmationEmail (POST), and getShippingProducts (GET). Updates descriptions for accountId, filter, search, expand, and location fields used in support workflows.
Create draft return order action
components/returnista/actions/create-draft-return-order/create-draft-return-order.mjs
Defines the returnista-create-draft-return-order action with inputs for consumerId, purchaseId, returnReasonId, returnReasonComment, resolutionType, optional exchange fields, and answers. Conditionally JSON-parses answers array and constructs selectedPurchases payload with returnReasonId defaulting to null, calls app method, and exports success summary with draft order ID.
Process draft return order action
components/returnista/actions/process-draft-return-order/process-draft-return-order.mjs
Defines the returnista-process-draft-return-order action that accepts accountId, draftReturnOrderId, and action (accept or reject). Calls app.processDraftReturnOrder with decision, exports success summary reflecting the chosen action and draft ID, and returns API response.
Resend confirmation email action
components/returnista/actions/resend-confirmation-email/resend-confirmation-email.mjs
New action that triggers confirmation email resend for a return order by calling app.resendConfirmationEmail with accountId and returnOrderId, exporting success message with return order ID and returning API response.
List shipping products action
components/returnista/actions/list-shipping-products/list-shipping-products.mjs
New read-only action that calls app.getShippingProducts, defensively extracts products array from response.data or empty fallback, exports summary with product count, and returns products array.
Return order retrieval with expand parameter
components/returnista/actions/get-return-order/get-return-order.mjs
Updates get-return-order action to include expand prop documentation in description with references to related actions (List Return Orders, Get Return Order Emails), adds expand prop definition, and forwards expand to API call as request params for expanded related-object responses.
Query actions with defensive response handling
components/returnista/actions/get-return-order-emails/get-return-order-emails.mjs, components/returnista/actions/get-consumer-purchases/get-consumer-purchases.mjs, components/returnista/actions/get-return-request/get-return-request.mjs
Updates three query actions with expanded descriptions (support workflow guidance), defensive response parsing (extracts arrays from response.data or treats response as array/empty fallback), and revised summaries using derived lengths and identifiers.
Create return location action updates
components/returnista/actions/create-return-location/create-return-location.mjs
Expands description to enumerate required vs optional input fields, bumps version to 1.0.0, makes companyName required in props schema, and updates run summary to include created location name and response ID.
Update return location action refactoring
components/returnista/actions/update-return-location/update-return-location.mjs
Reorders/moves optional companyName prop, simplifies accountId propDefinition wrapper, updates empty-input validation message to "At least one field must be provided to update", conditionally attaches data.returnAddress only when non-empty, and simplifies post-update summary output.
Misc action version bumps
components/returnista/actions/get-draft-return-orders/*, components/returnista/actions/get-return-locations/*, components/returnista/actions/get-return-orders/*, components/returnista/actions/get-return-reasons/*, components/returnista/actions/get-return-requests/*
Incremented action version metadata to 0.0.2 across several list/get actions with no functional changes.
Source version increments
components/returnista/sources/*
Bumped source module version values from 0.0.1 to 0.0.2 across six event sources (new-return-order-created-instant, new-shipment-label-created-instant, return-order-completed-instant, return-order-confirmed-instant, sales-order-approved-or-denied-instant, shipment-received-tracking-updates-instant); no behavior changes.
Package version bump
components/returnista/package.json
Increments component package version from 0.1.0 to 1.0.0.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Suggested labels

User submitted

Suggested reviewers

  • GTFalcao
  • mariano-pd
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The PR title '[21034] add MCP-optimized actions for Returnista' is clear and directly summarizes the main change: implementing new Returnista actions tied to issue #21034.
Description check ✅ Passed The PR description comprehensively covers all requested actions, documents the four new methods, lists three added action components, includes the versioning checklist completion, and resolves the linked issue.
Linked Issues check ✅ Passed The PR implementation meets all coding requirements from issue #21034: Get Return Order (updated), List Return Orders (updated), Create Draft Return Order (new action), Process Draft Return Order with accept/reject (new action), and Resend Confirmation Email (new action) with corresponding backend methods.
Out of Scope Changes check ✅ Passed All changes are in-scope: new actions for Returnista, updated action metadata/descriptions, new backend methods, enhanced prop definitions, and necessary version bumps—all directly addressing the objectives in issue #21034.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch mcp/returnista

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

Comment @coderabbitai help to get the list of available commands and usage tips.

version update

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

Actionable comments posted: 8

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@components/returnista/actions/create-draft-return-order/create-draft-return-order.mjs`:
- Around line 89-90: Update the successful export("$summary") to include the
created draft return order's ID instead of (or in addition to) this.consumerId:
locate the success path that currently calls $.export("$summary", `Successfully
created draft return order for consumer ${this.consumerId}`) and change it to
reference the created entity identifier from the response object returned by the
create call (e.g., use response.id or response.body.id depending on where the
API puts the new record ID), so the one-line summary contains the draft return
order ID for traceability.

In
`@components/returnista/actions/create-return-location/create-return-location.mjs`:
- Line 13: The package version in the create-return-location action (the
"version" field in create-return-location.mjs) was bumped only to 0.0.2 despite
introducing breaking input-contract changes; update the version to a new major
release (e.g., 1.0.0) so the major segment is incremented to reflect the
breaking change, and ensure any other occurrences of the action's package
version referenced elsewhere (notably the related entries around lines
referenced in the review) are updated consistently.
- Around line 6-12: Update the component description for create-return-location
to explicitly list all required inputs and their formats in a "Parameter notes"
section: enumerate each required field (street, houseNumber, city, postalCode,
countryCode) plus any required metadata (e.g., name/displayName, accountId/path
parameter, contact/email/phone if applicable), state accepted formats (e.g.,
two-letter ISO 3166-1 alpha-2 for countryCode, numeric/string expectations for
houseNumber/postalCode), show examples for each, and keep the existing
documentation link; modify the description string used in create-return-location
to include this consolidated parameter notes so agents have a single concrete
place to find every required input.

In `@components/returnista/actions/get-return-order/get-return-order.mjs`:
- Line 11: The version bump is incorrect for adding a new optional prop: update
the action's version value (the "version" field currently "0.0.2") to a minor
bump "0.1.0" to reflect the new optional `expand` parameter, and also update the
component package.json version (currently patch) to at least "0.2.0" so the
package and action versions align; locate the "version" field in
get-return-order (the file declaring version: "0.0.2") and the version in the
components/returnista package.json and change them to the recommended minor
versions.

In
`@components/returnista/actions/update-return-location/update-return-location.mjs`:
- Around line 7-12: The listed props (suffix, stateProvinceCode, attention,
contactName — and any other address/contact fields mentioned around the prop
definitions) are not explicitly optional, which prevents sparse PATCH updates;
update their prop definitions in the action's props object (the prop entries
used by the update-return-location action) to mark them optional (remove any
required:true and add optional:true or the equivalent for this props system) so
callers can omit fields for partial updates, and ensure no default values force
presence.

In `@components/returnista/package.json`:
- Line 3: The package.json version "0.1.1" bump is incomplete because dependent
component versions were not updated; update the "version" field in
components/returnista/package.json and increment the corresponding dependent
component entries (the 11 dependency fields referenced by the CI error) to the
same-or-greater semantic version segment required by the changed scopes, and
also bump the parent app's package.json version by the same-or-greater semver
segment; locate the "version" key in components/returnista/package.json and the
dependency entries in the same file (and the app package.json's "version") and
raise them consistently so the CI component-version check passes.

In `@components/returnista/returnista.app.mjs`:
- Around line 203-207: Update the description for the answers prop (answers in
returnista.app.mjs) to include a concrete inline JSON example showing the
expected stringified object shape — include a minimal example that demonstrates
the top-level object with "formField" (showing id, type, required) and an
"answer" value variant (string, array of strings, or array of file objects with
mimeType and url) so consumers can copy/paste; keep the example concise and
clearly labeled as a stringified JSON example within the description text.
- Around line 169-173: The returnReasonId field is declared required but treated
as optional elsewhere (documentation and the createDraftReturnOrder mapping in
create-draft-return-order.mjs which maps blank to null); update the schema for
returnReasonId in returnista.app.mjs (the returnReasonId property) to make it
optional (remove or set the required flag to false) so callers can submit it
blank and still follow the existing mapping to null in
create-draft-return-order.mjs; ensure any validation or tests referencing
returnReasonId requiredness are updated accordingly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: a1739bce-bddc-499e-8eed-63470f258dbf

📥 Commits

Reviewing files that changed from the base of the PR and between c518c63 and 7db648b.

📒 Files selected for processing (11)
  • components/returnista/actions/create-draft-return-order/create-draft-return-order.mjs
  • components/returnista/actions/create-return-location/create-return-location.mjs
  • components/returnista/actions/get-consumer-purchases/get-consumer-purchases.mjs
  • components/returnista/actions/get-return-order-emails/get-return-order-emails.mjs
  • components/returnista/actions/get-return-order/get-return-order.mjs
  • components/returnista/actions/get-return-request/get-return-request.mjs
  • components/returnista/actions/process-draft-return-order/process-draft-return-order.mjs
  • components/returnista/actions/resend-confirmation-email/resend-confirmation-email.mjs
  • components/returnista/actions/update-return-location/update-return-location.mjs
  • components/returnista/package.json
  • components/returnista/returnista.app.mjs

Comment thread components/returnista/actions/create-return-location/create-return-location.mjs Outdated
Comment thread components/returnista/actions/get-return-order/get-return-order.mjs
Comment thread components/returnista/package.json Outdated
Comment thread components/returnista/returnista.app.mjs
Comment thread components/returnista/returnista.app.mjs

@michelle0927 michelle0927 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks like this still has some coderabbit comments to address. Also, in package.json, the minor version should be updated if new components are being added, so it should be "0.2.0".

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (2)
components/returnista/returnista.app.mjs (1)

7-213: ⚠️ Potential issue | 🟠 Major

Fix Returnista app bold tool-name cross-references in prop descriptions

  • returnOrderId and draftReturnOrderId: List Return OrdersGet Return Orders
  • returnLocationId: List Return LocationsGet Return Locations
  • returnRequestId: List Return RequestsGet Return Requests
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/returnista/returnista.app.mjs` around lines 7 - 213, The prop
descriptions for propDefinitions need updated tool-name cross-references: change
the bold text in returnOrderId and draftReturnOrderId from "**List Return
Orders**" to "**Get Return Orders**"; change returnLocationId's "**List Return
Locations**" to "**Get Return Locations**"; and change returnRequestId's "**List
Return Requests**" to "**Get Return Requests**" — locate these properties
(returnOrderId, draftReturnOrderId, returnLocationId, returnRequestId) in the
propDefinitions block and edit their description strings to replace the old
bolded tool names with the corrected ones.

Source: Coding guidelines

components/returnista/actions/get-return-order/get-return-order.mjs (1)

6-10: ⚠️ Potential issue | 🟡 Minor

Fix bold cross-reference tool name in get-return-order description

  • In components/returnista/actions/get-return-order/get-return-order.mjs, the description references List Return Orders, but the target action’s name is Get Return Orders—update the bold cross-reference to Get Return Orders.
  • Get Return Order Emails matches the referenced action name.
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/returnista/actions/get-return-order/get-return-order.mjs` around
lines 6 - 10, Update the description string in get-return-order
(components/returnista/actions/get-return-order/get-return-order.mjs) to replace
the bold cross-reference "**List Return Orders**" with the correct action name
"**Get Return Orders**" so the documented reference matches the action `name`
used elsewhere; leave "**Get Return Order Emails**" unchanged.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@components/returnista/actions/create-return-location/create-return-location.mjs`:
- Around line 7-10: The component description for create-return-location states
suffix, attention, and contactName are optional but the action's input contract
currently marks them required; update the input schema in create-return-location
(remove "suffix", "attention", and "contactName" from the required fields array
or mark them optional in the input contract) so the schema matches the
description and validation will allow agent-generated calls.

In `@components/returnista/returnista.app.mjs`:
- Around line 204-212: The prop description for answers currently includes a
documentation link which violates the guideline that only the top-level
component description should include external links; update the answers prop
(the answers field in the component schema) to remove the documentation URL from
its description while keeping the existing inline example and agent-friendly
explanation intact so only the top-level description retains the external link.

---

Outside diff comments:
In `@components/returnista/actions/get-return-order/get-return-order.mjs`:
- Around line 6-10: Update the description string in get-return-order
(components/returnista/actions/get-return-order/get-return-order.mjs) to replace
the bold cross-reference "**List Return Orders**" with the correct action name
"**Get Return Orders**" so the documented reference matches the action `name`
used elsewhere; leave "**Get Return Order Emails**" unchanged.

In `@components/returnista/returnista.app.mjs`:
- Around line 7-213: The prop descriptions for propDefinitions need updated
tool-name cross-references: change the bold text in returnOrderId and
draftReturnOrderId from "**List Return Orders**" to "**Get Return Orders**";
change returnLocationId's "**List Return Locations**" to "**Get Return
Locations**"; and change returnRequestId's "**List Return Requests**" to "**Get
Return Requests**" — locate these properties (returnOrderId, draftReturnOrderId,
returnLocationId, returnRequestId) in the propDefinitions block and edit their
description strings to replace the old bolded tool names with the corrected
ones.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 7ac0bb06-890c-40fb-82e6-c0867667a691

📥 Commits

Reviewing files that changed from the base of the PR and between ccbaea5 and 2a895ef.

📒 Files selected for processing (10)
  • components/returnista/actions/create-draft-return-order/create-draft-return-order.mjs
  • components/returnista/actions/create-return-location/create-return-location.mjs
  • components/returnista/actions/get-return-order/get-return-order.mjs
  • components/returnista/actions/update-return-location/update-return-location.mjs
  • components/returnista/package.json
  • components/returnista/returnista.app.mjs
  • components/returnista/sources/return-order-completed-instant/return-order-completed-instant.mjs
  • components/returnista/sources/return-order-confirmed-instant/return-order-confirmed-instant.mjs
  • components/returnista/sources/sales-order-approved-or-denied-instant/sales-order-approved-or-denied-instant.mjs
  • components/returnista/sources/shipment-received-tracking-updates-instant/shipment-received-tracking-updates-instant.mjs

Comment thread components/returnista/returnista.app.mjs

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
components/returnista/returnista.app.mjs (1)

68-72: ⚠️ Potential issue | 🟠 Major

Fix cross-referenced action names in returnista.app.mjs prop descriptions

  • List Return Orders, List Return Locations, and List Return Requests don’t match any action name in components/returnista/actions/; use Get Return Orders, Get Return Locations, and Get Return Requests (and for draft orders, Get Draft Return Orders).
  • Get Consumer Purchases and Get Return Reasons are valid references.
  • Update the affected description strings in components/returnista/returnista.app.mjs (around lines 71, 76, 157, 162).
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@components/returnista/returnista.app.mjs` around lines 68 - 72, Update the
description strings for the properties that reference other actions so they
point to the correct action name tokens: replace mentions of "List Return
Orders" with "Get Return Orders" in the returnOrderId property's description
(property name: returnOrderId), replace "List Return Locations" with "Get Return
Locations" in the returnLocationId property's description (property name:
returnLocationId), replace "List Return Requests" with "Get Return Requests" in
the returnRequestId property's description (property name: returnRequestId), and
for the draft orders description replace any "List Draft Return Orders" or
similar with "Get Draft Return Orders" (property name used for draft return
IDs). Keep existing sentence wording and emphasis but only swap the action
display names to the corrected "Get ..." versions; do not change other text or
property names.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@components/returnista/returnista.app.mjs`:
- Around line 68-72: Update the description strings for the properties that
reference other actions so they point to the correct action name tokens: replace
mentions of "List Return Orders" with "Get Return Orders" in the returnOrderId
property's description (property name: returnOrderId), replace "List Return
Locations" with "Get Return Locations" in the returnLocationId property's
description (property name: returnLocationId), replace "List Return Requests"
with "Get Return Requests" in the returnRequestId property's description
(property name: returnRequestId), and for the draft orders description replace
any "List Draft Return Orders" or similar with "Get Draft Return Orders"
(property name used for draft return IDs). Keep existing sentence wording and
emphasis but only swap the action display names to the corrected "Get ..."
versions; do not change other text or property names.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2e4efdec-ea4f-4539-a78a-b781a4f4f767

📥 Commits

Reviewing files that changed from the base of the PR and between 2a895ef and cb53347.

📒 Files selected for processing (2)
  • components/returnista/actions/create-return-location/create-return-location.mjs
  • components/returnista/returnista.app.mjs

Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs
Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs Outdated
Comment thread components/returnista/returnista.app.mjs Outdated

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@components/returnista/actions/list-shipping-products/list-shipping-products.mjs`:
- Around line 22-24: The list-shipping-products action uses a simpler defensive
parsing pattern than get-return-order-emails, which creates inconsistency across
list actions in the Returnista connector. Update the products variable
assignment to use the more defensive extraction pattern that checks if response
has a data property, and if not, checks if response itself is an array before
defaulting to an empty array. Additionally, change the return statement to
return the full response object instead of just the extracted products array,
matching the pattern used in get-return-order-emails for consistency.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: d1dd8f42-c06e-4221-9035-0b6ce05af428

📥 Commits

Reviewing files that changed from the base of the PR and between cb53347 and fee94bf.

📒 Files selected for processing (7)
  • components/returnista/actions/get-return-order-emails/get-return-order-emails.mjs
  • components/returnista/actions/get-return-order/get-return-order.mjs
  • components/returnista/actions/get-return-request/get-return-request.mjs
  • components/returnista/actions/list-shipping-products/list-shipping-products.mjs
  • components/returnista/actions/resend-confirmation-email/resend-confirmation-email.mjs
  • components/returnista/actions/update-return-location/update-return-location.mjs
  • components/returnista/returnista.app.mjs

Comment thread components/returnista/actions/list-shipping-products/list-shipping-products.mjs Outdated
michelle0927
michelle0927 previously approved these changes Jun 16, 2026

@michelle0927 michelle0927 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM! Ready for QA!

update the version
Change in the description
changes with respect to mcp
Update in the version
Update in the description

@michelle0927 michelle0927 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@vetrivigneshwaran vetrivigneshwaran merged commit f62fa28 into master Jun 30, 2026
9 checks passed
@vetrivigneshwaran vetrivigneshwaran deleted the mcp/returnista branch June 30, 2026 17:17
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.

ACTION Returnista

4 participants