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.
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.
Co-authored-by: XZH <cto@xzh.ai>
* feat(web): let the reading companion claim half the window with a focus preset
The companion column was drag-resizable only within a hard 640px cap, which
left readers with a narrow chat pane on wide monitors; leaving immersive
reading for the full chat loses the viewport-grounded context, so widening
the pane in place is the better escape hatch.
- Raise the drag ceiling to half the window width (the reader track keeps
its minmax(360px,1fr) floor; the stored-width validator follows).
- Add a focus preset next to the panel toggles: one click collapses the
contents navigator and sets the companion to half the window; exiting
restores the previous width and navigator state. Ephemeral like the
navigator collapse state - only the width persists.
- Hide the preset on narrow screens where the companion renders as a sheet.
* feat(web): fully resizable reading workspace panels
Extend the reading workspace from a companion-only drag handle to fully
user-sized panels:
- The contents navigator gains its own drag divider (184-400px, persisted
in dt.reader.navigatorWidth) instead of a fixed 184-230px track.
- The companion's ceiling is now the reader's minimum width, not half the
window: with the navigator collapsed the companion can claim all but
360px, so readers on wide monitors can make the chat pane as large as
the layout physically allows.
- The grid renders both dividers as dedicated 5px tracks so each handle
owns one column and auto-placement lines the panels up.
- A persisted width that no longer fits (window moved to a smaller screen)
is clamped at render time so the reader never drops below its floor.
* fix(web): measure the reading grid, not the window, for panel ceilings
The app sidebar sits outside the reading grid, so innerWidth overstates
the space the panels share and a companion dragged past the container
overflowed off-screen. Track the grid container with a ResizeObserver and
derive the companion ceiling (drag-time and render-time) plus the focus
preset from the measured frame, accounting for the divider tracks.
* Adapt reading panel resize and focus to current workspace layout
---------
Co-authored-by: Bingxi Zhao (Frank) <13051345080@163.com>
Below 768px the reader header converges to back, title + chapter,
bookmark and more: forward moves into the more menu (also when the
workspace hosts it), the file icon yields its width, and the chapter
indicator truncates inside a bounded share of the row instead of
disappearing. The selection panel becomes a bottom card on phones:
collapsed rows for short content, a capped scrollable body for the
note editor and overflow actions, a drag handle for pull-down-to-
dismiss, and safe-area padding; the desktop popover is unchanged.
Refs #916
Co-authored-by: XZH <cto@xzh.ai>
Two quiz submit paths still called crypto.randomUUID() directly, which
exists only in secure contexts. Over plain HTTP (LAN box, VPS without
TLS) the call throws inside the click handler before the request is
staged — the save silently never happens. PracticeSession already mints
ids via lib/random-uuid for exactly this reason; switch the two
remaining call sites to the same helper:
- BooksRoute recordQuizAttempt (book page quiz blocks)
- ReadingExtensionBar submitReadingQuizAnswers (reading quiz answers)
The interface ships in French and Ukrainian alongside English and
Chinese, and /language pins a reply language for one conversation.
Immersive reading organizes collections as colored folders, adds a
fullscreen learning mode, and turns Explain / Translate / Guide me on a
selection into ordinary messages in the reading chat; "Quiz me on this
page" runs one quiz turn without changing the conversation's mode, which
retires the reading-openers endpoint and its task model. Images embedded
in DOCX, PPTX and PDF are extracted in place and reach vision models.
Office files preview as paged PDFs through LibreOffice (now in the Docker
image), falling back to the in-browser renderers without it. Web sources
re-sync on a durable schedule, linked folders sync on demand, .bib files
index, and a zotero_search tool queries Zotero. Settings gains Learning
progress and credential-free presets; admins import users from CSV;
split deployments can hand a session to a public device. Grok CLI joins
the subagents, Unifically the providers, ChatGPT exports the importers.
Gate cleanup: mypy/bandit findings in the new launcher, audio-overview,
web-source, reading-store and textbook modules; the task-model copy test
follows the retired reading_openers kind.
See assets/releases/ver1-6-11.md for the full notes, and the README
Releases row plus its eleven translations.
Collections vs workspaces: a workspace holds many collections, and a
collection's files and reading conversations live in the workspace it
was created in. The library now shows collections as folders grouped
under their workspace, and creating one asks which workspace it goes
into.
- Folder page at /learning/reading/folders/[folderId]: breadcrumb,
files, the collection's conversations, and "Start reading" that opens
the whole folder in the reader. The reader's back link returns to it.
- Collections carry a user-picked color (new `color` column, migrated);
tones are --folder-* tokens with dark variants.
- One shared "New collection" / "Edit collection" dialog with consistent
type sizes.
- Selection popover gains AI actions; results land as cards at the foot
of the companion. Read-aloud is a single header toggle.
- The three ⋯ menus (collection, document, conversation) merge into one.
- Outline toggle moves to the left and starts closed; navigator has
Outline / Annotations tabs.
- Reading conversations live in the main sidebar (with a page-shaped idle
mark) instead of a history dropdown in the companion.
- Fix sidebar rows never showing a selected state
(bg-[var(--background)]/60 compiled to nothing).
- Composer floats over the conversation (no divider, bottom fade); the
toolbar wraps by content instead of splitting under 420px.
Combine knowledge bootstrap coverage and preserve later progress-isolation tests, native notebook tooltip, and locale-aware tool-hint fallback. Regenerate frontend contracts and align test fixtures with merged APIs.