8 Commits

Author SHA1 Message Date
zszz3
91e04886be test: follow notes page state into runtime snapshots and the user seed 2026-11-29 16:32:47 +08:00
Bingxi Zhao (Frank)
c6d8b767e3 Merge #2313 from rudycelekli 2026-11-06 01:56:22 +08:00
Rudy Celekli
c6b263b862 fix(notes): drop fenced-code info string from Anki export body
markdown_to_anki_html took the whole span between the opening and closing
backtick runs as code, so a fenced block's info string (its language) became
the first line of the rendered code. ```python\nprint(1)\n``` exported as
<pre><code>python<br>print(1)</code></pre>, putting a stray "python" line
inside every language-tagged code card.

Start the code body after the opening fence line's newline, matching how a
fenced code block is defined. Fences without an info string, and single-line
spans with no newline, are unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-11-01 09:07:38 -05:00
RRFZ
2d3bf1f42b test: read UTF-8 sources and fixtures as UTF-8
Twenty tests read repository files (pyproject.toml, SKILL.md, prompt
YAML/Markdown, requirements) or a UTF-8 backup with a bare read_text(),
which decodes with the locale. On a Chinese-locale Windows machine
(cp936) every one of them fails with UnicodeDecodeError before asserting
anything, so the suite cannot be run there to check Windows behaviour.

Pass encoding="utf-8", as the product code reading the same files does.
No assertion changes.
2026-10-31 22:27:43 -04:00
Bingxi Zhao (Frank)
c93de45dcf fix(notes): protect Anki code and math in one collision-free pass 2026-10-29 01:03:27 +08:00
Matt Van Horn
7f061c5675 feat(notes): export flashcards for Anki
Add a tab-separated Anki import from a note page and from the review
queue so learners can File -> Import cards into a deck named after the
note. Re-importing uses stable card GUIDs and does not include review
scheduling.
2026-10-27 22:07:06 +00:00
Bingxi Zhao (Frank)
28c11e2ae8 feat: update notes, chat interactions and workspace UI on preview
Remove course pages, APIs and the course_study capability. Add anchored note
threads and reviewed learning-block generation, queued and withdrawable chat
messages, quote attachments, side chats, and the calendar/favorites/navigation
updates.

Keep preview's existing backend architecture. Wire the new features through
its Python application and existing chat engine, retain legacy selected-text
requests, persist mid-turn messages in replay, and restore note context when
regenerating. Leave stored user data intact.

Validate frontend contracts, dependency boundaries, types, 1290 node tests,
840 rendered tests, lint, localization and the production build. Exercise
session/notes/API regressions, 53 chat-engine tests and 20 Python/native
integration tests with isolated runtime data.
2026-10-26 22:13:34 +08:00
Bingxi Zhao (Frank)
857a82e74a feat(notes): add block notebooks with inline reviews and linked favorites
Add rich text and learning blocks, media uploads, page trees, and revisioned notebook storage. Present AI suggestions at their target blocks with durable accept and dismiss actions.

Unify saved outputs as Favorites with typed expandable blocks, stable source links, atomic batch insertion, nesting, dragging, and undo/redo.

Validation: 99 frontend tests and 99 backend tests pass in an isolated snapshot, along with TypeScript, scoped ESLint, dependency architecture, and locale parity checks.
2026-10-17 23:15:23 +08:00