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

未关闭
#672 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
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 小时
30 天内合并 PR
18

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

Openpanel-dev/openpanel 的其他 Issue

查看 Openpanel-dev/openpanel 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。