• Модуль интеграций
  • Сообщество
  • Блог
Документация
Плагины и интеграцииВсе расширения для Medusa от сообществаСтартерыЗапускайте проекты быстрее с готовыми решениями
ЭкспертыПодберите специалиста для разработки и развития вашего проекта на MedusaКейсыПосмотрите примеры Medusa в продакшене и успешные внедрения
Представляем готовый к продакшену Medusa DTC Starter от Gorgo

26 августа 2026 г. · Продукт

Gorgo снижает затраты на адаптацию Medusa к локальным рынкам.

Мы разрабатываем плагины интеграции, осуществляем поддержку и развиваем сообщество разработчиков на Medusa в Telegram.

  • Ресурсы Medusa
  • Плагины и интеграции
  • Модуль интеграций
  • Стартеры
  • Эксперты
  • Кейсы
  • Medusa Чат в Telegram
  • Medusa Новости в Telegram
  • Документация Gorgo
  • Связаться с нами
  • TelegramGitHub
Плагины
O

Order comments

Внутренние комментарии к заказам с указанием автора и полной историей для Medusa Admin.

npm install medusa-plugin-order-comments
Категория
Другое
Создано
Slowpokes
Версия
0.1.0
Последнее обновление
6 дней назад
Ежемесячные загрузки
Загрузка данных
Звезды на Github
0
npmNPMGitHubGithub

Medusa Order Comments

Add private, attributed comments to orders in the Medusa Admin. The plugin keeps the complete comment history next to the order and highlights the latest entry.

Medusa documentation · Report an issue

Features

  • Adds an Order comments widget to the order details side column.
  • Opens an inline textarea from the Add comment button.
  • Shows every comment, newest first, without pagination.
  • Shows the latest comment at the top and labels it Latest.
  • Records the admin user's ID, name, email, and creation time.
  • Preserves the author's display data if the admin account is later changed or removed.
  • Stores comments in a dedicated module and database table; Medusa core files are not modified.
  • Exposes authenticated Admin API endpoints for listing and creating comments.

Comments are internal to the Admin API. No Store API route is registered.

Compatibility

  • Medusa
  • Node.js
  • PostgreSQL (the database supported by Medusa 2 production projects)

Medusa 2.17.2 is the minimum because this plugin uses the current layout injection zone.

Installation

Install the plugin in the Medusa application's backend directory:

Register it in :

Run the plugin migration and rebuild/start Medusa:

During development, use instead of the last two commands.

Open an order in Medusa Admin. The Order comments widget appears in the side column. On Medusa versions with layout configuration, an administrator can move the widget to another position on the order page.

Admin API

Both routes use Medusa's standard admin authentication.

List all comments for an order

GET /admin/orders/{order_id}/comments

The endpoint deliberately returns the complete history, sorted from newest to oldest.

Add a comment

Comments are trimmed, must not be empty, and can contain up to 5,000 characters. The author is always taken from the authenticated admin session; clients cannot impersonate another author.

Activity timeline

Medusa doesn't expose a supported extension point for inserting custom records into the core order Activity timeline. This plugin therefore renders its own complete history in the documented widget zone. It does not patch or import private Dashboard internals.

Data model and behavior

Comments are append-only from the public plugin API. The plugin intentionally doesn't expose edit or delete routes, which keeps the order's internal audit trail understandable. Medusa's generated soft-delete support remains available to custom server-side code using the module service.

The plugin stores a snapshot of the author's name and email with every comment. This is useful for attribution, but it also means comment rows contain personal data. Include this table in your organization's retention and data-access policies.

Local plugin development

Module integration tests require PostgreSQL and the , , , and environment variables.

To test the package in another Medusa application with Medusa's local registry:

npx medusa plugin:publish

Then, in the target Medusa backend:

License

MIT

Еще в этой категории

Посмотреть все
Другое
Gati logo

Gati

От Devx Commerce

Синхронизируйте Medusa с Gati ERP

Загрузка данных
npm
Другое
Product Reviews logo

Product Reviews

От Lambda Curry

Добавляйте рейтинги, отзывы и модерацию товаров

Загрузка данных
GitHubnpm
Другое
Variant Images logo

Variant Images

От Betanoir

Организуйте и загружайте варианты изображений в Medusa

Загрузка данных
GitHubnpm
npm install medusa-plugin-order-comments
1import { defineConfig } from "@medusajs/framework/utils"
2
3module.exports = defineConfig({
4 plugins: [
5 {
6 resolve: "medusa-plugin-order-comments",
7 options: {},
8 },
9 ],
10})
1npx medusa db:migrate
2npm run build
3npm run start
1{
2 "comments": [
3 {
4 "id": "ordcom_...",
5 "order_id": "order_...",
6 "content": "Call the customer before shipping.",
7 "author_id": "user_...",
8 "author_email": "admin@example.com",
9 "author_first_name": "Ada",
10 "author_last_name": "Lovelace",
11 "created_at": "2026-09-17T12:00:00.000Z",
12 "updated_at": "2026-09-17T12:00:00.000Z"
13 }
14 ]
15}
1POST /admin/orders/{order_id}/comments
2Content-Type: application/json
3
4{
5 "content": "Call the customer before shipping."
6}
1corepack enable
2pnpm install
3pnpm test:unit
4pnpm test:integration:modules
5pnpm lint
6pnpm typecheck
7pnpm build
1npx medusa plugin:add medusa-plugin-order-comments
2npx medusa db:migrate