Document custom events and their properties inside OpenPanel (and expose them to the chat assistant and MCP)

Đang mở
#672 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Sôi nổi
Lĩnh vực
analytics, api

Hướng nghiên cứu

The payload names no source files. The relevant entry points are the EventMeta type discussed in #390, and the MCP tools list_event_names and list_event_properties, which currently return names only. Start by reading how event metadata is stored and returned, then agree a schema with maintainers before writing code. Done would mean a project can attach a description to events and properties, and that the API and MCP tools return it.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

A custom event carries only its name. What it means, when it fires (and when it deliberately does not), what each property holds, and whether its count means people or attempts all live outside OpenPanel. In our case that is a hand-maintained Markdown catalog in the repository. Everyone who reads the data has to find and trust that file, and so do the assistants that query OpenPanel.

It shows most in the chat assistant built into the dashboard: today it works poorly with custom events. OpenPanel has nowhere to keep what an event or a property means, so the assistant has nothing but the names to go on and has to guess. MCP clients are in the same position: list_event_names and list_event_properties return names only, so the meaning has to be pasted in from an external file.

Proposal

Let a project describe its events and their properties in OpenPanel itself:

  • a short description per event: what it means and when it fires;
  • a description per property of an event: what the value is, its units, its allowed values;
  • both shown where events are picked and listed, and given to the dashboard's chat assistant and returned by the API and MCP tools that list events and properties, so assistants get the meaning together with the name;
  • ideally settable through the API too, so the catalog can live next to the code and be synced from CI instead of being edited by hand.

Prior discussion

#390 proposed a description field on EventMeta and was closed ("not adding a description field to EventMeta at the moment"); #667 asks for a display name only. This request is about the underlying need, keeping the event taxonomy in OpenPanel where people and its own assistant already read the data, rather than about a particular schema. Happy to hear what shape would fit, if any.

Ngôn ngữ chính
TypeScript
Star
7.3k
Fork
552
Merge trung bình
1 ngày 2 giờ
Pull request đã merge (30 ngày)
18

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Openpanel-dev/openpanel

Tất cả issue của Openpanel-dev/openpanel

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.