feat: certificates, landing pages, ai tutor, website update, compliance

This commit is contained in:
Rotimi Best
2026-05-18 03:47:22 +01:00
parent c31ad63955
commit ac3a2c14a7
644 changed files with 56050 additions and 5439 deletions
@@ -132,3 +132,15 @@ export const agentUploadKeyGenerator = (c: Context): string => {
const baseKey = userKeyGenerator(c);
return `${baseKey}:agent:upload`;
};
/**
* Redis keys for engagement analytics read endpoints (landing-stats, funnel,
* country breakdown, time-to-enrollment). Value: JSON.
*/
export function dashAnalyticsKey(route: string, orgId: string, days: number, extra?: string): string {
const suffix = extra ? `:${extra}` : '';
return `dash:analytics:${route}:${orgId}:${days}${suffix}`;
}
/** TTL for engagement analytics caches (10 min). */
export const DASH_ANALYTICS_TTL_SECONDS = 600;