449 Commits

Author SHA1 Message Date
Antonio-Faure
75636f0735 perf(web): improve knowledge-base and settings accessibility and payload (#3139)
* fix(web): refine knowledge and settings accessibility and layout

Name row controls from their visible titles, portal tooltip descriptions out of tablists, and make the knowledge tabs keyboard-complete. Also stack the KB master-detail on phones, add a section-scroll hint, demote the indexing diagnostic to its detail tab, and consolidate the knowledge type scale.

* perf(web): cut knowledge and settings payload

Serve raster engine marks through next/image, stop preloading the serif face on pages that do not use it, and prefetch settings routes only on hover or keyboard focus instead of on first paint.

* docs(perf): record knowledge and settings audit

Document the protocol, baseline and after medians, payload and accessibility results, limits, and reproduction commands, with mobile before/after screenshots.

* test(web): match the model row's visible accessible name

The row no longer overrides its name with a provider-first aria-label; select it by the model-first text a screen reader now reads, which also contains the visible default/task badge.

* fix(web): keep the MinerU download-type name in the locale catalog

Reuse the existing Download models and Type strings instead of introducing a new t() literal, so the strict i18n audit stays green.

* docs(perf): link the UI audit from the handbook index

The docs contract requires every guide under docs-for-dev to be reachable from README.md.

* docs(perf): record the isolated knowledge-detail LCP

Re-measured the detail route with the host pinned away from unrelated work; the 668 ms row was contention, while the isolated median is 568 ms and the stable repeats overlap the baseline.

---------

Co-authored-by: Antonio-Faure <209759495+Antonio-Faure@users.noreply.github.com>
2026-12-01 17:12:12 +08:00
Qiu
ff0b7be3f8 fix(book): use the active clock for standalone chapter retries (#3098) 2026-11-30 06:33:07 -03:00
Ding Junyao
f187580271 fix: add Source Han Fonts in font-family beside Noto Fonts (#2939) 2026-11-30 15:49:22 +08:00
Antonio-Faure
2df7cd1958 fix(web): center the new-partner wizard content (#2856)
The step body and footer capped themselves at max-w-2xl but stayed at the
left edge of the 1180px page container, leaving a wide empty column on the
right. Other partner surfaces (archives, chat) already center their
max-w-2xl column. Wrap the step header and body in a centered max-w-2xl
column and center the Back/Next row with it.

Layout-only change.

Co-authored-by: Antonio-Faure <209759495+Antonio-Faure@users.noreply.github.com>
2026-11-29 14:51:44 +08:00
欧八同学
5a1bd72ca2 fix: give the glass session viewer an opaque background (#2774) 2026-11-29 14:51:27 +08:00
Bingxi Zhao (Frank)
8ab4ecfee9 feat(books): review and undo scoped chapter and section edits
Fixes #2571
2026-11-15 01:42:47 +08:00
Bingxi Zhao (Frank)
d0fcddecac fix(mastery): keep mobile next step in normal document flow
Local dev repairs for #2681.

The existing narrow-grid fix is preserved; Next up no longer overlays content on phones. Web typecheck, 1407 Node tests, eslint and i18n passed.
2026-11-15 00:50:31 +08:00
Bingxi Zhao (Frank)
59922626ee Merge PR #2613: fix(mastery): prevent narrow topic pages from overlapping
Validated real mastery topic with 20 objectives at 390 and 1440 px: no horizontal overflow; mobile content scrolls at natural height; desktop keeps its two-column bounded layout. Screenshots inspected.
2026-11-14 23:33:17 +08:00
Bingxi Zhao (Frank)
43dbf6eaba Merge PR #2597: fix(book): render math in callouts, key takeaways and flash cards 2026-11-14 23:01:19 +08:00
Bingxi Zhao (Frank)
af41eaa01e Merge PR #2490: fix: render and resume book page chat questions
Combine resumed question state with the existing scroll-follow hook; do not restore unconditional scroll-to-bottom on every message.
2026-11-14 23:01:19 +08:00
Bingxi Zhao (Frank)
f7306b6091 Merge PR #2489: fix: preserve book chat scroll position while streaming 2026-11-14 23:00:46 +08:00
zhouyao01
e27704cbef fix(mastery): 修复精通目标页窄屏布局重叠 2026-11-11 10:46:39 +08:00
riccardo-algorime
89c92e7395 fix(book): render math in callouts, key takeaways and flash cards
These blocks printed their text as is, so the LaTeX the book writer puts
in them showed raw (`$q^n \to \infty$`). They now go through
MarkdownRenderer like section bodies, the way #1364 fixed Mastery
question cards.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 13:44:05 +00:00
GLM DeepTutor Worker
5e6ccfa6eb fix(web): language-aware CJK font stacks for chat prose (#2143)
Set message-scoped lang from the reply language and add :lang(ja/ko/zh-Hant)
font stacks so Japanese/Korean/Traditional Chinese replies no longer fall
through to SimSun/Songti SC. Leave the shared SC-first Tailwind stacks alone.
2026-11-09 13:40:39 +08:00
zhouyao01
0b599a6bb5 fix: render and resume book page chat questions 2026-11-06 17:27:00 +08:00
zhouyao01
955c993a27 fix: preserve book chat scroll position while streaming 2026-11-06 16:55:19 +08:00
evan188199-tech
aad58b82f8 feat: choose the model before a MasteryPath outline starts (#2407) 2026-11-06 02:27:50 +08:00
Bingxi Zhao (Frank)
1854863e9b Merge #2414 from maxsheng215-cyber 2026-11-06 02:07:18 +08:00
zhouyao423
0be1365552 fix(books): keep fallback breadcrumb above responsive content (#2406) 2026-11-06 02:04:52 +08:00
我也有友人账
f6cbb25e72 fix: keep mastery board horizontal scrolling accessible 2026-11-03 14:48:17 -08:00
Erhan ÜRGÜN
9f16a42fbc fix(i18n): keep source picker fallback labels in the interface language
BookCreator and CreateTopicWizard passed i18next's t to
useTopicSourceLibrary, which calls its translator as (zh, en). i18next
read the Chinese text as the key and the English text as the default, so
labels such as "Untitled question" stayed English even in Chinese.
catalogTranslate() builds the (zh, en) translator from t for all three
callers, and the message and file counts become interpolated keys.
2026-11-01 05:41:48 +03:00
Erhan ÜRGÜN
5f2ae24296 fix(i18n): resolve the mastery next-step copy through the catalogs
The mastery dashboard and the learner profile showed the next-step
labels in English for every language but Chinese. The labels now go
through t(); the server-provided reason stays as-is.
2026-11-01 05:41:47 +03:00
Bingxi Zhao (Frank)
4d7090447e Integrate Turkish across complete locale chain, runtime messages and desktop shell 2026-10-31 18:14:34 +08:00
Bingxi Zhao (Frank)
88b45d524d Integrate account typography with shared reply languages and current settings validation 2026-10-31 17:59:13 +08:00
Bingxi Zhao (Frank)
55d92345bb Merge reviewed locale and settings fixes into password changes 2026-10-31 17:41:54 +08:00
Bingxi Zhao (Frank)
c836ca354d Merge reviewed locale chain and preserve Vietnamese shared language selection 2026-10-31 17:32:10 +08:00
Bingxi Zhao (Frank)
07db7024a7 Merge dev and refresh the French locale router index 2026-10-31 17:25:02 +08:00
Bingxi Zhao (Frank)
42cf57bf96 fix(auth): scope password changes and expose temporary-password state 2026-10-31 17:15:58 +08:00
Bingxi Zhao (Frank)
1665df6936 Merge remote-tracking branch 'origin/dev' into codex/land-2179
# Conflicts:
#	web/locales/de/app.json
#	web/locales/en/app.json
#	web/locales/fr/app.json
#	web/locales/pl/app.json
#	web/locales/uk/app.json
#	web/locales/zh/app.json
2026-10-31 17:13:11 +08:00
Antonio-Faure
28d86973a4 fix(i18n): complete the French catalog and follow it for partner replies
- add the 760 English keys missing from the French catalog and translate 229 values still copied from English\n- make a partner's empty reply language (Auto) follow the account model output language instead of hardcoding English\n- label Auto with the configured language and offer every supported response language in the picker\n- localize the Feishu thinking notice for every supported response language\n- add French catalog, picker and partner runtime regression tests
2026-10-30 18:02:55 +01:00
yuleihaotong
35512dccff feat(auth): prompt users who still hold an admin-assigned password
Creating an account through the admin UI means the administrator picks the
password, so the owner starts life with a secret someone else knows. Nothing
in the UI said so: the password form existed, but nobody was sent to it.

- identity: accounts carry must_change_password, set on admin creation and
  cleared once the owner changes the password themselves
- POST /login returns the flag so the client can act on it right away
- GET /profile exposes it for the profile page
- web: after login, a flagged account goes straight to /profile, which shows
  why; the banner disappears once the change succeeds

Backend tests cover both directions: a successful change clears the flag, a
failed one (wrong current password) leaves it alone.
2026-10-30 17:44:24 +08:00
yuleihaotong
9c7fd4a67f feat(web): add a password card to the profile page
A three-field form (current / new / confirm) that mirrors the surrounding
cards: same rounded-2xl container, same label and input classes, same
button styling. Client-side checks for length and mismatch run before the
request; the server's two translatable errors are mapped, anything else
surfaces verbatim.

Strings added to all six locales so i18n:parity stays green.
2026-10-30 10:14:56 +08:00
d41sys
9ddbb92c36 feat: add Vietnamese localization 2026-10-30 02:28:18 +01:00
hongthana
98cfb501a5 feat(web): add account-scoped learning typography 2026-10-30 07:41:44 +07:00
berce
1d7b864eea fix(web): decode the partner id from the route 2026-10-29 19:46:38 +03:00
Erhan ÜRGÜN
ff15bf084d feat(i18n): carry Turkish into the CLI, quiz judge, books, partners and voice
Earlier locales stopped at the settings lists, so these surfaces kept answering in English for them: the init wizard labels, quiz feedback, explicit book-language requests, book overview and export scaffolding, the partner and book language pickers, and the voice language list.
2026-10-29 01:05:43 +03:00
Bingxi Zhao (Frank)
d09a4d3a4f Merge pull request #2028: configurable review strategies 2026-10-29 01:04:33 +08:00
Bingxi Zhao (Frank)
9189c08501 chore: remove development artifacts and obsolete preview 2026-10-29 00:23:53 +08:00
Bingxi Zhao (Frank)
d02fb9850b pre-releas 2026-10-28 21:21:34 +08:00
Bingxi Zhao (Frank)
9ce7ba9059 fix 2026-10-28 12:28:20 +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
XZH
aa7d54bd7b feat(learning): add mastery review strategies (#1908)
Mastery paths previously scheduled with one fixed interval template per knowledge type, which did not fit exam cramming, language drilling, science review, or learner-specific pacing.

Add four built-in strategy presets and custom per-round interval templates with validated persistence, CRUD, duplication, and path bindings. Bound paths keep a frozen strategy snapshot, replay durable evidence when switching, and mastery tools follow the bound path scheduler.

Expose strategy management in the mastery review trail, including custom interval editing and loading, empty, busy, invalid-input, and error states. Regenerate the OpenAPI contract and add focused backend and web regression coverage. Legacy paths without a binding continue to use the previous default scheduler.
2026-10-22 18:37:54 -07:00
Bingxi Zhao
e3ecf525eb Merge pull request #1880 from dajiaohuang/fix/handoff-effect-replay
fix(web): start handoff exchange after strict-mode timer replay
2026-10-19 00:27:10 +08:00
Bingxi Zhao (Frank)
399297e7f0 feat: preserve TypeScript engine migration and workspace updates 2026-10-18 23:09:10 +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
Bingxi Zhao (Frank)
6ab4f9a766 feat(web): add classic/modern layout switch with Notion-style modern chrome
- Settings → General gains a classic/modern layout choice; classic is a frozen
  snapshot of dev's sidebar and learning dashboard, modern keeps iterating.
  Variants differ only through slots, tokens and per-variant CSS on
  <html data-ui-layout>; the preference lives in localStorage.
- Modern chrome: warm neutral tokens, WorkspaceMenu header, ⌘K command palette
  and keyboard shortcuts, PageBar location strip, swipeable PartnerRoster.
- Remove dead HomeShortcuts, WorkspaceSwitcher and the inline sidebar search
  query chain.
2026-10-15 23:00:23 +08:00
Bingxi Zhao (Frank)
fd8f108178 fix: restore lighter page styling with subtle navigation refinements 2026-10-13 03:21:51 +08:00
Bingxi Zhao (Frank)
1c735c75ea feat: unify page chrome and refine DeepTutor navigation 2026-10-13 00:14:50 +08:00
Bingxi Zhao (Frank)
2358b8d407 fix: retain navigation while refining partner and learning sidebars 2026-10-12 20:28:57 +08:00