mirror of
https://github.com/garrytan/gstack.git
synced 2026-08-07 23:08:36 +02:00
docs: cross-reference leaderboard duplication, service-role-key warning
- Add cross-reference comments between dashboard-queries.ts computeLeaderboard() and dashboard/ui.ts renderLeaderboard() so maintainers know to update both - Add security note in setup-team-dashboard about service-role-key visibility in pg_cron job table Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
4093c5e031
commit
238e89db9a
@@ -228,6 +228,9 @@ export function computeCostTrend(evalRuns: Record<string, unknown>[]): CostTrend
|
||||
return { weekly, totalAllTime };
|
||||
}
|
||||
|
||||
// NOTE: The dashboard UI (supabase/functions/dashboard/ui.ts renderLeaderboard())
|
||||
// has a parallel client-side implementation of this logic. If you change the
|
||||
// aggregation or sorting here, update the dashboard JS too.
|
||||
/**
|
||||
* Compute team leaderboard for the current week.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user