Add app analytics and owner install stats

Closed
MA
1mo ago
+7844-2114

Closes twentyhq/core-team-issues#3003

Adds App analytics to the log console (⌘J): installs, versions, function runs and errors, rate limits, and credits. Owners can view all installs; workspace members can view their workspace’s activity.

Adds Install Stats to the app owner’s General page, using the existing admin card. The list of workspace identities stays admin-only.

Review in commit order:

  1. Record app metrics.
  2. Add authorized analytics queries.
  3. Regenerate GraphQL clients.
  4. Add the console report.
  5. Add the owner Install Stats panel.

Console analytics requires CLICKHOUSE_URL and the existing logs feature flag.

Validation: 76 tests passed; frontend and server typechecks, lint, and formatting passed.