Upgrade ThinkFlow flashcards with generation controls, citations, and animated study UX & integrate editable PresentAgent PPT workflowDingcheng dev#27
Open
Huangdingcheng wants to merge 2 commits intothinkflowfrom
Conversation
- add flashcard generation controls for difficulty, count, topic, and test focus - persist generation config and show it when reopening flashcard outputs - add structured card citations with inline citation preview and source switching - map outputs-v2 flashcard citations back to real source files instead of generation_input.md - support flashcard and quiz outputs importing back as knowledge sources - improve Chinese and English flashcard study UI with animated flip cards - fix flashcard back-face leakage, source preview behavior, and dark-card readability - document the final flashcard design and implementation plan
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR combines two related ThinkFlow upgrades:
generated PPTX files.
It also hardens the ONLYOFFICE integration so local development works through the frontend proxy without leaking
internal API keys into document URLs.
Flashcards
workspace.
Editable PresentAgent PPT
vendor/presentagent.EditablePPTServiceas a dedicated backend wrapper for the editable PPT pipeline.editable_pptas a first-class output type in outputs-v2.ONLYOFFICE Integration
online-editor-frame.htmlto host the editor logic./onlyofficein local development.localhost:8082.editor_session_idand document-key versioning to avoid stale editor sessions.Safety / Secret Handling
internal workflow key in the URL.
Deployment Notes
ONLYOFFICE_DOCUMENT_SERVER_URL=/onlyofficeONLYOFFICE_THINKFLOW_PUBLIC_URL=...ONLYOFFICE_DOCUMENT_DOWNLOAD_BASE_URL=...storage.externalHost=http://localhost:3003/onlyofficeinside the Document Server containerValidation
python -m pytest -q tests/test_editable_ppt_service.py tests/test_output_v2_editable_ppt.pypython -m pytest -q tests/test_online_editor_frame_static.pycd frontend_zh && npm run buildNotes
This branch intentionally keeps the new editable PPT workflow and the flashcard UI refresh together because both
land in the ThinkFlow workspace and share the same release surface.