Fix OG image, CBT filters, syllabus split, and trial duration

This commit is contained in:
2026-09-22 17:39:18 +05:30
parent e6f1fc9c1f
commit 6e8df1841e
5 changed files with 119 additions and 66 deletions

View File

@@ -14,9 +14,9 @@ export function ProgressShare() {
const streak = "12"
const accuracy = "85"
const name = user?.name || "Student"
// Use a fallback image if API endpoint is not yet ready, else use real endpoint
const imageUrl = `/api/og/progress?streak=${streak}&accuracy=${accuracy}&name=${encodeURIComponent(name)}`
const target = user?.target_exam === "NEET" ? "NEET" : "JEE"
const plan = user?.tier === "Al_Coach" ? "AI Coach" : user?.tier || "Free"
const imageUrl = `/api/og/progress?streak=${streak}&accuracy=${accuracy}&name=${encodeURIComponent(name)}&target=${target}&plan=${encodeURIComponent(plan)}`
const handleDownload = async () => {
try {