Dashboard Overview
vaivi-test · Updated just now
User Management
2,847 total users · 5 banned
| User | Tier | Rank | XP | Cases | Avg | Status | Actions |
|---|
Revenue & Subscriptions
Mock data — connect Razorpay/Play Billing for live figures
Case Analytics
Usage patterns, scores, and AI performance
Community Moderation
Loading…
| Post | Author | Dept | ♥ | Comments | Flag | Actions |
|---|
User Reports
3 open · 18 resolved this month
User Feedback
42 submissions · 28 unread
Sessions & Device Management
Live from SessionService · 15-min token validation · 2 multi-device alerts
Subscription Expiry Queue
Users expiring within 30 days · Hooks into subscriptionExpiryReminder CF
| User | Tier | Expires | Days Left | Cases/Mo | Reminder | Actions |
|---|
Referral Analytics
referrals/ collection · 1500 coins per successful referral
| User | Referrals | Coins | Conv. |
|---|
Gemini Token Cost Monitor
gemini-2.5-flash · Cloud Function proxy · Estimates based on token pricing
Promo Codes
sys_config/discounts
| Code | Discount | Applies To | Uses | Expires | |
|---|---|---|---|---|---|
| LAUNCH20 | 20% | All plans | 48 / ∞ | 31 Mar 2026 | |
| AIIMS50 | 50% | Pro only | 12 / 50 | 30 Apr 2026 | |
| YEARLY25 | 25% | Yearly only | 7 / 100 | 15 Jun 2026 |
Push Broadcasts
sendAdminBroadcast CF → FCM → all users
Payment Failures
Failed Razorpay / Play Billing transactions · Wire to payment webhook once live
| User | Plan | Amount | Failure Reason | Retries | Failed At | Status | Actions |
|---|
Cohort Retention
Users grouped by signup week · % still active at 1w / 2w / 4w / 8w
LOR Tracker
Letter of Recommendation requests · draftLOR CF · Eligibility: Pro+, 1000 cases, 3.5 avg
| User | Tier | Cases | Avg Score | Generated | Downloaded | Status | Actions |
|---|
Coin Economy Health
10 coins = ₹1 · Max 50% discount · 1500 coins per referral
Partner Portal
B2B licensing stub · partner.vaivi.app · Hospital & medical college accounts
partners/ collection when Enterprise contracts go live. Use for investor demos now.| Institution | Type | Seats | Active | Contract Expiry | MRR (₹) | Status | Actions |
|---|
Gemini Error Log
Failed / timed-out Cloud Function calls · Add token_logs writes to index.js to populate
| Time | Function | Error Type | User | Dept | Duration | Retried |
|---|
Prompt Version Tracker
Log system prompt changes in Firestore prompt_versions/ and track score impact
| Version | Deployed | Function | Change Summary | Avg Score Before | Avg Score After | Delta | Cases Sampled |
|---|---|---|---|---|---|---|---|
| v1.4 | 19 Mar 2026 | generateCase | Added anti-repetition instruction for recent 5 cases | 3.38 | 3.52 | +0.14 | 214 |
| v1.3 | 10 Mar 2026 | evaluateSimulation | Tightened scoring rubric for Investigation domain | 3.61 | 3.44 | -0.17 | 389 |
| v1.2 | 01 Mar 2026 | generateCase | Compressed system prompt by 28% (token cost reduction) | 3.40 | 3.38 | -0.02 | 401 |
| v1.1 | 18 Feb 2026 | evaluateSimulation | Added 5-day timeline generation instruction | 3.21 | 3.40 | +0.19 | 298 |
Case Quality Sampling
Random daily sample of AI-generated cases for spot-checking · Flag hallucinations or drift
CF & Infrastructure Health
Cloud Function latency · Firestore cost · Scheduled CF status · App version distribution
Streak Health Dashboard
Core retention mechanic visibility · users/{uid}.currentStreak + lastCaseDate
| User | Streak | Last Active | Tier | Risk | Actions |
|---|
Flashcard Engagement
SM2 algorithm data · users/{uid}.flashcards array · Due vs reviewed rates
Milestone Tracker
kCertMilestones proximity · Pipeline to rank-ups · Target “almost there” nudges
| User | Milestone | Tier | Achieved At | Certificate | Notified |
|---|
Notification Performance
FCM delivery · Open rate · Tap-through by type · Wire to analytics_events/ collection
Audit Log
Every admin action · Write to admin_logs/{auto-id} in Firestore · Non-deletable
| Timestamp | Admin | Action Type | Target | Details | Reversible |
|---|
Banned Users Registry
All banned accounts with reason, history & appeal workflow · users/{uid}.isBanned
| User | Banned By | Ban Date | Reason | Cases Before Ban | Appeal | Actions |
|---|
Content Moderation Queue
Auto-flagged posts awaiting review before going live · Keyword filter + low like/report ratio