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

オープン
#672 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
説明が足りない
活発さ
活発
領域
analytics, api

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
7.3k
フォーク
552
平均マージ
1日 2時間
マージ済み PR(30日)
18

環境構築

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Openpanel-dev/openpanel のほかの issue

Openpanel-dev/openpanel の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。