Skip to content

Fix cheat sheet editor and saved-sheet state issues#50

Merged
Davictory2003 merged 11 commits intomainfrom
bt/save-and-config-fixes
Apr 20, 2026
Merged

Fix cheat sheet editor and saved-sheet state issues#50
Davictory2003 merged 11 commits intomainfrom
bt/save-and-config-fixes

Conversation

@bdtran2002
Copy link
Copy Markdown
Contributor

@bdtran2002 bdtran2002 commented Apr 20, 2026

Summary

  • remove the invalid PDF prewarm request on page load and make the middle compile action always compile the exact LaTeX currently in the left editor
  • add syntax-highlighted editor rendering plus compile-error line highlighting so failed LaTeX compiles stay visible and actionable in place
  • fix clear/reset persistence so clearing a sheet also clears saved sheet identity, undo history, and stale formula storage across reloads
  • keep formula checkbox state in sync after manual removals from the ordered list instead of dropping or restoring the wrong selections
  • make saved-sheet full-document LaTeX passthrough inject practice problems correctly and use extarticle for wrapped 8pt/9pt documents

Validation

  • npx eslint src
  • npm run build
  • python3 -m py_compile backend/api/models.py backend/api/tests.py
  • "/tmp/cheat-sheet-verify-venv/bin/python" backend/manage.py test api.tests
  • live browser smoke test against local frontend/backend:
    • select CALCULUS I and generate a sheet
    • insert \\badcommand into the editor and confirm the error banner/highlighted line appear while the edited content stays intact
    • restore valid LaTeX and recompile successfully
    • clear the sheet, reload, and confirm currentCheatSheet is blank, cheatSheetData is removed, and no formulas remain selected

Notes

bdtran2002 and others added 11 commits April 19, 2026 01:25
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Davictory2003 Davictory2003 merged commit 68f52c6 into main Apr 20, 2026
3 checks passed
Davictory2003 added a commit that referenced this pull request Apr 20, 2026
APPROVE AFTER PR #50: Add practice problem compiler workflow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants