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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
import {
  Activity,
  AlignLeft,
  BarChart2,
  Brain,
  ClipboardList,
  Compass,
  CreditCard,
  FileText,
  Flame,
  Grid3x3,
  Lightbulb,
  LineChart,
  ListChecks,
  Map,
  Moon,
  Network,
  NotebookPen,
  PenLine,
  Sigma,
  Sparkles,
  Tag,
  Target,
  Trophy,
  Video,
} from "lucide-react";
// BookOpen, Layers reserved for future studio cards
import type {
  QuickAction,
  ScoreEngineCard,
  StudioCard,
  StudyFeature,
  StudyHubCard,
} from "./workspaceTypes";

// ─── Quick actions (bottom bar) ───────────────────────────────────────────────

export const quickActions: QuickAction[] = [
  {
    id: "exam-notes",
    label: "Make Exam Notes",
    icon: NotebookPen,
    prompt:
      "Create concise exam-ready notes from this source. Focus on scoring keywords, definitions, formulas, diagrams, and common mistakes.",
  },
  {
    id: "pyq-patterns",
    label: "Find PYQ Patterns",
    icon: ListChecks,
    prompt:
      "Analyze this source for important topics. Use uploaded question papers before claiming PYQ patterns.",
  },
  {
    id: "likely-questions",
    label: "Practice Questions",
    icon: Target,
    prompt:
      "Create important practice questions from this source and group them by 1 mark, 2 marks, 3 marks, and 5 marks.",
  },
  {
    id: "practice-test",
    label: "Practice Test",
    icon: Grid3x3,
    prompt:
      "Create a short practice test from this source with answers after each question.",
  },
  {
    id: "flashcards",
    label: "Flashcards",
    icon: Sparkles,
    prompt:
      "Create flashcards from this source for quick revision.",
  },
  {
    id: "last-night",
    label: "Last Night Plan",
    icon: Moon,
    prompt:
      "Create a last-night study plan from this source. Prioritize only the most important scoring areas.",
  },
];

export const extraQuickActions: QuickAction[] = [
  {
    id: "formula-sheet",
    label: "Formula Sheet",
    icon: Sigma,
    prompt: "List all important formulas from my source with SI units, conditions of validity, and exam tips.",
  },
  {
    id: "explain-simple",
    label: "Simplify Topic",
    icon: Lightbulb,
    prompt: "Explain the most complex topic from my source in the simplest way possible. Use analogies and examples a 10th grader would understand.",
  },
  {
    id: "compare-table",
    label: "Comparison Table",
    icon: AlignLeft,
    prompt: "Create a comparison table of the key concepts from my source. Include differences, similarities, and exam-relevant points.",
  },
  {
    id: "exam-mistakes",
    label: "Common Mistakes",
    icon: Activity,
    prompt: "List the most common mistakes students make when answering exam questions from this topic. Include how to avoid each mistake.",
  },
  {
    id: "mind-map",
    label: "Mind Map",
    icon: Network,
    prompt: "Create a text-based mind map of the key concepts from my source showing how topics connect to each other.",
  },
  {
    id: "scoring-tips",
    label: "Scoring Tips",
    icon: Trophy,
    prompt: "Give me specific tips to score maximum marks on questions from this topic. Include keyword strategies, answer structure, and diagram advice.",
  },
];

// ─── Score Engine: Main Exam Actions ──────────────────────────────────────────

export const mainExamCards: ScoreEngineCard[] = [
  {
    id: "pyq-brain",
    title: "Uploaded PYQ signals",
    subtitle: "Patterns only from question papers you add",
    icon: Brain,
    accent: "from-amber-500/30 to-amber-800/10",
    badge: "Evidence needed",
    section: "main_exam",
    action: "chat",
    promptTemplate:
      "Analyze uploaded question papers for {subject}. Compare only those papers and do not claim broader or 10-year trends.",
  },
  {
    id: "last-night-study",
    title: "Last Night Study",
    subtitle: "Scoring points only, minimum time maximum marks",
    icon: Moon,
    accent: "from-amber-500/25 to-amber-800/10",
    badge: "High-impact",
    section: "main_exam",
    action: "chat",
    promptTemplate:
      "Create a last-night study plan for {source} ({subject}). Include scoring keywords, key definitions, practice questions, memory tricks, and a timed plan for fast revision tonight.",
  },
  {
    id: "likely-questions",
    title: "Practice Questions",
    subtitle: "Questions supported by this material",
    icon: Target,
    accent: "from-emerald-500/25 to-emerald-800/10",
    badge: "Exam-focused",
    section: "main_exam",
    action: "chat",
    promptTemplate:
      "Create important exam-style practice questions from {source} for {subject}. For each question show marks allocation, question type, source support, and answer structure.",
  },
  {
    id: "practice-test",
    title: "Practice Test",
    subtitle: "Real exam-style practice with answer review",
    icon: ClipboardList,
    accent: "from-blue-500/25 to-blue-800/10",
    section: "main_exam",
    action: "chat",
    promptTemplate:
      "Create a complete practice test from {source} for {subject}. Include 10 questions: 4 MCQ, 3 short answer (2 marks each), 2 long answer (4 marks), 1 case study (5 marks). Provide answer key and marking scheme.",
  },
];

