Spaces:
Running
Running
Commit History
8 days ago
-
Uploader: keep paper question numbers out of CMS text; preprod tagging login Running
Sahil Kumar +1: Claude Opus 5.5Word uploader (parse_word): - Store the paper's own question number (shuffled papers run 67, 59, 77 ...) in question_num and strip it from the stem, so "67." no longer lands in the CMS question text. - Drop a leading "Sol:" / "Solution:" label from the solution. - Review panel and upload results show the paper's number, not the position. Tagger on preprod: - Match the configured CMS origin when reading the login token (preprod is cmspreprod.devinfinitylearn.in, which has no "community" in it). - Use the SME's own CMS token for TOC lookups first; the shared service account only exists on production. Shared credentials can be overridden with IL_COMMUNITY_PHONE / IL_COMMUNITY_PASSWORD. Also ships pending work: Question Reveal PPT page, foundation TOC builders/export, README/nav/home updates and their tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>301bae7
-
Question + Blank PPT: new page, blank slide after every question
Sahil Kumar +1: Claude Opus 5.5/ppt_blank builds the same deck as Quiz PPT, but each question slide is followed by the same template slide with no question on it (same header and topic/year boxes; notes "<qid> (blank)"). Chapter/topic title slides are not doubled. It shares the Quiz PPT template and /ppt/start (blank_after=1); Quiz PPT's own output is unchanged. Own nav link, dashboard card, saved inputs, file prefix (quiz_blank_) and usage label. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>59c6e79 -
ppt: even option spacing, readable picture questions, one typeface
Sahil Kumar +1: Claude Opus 5.5- Strip line breaks / at the start and end of each paragraph: CMS options ending "20 J <br> " drew a blank line under that option only, so option gaps looked random. - Cap image heights (question body 380px, options 210px, aspect kept) and lay picture options out two per row: four stacked option structures made the card ~3x taller than wide, shrinking the whole question to ~32% on the slide. Across 237 questions in six decks, none is now shown below 60% (was 12). - Drop pasted font-family (e.g. Word's "Aptos") so a question no longer mixes two typefaces, and mask entities in inline styles so " inside a value no longer splits a declaration in half. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1086400
-
ppt: render CMS content at slide size (math, images, tables, blank lines)
Sahil Kumar +1: Claude Opus 5.5CMS content is authored at editor size and some of it hard-codes that size, which came out tiny or broken on the 30px slide card (15 slides of the Equilibrium deck). Before rendering, normalize_cms_html now: - drops MathType/ChemType mathsize="12-16px" and inline font-size - scales pasted images 2x from their editor size (capped to the slide) and clears white backgrounds so the invert filter no longer draws black boxes - removes fixed table widths and blank paragraphs / table rows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>51aa28e
-
ppt: TAB-separated outline parsing + per-run exam tag
Sahil Kumar- Parse Excel clipboard rows (Chapter<TAB>Topic<TAB>QID<TAB>Year) positionally, with a fallback token-walk for space-flattened pastes; header rows and index number columns are ignored. Fixes year being eaten as a q_no ('2022' alone). - SME picks the exam tag (NEET PYQ default, JEE Main/Advanced, or custom) per run on /ppt. It prints on every chapter/topic title slide rather than the hardcoded 'NEET PYQ'. Blank custom tags are rejected client-side. - PPT page: new tag picker + custom box, sessionStorage persistence, updated paste hints. Tests cover TSV/space parity, header cols, bare year, and the chapter-wise ZIP grouping.4f44eec
-
fix: keep match-the-following tables; ppt chapter-wise ZIP + title slides
Sahil Kumar +1: Claude Opus 5CMS question fetch — <figure> no longer swallows tables -------------------------------------------------------- CKEditor wraps tables in <figure class="table">, not just images, but cms_text collapsed every <figure> to a "[figure]" marker and returned without recursing. A "match the following" question, whose List I / List II grid IS the question, therefore reached the AI as nothing but the marker, and every tool downstream reported it as image-based (verify_assist.has_image saw the marker and flagged it). A <figure> is now recursed into: a nested <img> still emits the marker itself, a nested <table> renders as rows, and a figure holding neither (a media embed) keeps the marker rather than vanishing. One shared function, so this fixes the fetch in all five prompt builders at once — AI Tagging, LO Classifier, Q-A Verification, Solutions & Keys and the LO bank. Verified live against ILQ-107874 and ILQ-228703; guarded by tests/test_cms_text_figure.py, whose fixture is ILQ-107874's actu…68c4638
-
ppt: chapter/topic title slide design + separate plain-QID input box
Sahil Kumar8891439
-
ppt: numbered options 1-4, topic+year labels, parallel workers
Sahil Kumar49aab3c
-
deploy: split the tree into backend/frontend/database and centralise hosts
Sahil Kumar +1: Claude Opus 5Every CMS host name now comes from backend/il_endpoints.py instead of being hardcoded across eight modules, so switching stacks is config rather than an edit. The four defaults point at PRODUCTION: .env is gitignored and dockerignored, so the Space has no IL_* variables and inherits these defaults — it will read and write live CMS content. To put the Space back on preprod, set IL_QB_API, IL_GATEWAY_API, IL_COMMUNITY_API and IL_COMMUNITY_WEB as Space secrets. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>2e740d5