Feature/live class share#25
Open
PRODHOSH wants to merge 2 commits into
Open
Conversation
Adds a Share button (WhatsApp, Telegram, Email, Copy Link) to the mentor and admin live-classes consoles. Instead of exposing the raw meeting link, each share links to a new dedicated per-class page (/dashboard/live-classes/[id]) that enforces the existing enrollment check server-side and shows a clear access-denied/not-found state. Also fixes a live bug: lib/rate-limit/index.ts was an unused, broken duplicate of lib/rate-limit.ts (it imported the uninstalled @upstash/redis package and didn't export apiRateLimiter), and it was shadowing the real module for every route importing "@/lib/rate-limit", causing /api/live-classes and others to 500. Removed the dead file. Also parallelizes the enrollment + class Supabase queries in both live-classes API routes, and stops the live-classes list page from polling every 30s while the tab is in the background. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
PRODHOSH
commented
Jul 22, 2026
PRODHOSH
left a comment
Member
Author
There was a problem hiding this comment.
love the share idea, but few issues are here
- u deleted the lib/rate-limit/index.ts and that breaks the imports in payment and compiler api routes
meaning no one can buy our courses if i merge this
from here on, check the https://bsprep-api-docs.vercel.app and also the schema frm supabase
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.