// ─── Score Engine: Video Card ──────────────────────────────────────────────────

export const videoCard: ScoreEngineCard = {
  id: "ai-study-video",
  title: "Study Video Plan",
  subtitle:
    "Turn your source into a voice-led lesson with visuals, subtitles, and MP4 export",
  icon: Video,
  accent: "from-pink-500/25 to-rose-800/10",
  badge: "Video-ready",
  section: "video",
  action: "navigate",
  path: "/video-generator",
};

// ─── Score Engine: Create From Source ────────────────────────────────────────

export const createCards: ScoreEngineCard[] = [
  {
    id: "smart-notes",
    title: "Smart Notes",
    subtitle: "Exam-ready scoring notes",
    icon: NotebookPen,
    accent: "from-amber-500/20 to-amber-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "Create structured exam-ready smart notes from {source} ({subject}). Include: main concepts, key definitions, exam keywords, and important points for scoring.",
  },
  {
    id: "summary",
    title: "Summary",
    subtitle: "Clear topic overview",
    icon: AlignLeft,
    accent: "from-blue-500/20 to-blue-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "Write a clear concise summary of {source} for {subject}. Cover all main concepts in simple language for easy revision.",
  },
  {
    id: "flashcards",
    title: "Flashcards",
    subtitle: "Smart recall cards",
    icon: CreditCard,
    accent: "from-amber-500/20 to-amber-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "Create 10 flashcards from {source} for {subject}. Format: Front: key question or term. Back: complete answer or definition.",
  },
  {
    id: "mind-map",
    title: "Mind Map",
    subtitle: "Visualize and connect concepts",
    icon: Network,
    accent: "from-teal-500/20 to-teal-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "Create a text mind map for {source} ({subject}). Show: central topic, main branches with sub-topics, and key connections.",
  },
  {
    id: "key-terms",
    title: "Key Terms",
    subtitle: "Important vocabulary & definitions",
    icon: Tag,
    accent: "from-emerald-500/20 to-emerald-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "List all important key terms and definitions from {source} for {subject}. Format: Term β†’ Definition. Group by topic.",
  },
  {
    id: "exam-answer",
    title: "Exam Answer Builder",
    subtitle: "Write complete scoring answers",
    icon: PenLine,
    accent: "from-rose-500/20 to-rose-800/5",
    section: "create",
    action: "chat",
    promptTemplate:
      "Write complete scoring exam answers for the main topics in {source} ({subject}). Use proper exam format: introduction, key points, conclusion, keywords.",
  },
  {
    id: "formula-sheet",
    title: "Formula Sheet",
    subtitle: "All formulas with SI units",
    icon: Sigma,
    accent: "from-pink-500/20 to-pink-800/5",
    section: "create",
    action: "chat",
    scienceOnly: true,
    promptTemplate:
      "List all formulas from {source} for {subject}. For each: formula, define every symbol, SI unit, and when to apply it.",
  },
  {
    id: "graph-explainer",
    title: "Graph Explainer",
    subtitle: "Understand graphs and plots",
    icon: Activity,
    accent: "from-cyan-500/20 to-cyan-800/5",
    section: "create",
    action: "chat",
    scienceOnly: true,
    promptTemplate:
      "Identify and explain all graphs from {source} ({subject}). For each: axes labels, curve shape, what it represents, and exam significance.",
  },
];

// ─── Score Engine: Improve Score ──────────────────────────────────────────────

export const improveCards: ScoreEngineCard[] = [
  {
    id: "chapter-priority",
    title: "Chapter Priority",
    subtitle: "What to study first for max marks",
    icon: Flame,
    accent: "from-orange-500/20 to-orange-800/5",
    section: "improve",
    action: "chat",
    promptTemplate:
      "Based on {source} for {subject}, create a priority list: which chapters and topics to study first for maximum exam marks. Include time recommendation per topic.",
  },
  {
    id: "weak-areas",
    title: "Weak Area Finder",
    subtitle: "Identify gaps and how to fix them",
    icon: Lightbulb,
    accent: "from-yellow-500/20 to-yellow-800/5",
    section: "improve",
    action: "chat",
    promptTemplate:
      "Identify the most commonly confused and weak areas in {source} for {subject}. Show what students usually get wrong and exactly how to avoid those mistakes in exams.",
  },
  {
    id: "study-path",
    title: "Study Path",
    subtitle: "Personalized learning plan",
    icon: Compass,
    accent: "from-indigo-500/20 to-indigo-800/5",
    section: "improve",
    action: "chat",
    promptTemplate:
      "Create a personalized study path for {source} ({subject}). Include: topic order, time per topic, difficulty progression, and milestones to track my progress.",
  },
  {
    id: "performance",
    title: "Performance Review",
    subtitle: "Analyze strengths & gaps",
    icon: BarChart2,
    accent: "from-amber-500/20 to-amber-800/5",
    section: "improve",
    action: "chat",
    promptTemplate:
      "Based on {source} for {subject}, review my preparation readiness. Assess: which topics are exam-ready, which need more work, and give a realistic score prediction with improvement steps.",
  },
  {
    id: "scoring-strategy",
    title: "Scoring Strategy",
    subtitle: "Maximize marks per question",
    icon: Trophy,
    accent: "from-amber-500/20 to-amber-800/5",
    section: "improve",
    action: "chat",
    promptTemplate:
      "Create an exam scoring strategy for {source} ({subject}). Include: which questions to attempt first, time allocation per section, keyword strategies for each question type, and common traps to avoid.",
  },
];

