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

Abierto
#672 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Activo
Área
analytics, api

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
7.3k
Forks
552
Merge medio
1 d 2 h
PR fusionados (30 d)
18

Preparar el entorno

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Openpanel-dev/openpanel

Todos los issues de Openpanel-dev/openpanel

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.