Download src/components/workspace/workspaceData.ts from asnannp/DocDoeAI: direct link, hf CLI and curl.
- Browser
- Download file 15.1 kB
-
https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/components/workspace/workspaceData.ts
- Command line
-
hf download hf://spaces/asnannp/DocDoeAI/src/components/workspace/workspaceData.ts
-
curl -L -o workspaceData.ts https://huggingface.co/spaces/asnannp/DocDoeAI/resolve/main/src/components/workspace/workspaceData.ts
15.1 kB
| 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", | |
| }, | |
| ]; | |