// ─── Legacy exports (kept for any remaining references) ───────────────────────

export const studioCards: StudioCard[] = [
  {
    id: "mind-map",
    title: "Mind Map",
    description: "Visualize & connect concepts",
    icon: Map,
    accent: "from-teal-500/25 to-teal-700/10",
    promptTemplate: "Create a detailed mind map for {topic}. List the main node and all branches.",
  },
  {
    id: "study-notes",
    title: "Study Notes",
    description: "Create smart notes",
    icon: NotebookPen,
    accent: "from-amber-500/25 to-amber-700/10",
    promptTemplate: "Create structured study notes for {topic}.",
  },
  {
    id: "flashcards",
    title: "Flashcards",
    description: "Smart flashcards",
    icon: Sparkles,
    accent: "from-amber-500/25 to-amber-700/10",
    promptTemplate: "Create 8 flashcards (Q&A format) for {topic}.",
  },
  {
    id: "quiz-generator",
    title: "Quiz Generator",
    description: "Create quizzes automatically",
    icon: Grid3x3,
    accent: "from-emerald-500/25 to-emerald-700/10",
    promptTemplate: "Create a 5-question multiple choice quiz on {topic}.",
  },
  {
    id: "formula-finder",
    title: "Formula Finder",
    description: "Find formulas for any topic",
    icon: Sigma,
    accent: "from-pink-500/25 to-pink-700/10",
    promptTemplate: "List all formulas and equations related to {topic} with descriptions.",
  },
  {
    id: "summary",
    title: "Summary",
    description: "Summarize any topic instantly",
    icon: AlignLeft,
    accent: "from-blue-500/25 to-blue-700/10",
    promptTemplate: "Summarize {topic} in 200 words.",
  },
];

export const studyHubCards: StudyHubCard[] = [
  {
    id: "smart-notes",
    title: "Smart Notes",
    description: "Exam notes from your sources",
    icon: NotebookPen,
    accent: "from-emerald-500/20 to-emerald-700/5",
    promptTemplate: "Generate structured smart notes from my study material on {topic}.",
  },
  {
    id: "practice-tests",
    title: "Practice Tests",
    description: "Real exam experience",
    icon: FileText,
    accent: "from-amber-500/20 to-amber-700/5",
    promptTemplate: "Create a timed practice paper for {subject} with marking scheme.",
  },
  {
    id: "performance",
    title: "Performance",
    description: "Track, analyze & improve",
    icon: LineChart,
    accent: "from-pink-500/20 to-pink-700/5",
    promptTemplate: "Analyze my weak areas in {subject} and suggest improvements.",
  },
];

export const studyFeatures: StudyFeature[] = [
  {
    id: "ai-tutor",
    title: "DocDoe Answer",
    description: "Ask anything, get instant help",
    icon: Brain,
    accent: "from-amber-500/20 to-amber-600/10",
    promptTemplate: "Explain {topic} in simple terms.",
    mode: "explain_simple",
  },
  {
    id: "exam-predictor",
    title: "Exam Practice",
    description: "Practice questions and answer structure",
    icon: Target,
    accent: "from-amber-500/20 to-amber-600/10",
    promptTemplate: "Create important exam-style practice questions on {topic}.",
    mode: "exam_answer",
  },
  {
    id: "last-minute",
    title: "Last-Minute Prep",
    description: "Smart plan for fast revision",
    icon: Moon,
    accent: "from-indigo-500/20 to-indigo-600/10",
    promptTemplate: "Give me a last-minute revision plan for {topic}.",
    mode: "summarize",
  },
  {
    id: "formula-sheet",
    title: "Formula Sheet",
    description: "All formulas in one place",
    icon: Sigma,
    accent: "from-pink-500/20 to-pink-600/10",
    promptTemplate: "List all important formulas for {topic} with brief explanations.",
    mode: "explain_simple",
  },
];