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

Aperta
#672 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Ambito
analytics, api

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
7.3k
Fork
552
Merge medio
1g 2h
PR unite (30g)
18

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Nessun modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Openpanel-dev/openpanel

Tutte le issue di Openpanel-dev/openpanel

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.