asnannp's picture
deploy: sync backend to Space root (learn-lesson HF cache fix)
65d68f5
Raw History Blame Contribute Delete
4.13 kB
/** Representative examples only — not a claim of full syllabus launch. */
export type SubjectExample = {
id: string;
classLabel: string;
subject: string;
chapter: string;
board: string;
task: string;
mode: "tuition" | "studychat" | "learn" | "revision" | "practice" | "correct";
};
export const SUBJECT_EXAMPLES: SubjectExample[] = [
{
id: "c10-physics-reflection",
classLabel: "Class 10",
subject: "Physics",
chapter: "Reflection and Refraction",
board: "Kerala SSLC",
task: "Ray diagrams for concave mirrors",
mode: "tuition",
},
{
id: "c10-maths-trig",
classLabel: "Class 10",
subject: "Mathematics",
chapter: "Trigonometry",
board: "Kerala SSLC",
task: "Heights and distances — 5-mark pattern",
mode: "practice",
},
{
id: "c11-physics-plane",
classLabel: "Class 10",
subject: "Physics",
chapter: "Motion in a Plane",
board: "Kerala SSLC",
task: "Projectile motion worked example",
mode: "tuition",
},
{
id: "c11-chem-bond",
classLabel: "Class 10",
subject: "Chemistry",
chapter: "Chemical Bonding",
board: "Kerala SSLC",
task: "VSEPR shapes and exam keywords",
mode: "tuition",
},
{
id: "c12-maths-integrals",
classLabel: "Class 10",
subject: "Mathematics",
chapter: "Integrals",
board: "Kerala SSLC",
task: "Definite integrals practice set",
mode: "practice",
},
{
id: "c12-chem-electro",
classLabel: "Class 10",
subject: "Chemistry",
chapter: "Electrochemistry",
board: "Kerala SSLC",
task: "Nernst equation revision queue",
mode: "revision",
},
{
id: "eng-essay",
classLabel: "Class 10–12",
subject: "English",
chapter: "Essay / long answer",
board: "Any board",
task: "Board-style answer correction",
mode: "correct",
},
{
id: "ss-pyq",
classLabel: "Class 10",
subject: "Social Science",
chapter: "Previous-year patterns",
board: "Kerala SSLC",
task: "PYQ analysis for repeated themes",
mode: "studychat",
},
{
id: "ml-roadmap",
classLabel: "Any",
subject: "Learn Anything",
chapter: "Machine Learning",
board: "Skill path",
task: "3-month roadmap · foundations → project",
mode: "learn",
},
];
export const LOOP_STAGES = [
{
id: "plan",
label: "Plan",
title: "Tonight is already chosen",
body: "Class 10 Chemistry revision is first because yesterday’s test flagged a weak concept that needs another pass.",
exampleId: "c12-chem-electro",
},
{
id: "learn",
label: "Learn",
title: "A real lesson, not a playlist",
body: "Class 10 Physics opens Reflection and Refraction with ray diagrams, keywords and a short checkpoint.",
exampleId: "c10-physics-reflection",
},
{
id: "ask",
label: "Ask",
title: "Doubts stay in the same desk",
body: "In StudyChat, an English long-answer is rewritten for board marks with missing keywords highlighted.",
exampleId: "eng-essay",
},
{
id: "practise",
label: "Practise",
title: "Check understanding while it’s fresh",
body: "Class 10 Mathematics opens a short board-style numerical set after the concept lands.",
exampleId: "c12-maths-integrals",
},
{
id: "correct",
label: "Correct",
title: "Feedback that names the miss",
body: "Correction shows which step failed, which keywords were missing, and a board-style rewrite.",
exampleId: "eng-essay",
},
{
id: "revise",
label: "Revise",
title: "Weak topics re-enter the queue",
body: "Missed concepts are scheduled for spaced revision—not left in a forgotten chat thread.",
exampleId: "c12-chem-electro",
},
{
id: "update",
label: "Update",
title: "Tomorrow’s plan moves",
body: "Because the practice set missed two items, tomorrow opens with repair before the next chapter advances.",
exampleId: "c10-maths-trig",
},
] as const;
export function getExample(id: string) {
return SUBJECT_EXAMPLES.find((e) => e.id === id) ?? SUBJECT_EXAMPLES[0];
}