stack/apps/backend
Devin AI f6c524672f fix: address PR review comments on platform analytics
- Add branchId filter to analyticsByProject query (was missing, inflating counts)
- Exclude internal project from all ClickHouse aggregates via customerUserScope/customerEventScope
- Add branch_id filter to all event-based analytics queries for consistency
- Fix MRR quantity coercion: validate quantity instead of || 1 (zero quantity was inflating MRR)
- Use Map for usersByCountry to prevent prototype pollution from ClickHouse keys
- Remove misleading 'half' variable, inline Math.max(1, WINDOW_DAYS)
- Fix feature adoption denominator: use data.projects.length and clamp progress bar to 0-100%
- Add unit tests for ensurePlatformAdmin / isPlatformAdmin guard

Co-Authored-By: mantra <mantra@stack-auth.com>
2026-06-19 00:42:51 +00:00
..
prisma feat(hexclave): PR 3 — native @hexclave/* source rename + delete dual-publish wiring (#1482) 2026-05-29 15:21:59 -07:00
scripts feat(analytics): add route analytics heatmaps (#1520) 2026-06-15 12:06:16 -07:00
src fix: address PR review comments on platform analytics 2026-06-19 00:42:51 +00:00
.env feat(hexclave): PR 2 — visible rebrand (Hexclave brand goes public) (#1481) 2026-05-26 19:18:20 -07:00
.env.development feat(hexclave): PR 2 — visible rebrand (Hexclave brand goes public) (#1481) 2026-05-26 19:18:20 -07:00
.eslintrc.cjs tsup for stack-shared (#647) 2025-04-28 21:26:52 -07:00
.gitignore private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
instrumentation-client.ts feat(hexclave): PR 3 — native @hexclave/* source rename + delete dual-publish wiring (#1482) 2026-05-29 15:21:59 -07:00
LICENSE Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
next.config.mjs private files n sm build shit (#1276) 2026-03-23 12:31:36 -07:00
package.json add platform analytics route to the dashboard 2026-06-18 16:53:03 -07:00
prisma.config.ts [Fix]: Assortment of Bugs with Timefold Table and Payments (#1348) 2026-04-18 14:17:24 -07:00
tsconfig.json Fix lint 2026-02-27 09:59:26 -08:00
vercel.json External db sync (#1036) 2026-02-05 12:04:31 -08:00
vitest.config.ts Add LLM metadata endpoints (#1499) 2026-05-28 18:07:28 -07:00
vitest.setup.ts Customizable ports (#962) 2025-10-20 15:24:47 -07:00