119 Commits

Author SHA1 Message Date
Bingxi Zhao (Frank)
c4f6b4972e fix(web): keep reading history controls reachable and refresh audit fixtures 2026-10-27 02:04:21 +08:00
Bingxi Zhao (Frank)
6bbcc00c55 Merge dev into preview, preserving preview features
Integrate dev fixes with preview's Python/TypeScript schedulers, chat queue, learning navigation, and live turn persistence.
2026-10-27 01:16:58 +08: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)
583bdfc714 Merge PR #1945: fence edited submissions and isolate recovery by account and backend support 2026-10-19 01:03:40 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +08:00
Mrmo072
adcf7dfa25 fix(chat): resolve browser-local unsent submission recovery 2026-10-15 14:41:46 +08:00
Bingxi Zhao (Frank)
33dea073bb perf(reading): load Markdown export only when requested 2026-10-15 01:52:08 +08:00
yepyhun
f986774b87 fix(chat): durably replace uncertain submissions and isolate recovery owners 2026-10-13 12:07:47 +02:00
Bingxi Zhao (Frank)
8986c31580 feat(reading): complete Watching convergence with safe legacy migration (#1378)
Adapted the migration foundation from PR #1384 while preserving current workspace, caption and turn-admission safeguards.

Co-authored-by: XZH <cto@xzh.ai>
2026-10-08 02:48:50 +08:00
Bingxi Zhao (Frank)
ecdc146d13 fix(reading): keep Markdown pagination visible in narrow panels (#1641) 2026-10-08 00:10:24 +08:00
Bingxi Zhao (Frank)
4cdf4fffcb perf(reading): load workspace dialogs only when opened 2026-10-07 20:58:20 +08:00
Bingxi Zhao (Frank)
e49f518669 Reconcile user setup and provider changes with all reviewed PRs 2026-10-07 20:54:24 +08:00
flower-moon
849ab28716 feat(web): fully resizable reading workspace panels + focus preset (#1310)
* 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>
2026-10-07 20:51:05 +08:00
Bingxi Zhao (Frank)
f8be756906 Integrate saved user workspace changes with reviewed dev updates 2026-10-07 20:37:55 +08:00
evan188199-tech
a597998134 fix(reading): converge the mobile header and dock the selection panel (#1734)
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>
2026-10-07 20:29:14 +08:00
Bingxi Zhao (Frank)
8ccca47bac fix(reading): track EPUB text progress within chapters (#1673) 2026-10-04 18:20:29 +08:00
Bingxi Zhao (Frank)
ed3f9e9b4e fix(chat): distinguish unconfirmed replies from expired questions (#1648) 2026-10-04 18:14:40 +08:00
Bingxi Zhao (Frank)
0d8f4a4c87 perf(reading): defer EPUB and video marks until needed 2026-10-04 15:51:09 +08:00
Bingxi Zhao (Frank)
8b51caf055 fix(reading): isolate audio cleanup across delayed playback and unmount 2026-10-04 15:07:00 +08:00
Bingxi Zhao
90d2d06366 Merge pull request #1655 from evan188199-tech/codex/feat/reading-natural-tts
feat(reading): add material-scoped natural read-aloud audio (#1654)
2026-10-04 15:04:37 +08:00
Bingxi Zhao (Frank)
dfeb2fb4f3 Merge dev into PR #1657 and preserve integrated behavior 2026-10-04 14:22:45 +08:00
Bingxi Zhao
891493b7b1 Merge pull request #1686 from evan188199-tech/codex/fix/epub-toc-anchors
fix(reading): preserve EPUB outline anchors (#1673)
2026-10-04 14:20:41 +08:00
Bingxi Zhao
1ae435ef87 Merge pull request #1688 from ZyPulse-zy/fix/pdf-resize-reading-position
fix(reading): preserve PDF reading position across resizes
2026-10-04 14:19:54 +08:00
ZyPulse
c0a51ce90e fix(reading): preserve PDF reading position across resizes 2026-10-02 14:44:13 +08:00
XZH
95e913a787 fix(reading): preserve EPUB outline anchors 2026-10-01 17:26:44 -07:00
larryluozhang
c764de69ed fix(learning): mint quiz submission ids via randomUuid on plain HTTP
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)
2026-09-29 23:27:49 +08:00
XZH
cd474bc824 feat(reading): add server-owned quiz star rewards (#1656) 2026-09-29 06:17:54 -07:00
XZH
eeb360f66a feat(reading): add material-scoped natural read-aloud audio (#1654) 2026-09-29 05:56:41 -07:00
Bingxi Zhao (Frank)
d2810c2812 Replace forwarded link titles with accessible tooltips 2026-09-27 10:41:33 +08:00
Bingxi Zhao (Frank)
108ca70072 fix(web): migrate learning and reading button title hints (#1526) 2026-09-27 10:29:14 +08:00
Bingxi Zhao (Frank)
105e8b237f fix(web): replace native title hints in question bank and reading workspace (#1526) 2026-09-27 05:02:24 +08:00
Bingxi Zhao (Frank)
d324df2b66 fix(reading): expose workspace skills in composer (#1596) 2026-09-27 04:55:15 +08:00
Bingxi Zhao (Frank)
a053fecf6e release: v1.6.11
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.
2026-09-24 09:59:56 +08:00
Bingxi Zhao (Frank)
53436f8190 feat(reading): collections as colored folders; rework reader interactions
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.
2026-09-23 18:59:17 +08:00
Bingxi Zhao (Frank)
55490af65e Merge issue fixes into PR synthesis
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.
2026-09-23 12:06:19 +08:00
Bingxi Zhao (Frank)
e2192ad7f6 perf(web): defer optional reading workspace views 2026-09-23 11:51:29 +08:00
Bingxi Zhao (Frank)
a2f6470eca fix(reading): keep age controls visible and accessible on phones (#1419) 2026-09-23 11:36:44 +08:00
Bingxi Zhao (Frank)
34251f7d81 feat(reading): adapt built-in actions to learner age (#1419) 2026-09-23 11:23:28 +08:00
Bingxi Zhao (Frank)
9248605195 fix(reading): enforce EPUB display preferences across content (#1447) 2026-09-23 11:12:14 +08:00
Bingxi Zhao (Frank)
e5e960feda fix(reading): expose EPUB display and page layout controls (#1447) 2026-09-23 11:01:00 +08:00
Bingxi Zhao (Frank)
02cef7596a fix(learning): persist cross-surface assessment evidence safely (#1542) 2026-09-23 11:00:32 +08:00
Bingxi Zhao (Frank)
705e9bf9d5 Merge branch 'codex/reading-learning-prs-20260923' into codex/pr-batch-root
# Conflicts:
#	deeptutor/reading/extract.py
#	deeptutor/reading/store.py
#	web/components/notebook/NotebookRecordRow.tsx
#	web/locales/en/app.json
#	web/locales/zh/app.json
2026-09-23 10:58:38 +08:00
Bingxi Zhao (Frank)
5726328d32 Align reading and progress UI with integrated navigation 2026-09-23 10:55:12 +08:00
Bingxi Zhao (Frank)
ce590620d7 Preserve reading source fidelity and resilient activity tracking 2026-09-23 10:54:37 +08:00
Bingxi Zhao (Frank)
7d330f043c Merge remote-tracking branch 'origin/pr-1503' into codex/merge-pr-1503
# Conflicts:
#	deeptutor/services/session/turns/executor.py
2026-09-23 10:32:28 +08:00
Bingxi Zhao (Frank)
8815ea9ddc Merge PR #1464: reachable mobile reading toolbar 2026-09-23 10:31:13 +08:00
Bingxi Zhao (Frank)
25211b7053 Merge PR #1367: fullscreen reading learning workspace 2026-09-23 10:30:04 +08:00
Bingxi Zhao (Frank)
d99ce81805 Merge PR #1380: transcript-aware reading media stage 2026-09-23 10:29:25 +08:00
Bingxi Zhao (Frank)
4225013330 Merge PR #1376: reanchor reading annotations across revisions 2026-09-23 10:28:35 +08:00
Bingxi Zhao (Frank)
ee24f44fa7 fix(ui): unify accessible tooltips (#1526) 2026-09-21 14:51:29 +08:00