Add app analytics and owner install stats
Closed
MA
1mo ago+7844+7844+0123456789012345678901234567890123456789-2114-2114-0123456789012345678901234567890123456789
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:
- Record app metrics.
- Add authorized analytics queries.
- Regenerate GraphQL clients.
- Add the console report.
- 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.