Spaces:
Sleeping
Sleeping
Commit History
-
fix(pathways): chapter-click confirm popup + mobile slide-text default
Rsan0948 +1: Claude (audit pass)User asked: "when you click on a chapter a little, non-invasive popup with a green check and a like muted blue button pop up. The green check will load the chapter and automatically scroll down to the slide for you, and for mobile lets default to the text being expanded too, and they can click to minimize it if they want." Three coordinated changes: 1. ui_events.js chapterList click handler: previously the click immediately switched chapters and re-rendered. Now it shows an inline confirmation popup as a sibling element right after the tapped chapter card. The popup carries: • A "Open this chapter?" message on the left. • A green-circle ✓ button (rgb 34,197,94) — the primary action: commits selectedChapterId, resets slideIndex to 0, on mobile sets state.showSlideTextDetails = true, re-renders the chapter list + slide stage, persists state, and smooth- scrolls slideStage into view (so the user lands on the slide title rather than s…da2c66a -
fix(pathways): course picker becomes a modal dialog
Rsan0948 +1: Claude (audit pass)UX diagnosis B1/B2: the inline pathway picker doubled the sidebar height and rendered pathway cards in the same visual style as chapter cards, so the user had to mentally track which list they were looking at. User-selected option: "Modal picker" — sidebar always shows just course label + chapter list; pathway selection happens in a dedicated overlay. Changes (single-purpose, all coordinated): - index.html: moved #pathwayPickerWrap OUT of the .learning-sidebar (it was sandwiched between the two .learning-sidebar-head blocks and contributing to sidebar bloat). Repositioned at the top of #learningPathwaysMode as a sibling of .pathways-shell with proper modal markup (role=dialog, aria-modal, backdrop, dialog frame, head with title + X close, list body). Sidebar search placeholder updated from "Search pathways or chapters" → "Search chapters" since pathway filtering moved to the modal context (and the modal's pathway list is short enough that filtering wasn't worth carr…ddf9608 -
fix(pathways): per-chapter furthest-slide marker on chapter cards
Rsan0948 +1: Claude (audit pass)UX diagnosis D1 was "Pathways feels like a list of disconnected slides, not a course you're working through" — no progress signal on chapter cards. User picked the cheapest option: track furthest slide reached per chapter, show "Slide N of M" on the chapter card. Changes (single-purpose, all coordinated): - state.js: added state.chapterProgress = {} (chapterId → maxSlideIndex reached). Persisted across sessions. - renderer.js renderCurrentSlide: any path that lands on a slide (next-click, chapter switch, saved-state restore) updates state.chapterProgress[chapter.id] = max(existing, slideIndex). Tracking on slide-render means we don't need to instrument every mutation site. - renderer.js renderChapterList: chapter cards now include a small pill "Slide N of M" when the user has reached at least slide 2 (slideIndex >= 1). Slide 1 is the arrival state for an unread chapter; showing "Slide 1 of N" on every card would just add chrome. - app.js boot/saveState: restore + p…1801d06
-
fix(tutor): hide floating opener while on Learning screen
Rsan0948 +1: Claude (audit pass)UX diagnosis caught that the 🎓 tutor opener at bottom:120px;right:16px (round-2 mobile fix) sat on top of pathway chapter cards in the Pathways view on mobile (visible in pathways-walk/04 and 05 mobile shots). The button is contextually about solver state — round 2 already added a guard so tapping it without an active solver_state lands the user on a "Load or solve a problem first" message — so on the Learning screen it offers no useful interaction AND blocks chapter content. Add a sibling-selector rule in styles.css: #learningScreen.active ~ .tutor-toggle { display:none !important } The !important defeats the .tutor-toggle styles that tutor-panel.js injects later. The toggle re-appears automatically when the user switches back to the solver screen (.active class moves to #solverScreen). The mobile bottom-sheet panel and backdrop are not hidden — if a user opened the tutor on the solver and navigated to learning, their open panel persists; only the closed-state opener is suppresse…7b31de2 -
fix(pathways): drop "Rendering slide visual…" loading flicker
Rsan0948 +1: Claude (audit pass)UX diagnosis: every slide change showed text "Rendering slide visual…" inside a bordered box for ~100-300ms before the image popped in. The text content didn't tell the user anything useful (the slide title and content blocks rendered fine without the visual) and the bordered loading box just added a flash. Two coordinated changes: 1. renderer.js: drop the "Rendering slide visual…" text from the slide-visual host's initial innerHTML. The host element is still created with .loading class so renderLearningSlideVisual can resolve it later. 2. styles.css: add a `.learning-slide-visual.loading:empty` rule that collapses the host to invisible (no border / bg / padding / margin) while it's empty. Once renderLearningSlideVisual appends the <img> (success path) or _showSlideVisualUnavailable replaces the host content (failure path), :empty stops matching and the styled box returns. Result: between slide title and content blocks, the user sees no flash. The image eith…5e8ef46 -
fix(pathways): duplicate Prev/Next at the bottom of the slide
Rsan0948 +1: Claude (audit pass)UX diagnosis: the Prev / Next / Show Notes / Show Slide Text bar sat at the TOP of the slide stage. After reading a slide's content, the user had to scroll back UP to reach Next — fundamentally backwards for a sequential lesson flow. Add a bottom .learning-stage-bottom row with just Prev + Next, right where the user's reading attention naturally ends. The new buttons share the existing data-stage-action="prev" / "next" hooks so the existing slideStage click delegation (ui_events.js L213-235) already handles them — no new event wiring. Switched updateSlideControlState from getElementById('prevSlideBtn'/ 'nextSlideBtn') to querySelectorAll('[data-stage-action=...]') so both top and bottom Prev/Next buttons stay in sync on disabled state. The unique IDs on the top buttons stay (other code may rely on them), but disabled-state propagation is now class-of-buttons, not single-button. Added a thin top-border on the bottom bar so it reads as a slide footer rather than floating buttons. flex…9f8e417 -
fix(pathways): hide Change Course + course label + picker on sidebar collapse
Rsan0948 +1: Claude (audit pass)UX diagnosis caught that "Hide Sidebar" on the Pathways desktop view left a clipped 56px rail showing fragments of "ge se" (the Change Course button) and "e-Calculu undamenta" (the Pre-Calculus Fundamentals course label) — the existing collapse rules hid the chapter list, search input, and h3 headers but missed three more elements inside the sidebar head: #pathwayPickerToggleBtn (Change Course), #selectedPathwayLabel (the .learning-chip-note showing the current course title), and #pathwayPickerWrap (the picker container itself, in case it was open when the user collapsed). Add those three IDs to the existing display:none list. Now the collapsed rail shows only the round "Show" toggle button as intended, instead of a clipped strip of leaking text. Live verification deferred to orchestrator post-deploy. Co-Authored-By: Claude (audit pass) <noreply@anthropic.com>eeee737 -
fix(pathways): drop fixed min-heights so the slide stage hugs content
Rsan0948 +1: Claude (audit pass)UX diagnosis caught that short slides (a heading + 2-4 bullets + small visual ≈ 250px of content) sat inside a stage with a hardcoded min-height of 760px and a wrapping detail panel with min-height of 900px, leaving 400-650px of empty dark space below the content. The Next button sat at the TOP of that, so to advance the user had to scroll back UP past content they'd just read. Three coordinated CSS removals in styles.css: 1. .learning-slide-stage: drop min-height: 760px. Now the stage hugs its content (action bar + title + visual + blocks). 2. .learning-stage-layout: drop min-height: 760px AND switch align-items: stretch → flex-start. With stretch + the layout's own 760px floor, the slide-stage was being forced to fill the row's height regardless of content. flex-start lets each child size independently — slide-stage by content, notes-panel by its own (already-bounded) max-height: 76vh. 3. .pathways-shell .learning-detail: drop min-height: 900px. The outer pan…141494f -
fix(sidebar): anchored 48px gutter with round toggle when collapsed
Rsan0948 +1: Claude (audit pass)USER-DIRECTIVE OVERRIDE of Round-3 brief's "Calc #10 — design decision needed" deferral. Per user: "when you hide the formula library just make a small arrow button on the upper left of the screen to expand it back out. You can have it floating or anchored to the side, whichever looks better." Replaced the existing 64px-collapsed-strip behavior with a 48px anchored gutter on the left of the workspace. When .solver- collapsed is set: - .sidebar shrinks to 48px (was 64px) — formula library + symbol palette + logo content all hidden - .logo becomes a thin top-of-gutter slot containing only the toggle - .sidebar-toggle-btn is restyled as a 32x32 round button with a "›" right-chevron, centered horizontally in the gutter, anchored near the top (margin: 0 auto inside .logo's flex column flow) - The button reuses #toggleSolverSidebarBtn so the existing JS click handler (toggle .solver-collapsed) keeps working — no JS edits Tried floating-fixed-position first; the button sat on top of…4c0e285 -
fix(animation): hide anim-math-display when empty to suppress flash
Rsan0948 +1: Claude (audit pass)Round-1 audit caught that after Solve & Animate the Animation tab panel briefly shows empty space before the first step's content fades in. Trace: app.solve() runs clearAnimStage() which sets animMathDisplay.innerHTML = "", then renderStationaryStage() populates baseLatex; if focusAnimation is true the path then calls playAnim() → showAnimStep(0) → animateMathTransition(), which adds .fade-out (opacity:0) and waits 220ms before swapping content and adding .fade-in. During that 220ms window the user can see either the dim baseLatex fading out or — on slower machines or when clearAnimStage runs without an immediate populate — a truly empty container at the .anim-stage's dark background. CSS-only fix per orchestrator's hint: add `.anim-math-display:empty { opacity: 0 }` so the container stays invisible during the brief moments innerHTML is "". The existing `transition: opacity .9s` rule on .anim-math-display handles the fade smoothly. No JS edits. Tradeoff: this only covers the truly-em…a07cac7 -
fix(mobile): sticky category chips inside scroll-bound sidebar strip
Rsan0948 +1: Claude (audit pass)Round-1 audit caught that on phones the formula library category chips (All / Derivatives / Integrals / lim Limits / Σ Series) get scrolled out of view as the user browses formulas inside the 280px sidebar strip — re-filtering then takes 2 actions (scroll up, then tap chip) instead of 1. Round-2 left this as deferred-suggestion because of stacking-context risk; Round-3 re-opens it. Add position:sticky / top:0 to .formula-library .category-list inside the existing @media (max-width: 768px) block in ui/css/styles.css, with background:var(--bg2) (matches the sidebar background so the formula-list doesn't bleed through), small vertical padding for breathing room, and z-index:5 to keep chips above formulas. The floating tutor toggle (z-index:9999) is bottom:120px right:16px on mobile — different y-position and different stacking context from the chips, no overlap. Live verification via stylesheet injection at 375x667: before fix, scrolling lib.scrollTop=200 puts chips at top=-59 (off-view…6583d25 -
fix(mobile): raise tutor toggle to bottom:120px to clear bottom-right content
Rsan0948 +1: Claude (audit pass)Round-1 excluded the tutor opener from scope; Round-2 lifts that. At 88px from the bottom the floating 🎓 button on mobile sat right on top of Related Topics expand chevrons in learning detail views and the Delete button row in the solver input section. Bump to bottom: 120px. Same right offset (16px). Desktop position (bottom: 30px) is unchanged — the rule lives inside the existing @media (max-width: 768px) block. Live verification deferred to orchestrator post-deploy. Co-Authored-By: Claude (audit pass) <noreply@anthropic.com>0b8299e -
fix(sidebar): replace ▶ collapsed-toggle glyph with "Show" label
Rsan0948 +1: Claude (audit pass)Round-1 audit caught that the desktop collapsed-sidebar toggle rendered as a 12px ▶ glyph next to the integral logo. The same glyph is the play/run icon used by Solve & Animate, so a user clicking it expects "play" not "expand sidebar". The pathway collapsed-state toggle had the same shape (pattern grep memory). Replace the ::after content from "▶" to a "Show" text label in both rules in styles.css. Bumped the solver toggle's collapsed width from 42px to 54px to fit the text; pathway toggle already had room. Font-size: 11px / weight 600 / letter-spacing .3px to keep it readable in the collapsed strip. Live verification deferred to orchestrator post-deploy. Co-Authored-By: Claude (audit pass) <noreply@anthropic.com>f8cb0b4 -
fix(mobile): hide pathways sidebar-toggle on <=768px
Rsan0948 +1: Claude (audit pass)Audit pass surfaced the same shape of bug already fixed for #toggleSolverSidebarBtn: the pathways "Hide Sidebar" button was visible on mobile, where the layout already stacks single-column. Tapping it put .pathways-shell into the desktop .collapsed grid (56px 1fr), leaving a 56px-wide column on a 375px screen. Mirrors the existing solver-toggle hide rule, plus a defensive grid-template-columns reset to undo any .collapsed state carried in from a wider viewport. Co-Authored-By: Claude (audit pass) <noreply@anthropic.com>f6cf877 -
fix(mobile): keep sidebar visible + reposition tutor toggle (768px)
Rsan0948Three small follow-ups to the mobile retrofit that surfaced once the build hit HF: 1. Collapse-toggle no-return bug. The previous block did #solverAppContainer.solver-collapsed .sidebar{display:none}, which wipes the entire sidebar — including the Hide/Show Sidebar toggle itself — leaving the user with no way to expand again. Mobile already stacks the layout vertically, so a collapse mechanism adds no value. Hide the toggle button on mobile and force the solver-collapsed rule back to display:block so a stale class never orphans the strip. 2. Sidebar strip choked. The 200px max-height + the unscaled .logo block (∫ icon + "Calculus Animator" wordmark) ate most of the visible area, leaving only the formula category chips visible. Bumped max-height to 280px and shrank the logo padding/font so the formula list itself is reachable. 3. Tutor toggle (🎓 floating button) overlapped the Solve & Animate / Clear button row. Lifted it to bottom:88px on mobile so…ac02568 -
mobile: add @media (max-width: 768px) responsive block
Rsan0948 +1: Kimi K2- Collapse .app-container to column layout; sidebar becomes a 200px static strip at the top of the page. - Enable natural page scroll (body overflow: visible). - Horizontal scroll for .tabs with flex-wrap: nowrap. - Prevent .demo-picker from forcing horizontal overflow. - Tap-target audit: .tab, .demo-picker .btn, .formula-item, #toggleSolverSidebarBtn all ≥44px tall. - Type scaling: main heading (.input-header h2) and formula displays (.result-display, .anim-math-display) reduced ~30% on mobile. - Wire existing sidebar toggle to hide sidebar completely on mobile via CSS-only override (#solverAppContainer.solver-collapsed). Co-Authored-By: Kimi K2 <noreply@moonshot.ai>5e3dba3
-
Prepare for open source release v1.0.0
Rsan0948 +1: Claude Sonnet 4.6- Add AI tutor with multi-provider support (DeepSeek, Gemini, OpenAI, Ollama) - Add comprehensive documentation (CONTRIBUTING, SECURITY, CHANGELOG) - Add GitHub templates, CI/CD workflows, and Dependabot config - Add .gitattributes for cross-platform line endings - Sync pyproject.toml dependencies with requirements.txt - Refactor slide_renderer into package, scripts into scripts/ dir - Clean up project structure and remove stale root-level scripts Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>de8ccff
-
Initial commit
Rsan0948fe0c99f