Commit Graph

108 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
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)
54b2ee8e83 fix(web): keep indexing cancellation scoped to its run (#1972) 2026-10-19 03:29:21 +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)
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
yepyhun
f270f258f1 fix(knowledge): show durable parser activity without inventing progress 2026-10-13 11:34:53 +02: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)
e79e1b0ad2 fix(knowledge): make long-document indexing recoverable and publication verified (#1612) 2026-10-08 08:10:40 +08:00
Bingxi Zhao (Frank)
30022c7695 fix(knowledge): load visual coverage only when the inspector opens (#1610) 2026-10-08 05:23:02 +08:00
Bingxi Zhao (Frank)
de64a9aa0f feat(rag): complete exact source visual and PDF page grounding (#1610)
Expose inspectable extraction coverage, retain structured provenance, resolve bilingual figure and table references without similarity substitution, and provide bounded local page/region fallback with source identity checks.
2026-10-08 03:44:56 +08:00
Bingxi Zhao (Frank)
f8be756906 Integrate saved user workspace changes with reviewed dev updates 2026-10-07 20:37:55 +08:00
XZH
0e260130be feat(web-source): add bilingual source pairing (#902)
Add bilingual page pairing and language variant alignment for web sources:
- Detect page language variants via hreflang alternate links and URL language prefix patterns.
- Record pairing relations in durable SQLite repository and KB web-source metadata.
- Expose pairing relations via GET /api/knowledge-bases/{kb_name}/web-source/{source_id}/pairings and WebSourceInfo.
- Display bilingual pairing indicator in the KB web sources section with localization across en, zh, de, fr, uk.
- Add targeted tests for pairing detection, repository persistence, and API exposure.

Co-authored-by: multica-agent <github@multica.ai>
2026-09-28 14:58:51 -07:00
Bingxi Zhao (Frank)
b0385a315d feat(knowledge): choose storage and move individual bases 2026-09-27 11:04:33 +08:00
Bingxi Zhao (Frank)
64c2316093 Add connected Kiwix ZIM knowledge sources 2026-09-27 11:01:04 +08:00
Bingxi Zhao (Frank)
4f47c55d52 fix(tooltips): expose passive diagnostic hints 2026-09-27 10:50:03 +08:00
Bingxi Zhao (Frank)
1c97480cb2 fix(tooltips): cover interactive nonbutton hints 2026-09-27 10:40:27 +08:00
Bingxi Zhao (Frank)
de5ecb9b2a fix(tooltips): migrate data and admin button hints (#1526) 2026-09-27 10:25:50 +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)
064034a283 Merge branch 'codex/evan-backend-prs-20260923' into codex/pr-batch-root
# Conflicts:
#	deeptutor/api/routers/settings.py
#	tests/api/test_settings_router.py
#	web/components/notebook/NotebookRecordRow.tsx
#	web/components/settings/SettingsOverview.tsx
#	web/context/app-shell-storage.ts
#	web/features/knowledge/api/sources.ts
#	web/features/settings/store/SettingsStore.tsx
2026-09-23 10:56:37 +08:00
Bingxi Zhao (Frank)
2dcc5871df Reconcile linked-folder UI and book route integration 2026-09-23 10:48:46 +08:00
Bingxi Zhao (Frank)
1dff2a2424 Merge commit 'refs/pr/1385' into codex/evan-backend-prs-20260923 2026-09-23 10:28:46 +08:00
Bingxi Zhao (Frank)
b38a2245eb Merge PR #1334 linked folder manual sync 2026-09-23 10:28:15 +08:00
Bingxi Zhao (Frank)
8534cea581 Merge PR #1372 linked folder sync controls 2026-09-23 10:27:32 +08:00
Bingxi Zhao (Frank)
3800028fa8 merge: integrate LightRAG roles with embedding compatibility 2026-09-21 13:36:18 +08:00
NoxsMedia
b66bc5743c style(web): retain existing provenance component formatting 2026-09-21 03:42:26 +00:00
NoxsMedia
26a63c76bc fix(lightrag): withdraw failed rebuild publication and align provenance 2026-09-21 03:39:22 +00:00
NoxsMedia
8d2c452ef5 fix: display the bound LightRAG version in index provenance 2026-09-21 03:10:48 +00:00
NoxsMedia
0ce3f5a713 fix: display the bound version alongside pinned LightRAG roles 2026-09-21 03:10:48 +00:00
NoxsMedia
1c8a29d257 fix: retain bound index provenance and embedding-only controls 2026-09-21 03:04:13 +00:00
NoxsMedia
ac8cc4a97d fix: preserve selected embeddings in confirmed LightRAG rebuilds 2026-09-21 02:57:39 +00:00
NoxsMedia
73e062c594 fix: preserve LightRAG compatibility with per-KB embedding bindings 2026-09-21 02:45:23 +00:00
Bingxi Zhao (Frank)
da856ad670 release: v1.6.9
Ship folder-based workspaces and data migration, daily practice, redesigned
provider and model settings, and streaming conversation improvements.
Synchronize README translations and document the archive/permanent-delete
upgrade behavior in assets/releases/ver1-6-9.md.

Reduce initial JavaScript by deduplicating English resources and loading
animation features after hydration. Keep the existing route size budgets.
Update regression fixtures and browser audits for scoped URLs and the new
settings and learning interfaces.
2026-09-21 02:30:40 +08:00
XZH
90b99187d1 feat(web-source): add durable sync scheduling 2026-09-10 17:31:03 -07:00
XZH
2992a7e73f feat(knowledge): expose linked folder sync controls 2026-09-10 10:35:10 -07:00
Gao-Chenkai
d033272f93 feat(knowledge): add linked folder manual sync 2026-09-09 21:24:41 +08:00
NoxsMedia
2d7904e916 chore: sync PR #1281 with current dev 2026-09-07 23:33:46 +00:00
NoxsMedia
7266c7aacf chore: sync PR #1265 with current dev 2026-09-07 23:33:46 +00:00
Bingxi Zhao (Frank)
e7d04fccfc fix(knowledge): validate KB names on the manager, and let a bad one be deleted
A knowledge-base name is three things at once: a kb_config.json key, a
directory under data/knowledge_bases, and a path segment in every per-KB API
route. `validate_knowledge_base_name` exists to keep those three uses
compatible — its docstring says so — but it was called from one of the eight
HTTP entry points that can write a name into the config. The seven connect-*
endpoints (Obsidian, MarginNote, folder, LightRAG server, WeKnora, IMA, and
the subagent connection) did `(name or "").strip()` and wrote the result.

A name holding a "/" registers fine that way and is then unreachable.
uvicorn percent-decodes the path before routing, so %2F is a real separator
by the time Starlette matches `{kb_name}` — compiled to `[^/]+`, which cannot
span it. All 29 per-KB routes 404, delete included, while the list endpoint
takes no path parameter and keeps rendering the KB. Connected KBs are also
exempt from the orphan prune, so nothing collects it either: visible, unusable,
and removable only by hand-editing kb_config.json.

Two changes, both needed. Validation moves onto the eight `register_*`
methods, which is the seam every route already goes through — no route file
changes, since they all map ValueError to 400 — and the now-unreachable
"name is required" guards go with it. And a path-free
`POST /knowledge-bases/delete` gives the entries that predate the guard a way
out; a body is never split into segments. Widening the path route to
`{kb_name:path}` would not work: it is declared ahead of the DELETE routes
for linked folders, GitHub sources and web sources, and a greedy converter
would silently swallow all three.

Two smaller fixes ride along. The delete handler's catch-all swallowed its
own HTTPException and answered 500 with "404: ... not found" in the detail;
it now re-raises. And CreateKbModal states the rule under the field instead
of letting an untranslated English 400 be the first the user hears of it.

test_marginnote4_kb's store-collision case used "My Lib" / "My/Lib"; the
slash is now refused before that guard is reached, so it uses "My.Lib" —
still a name the rule allows, still sanitized to the same My_Lib.db.
2026-09-08 00:31:59 +08:00
NoxsMedia
fd5f7d2347 fix: enforce native LightRAG embedding compatibility 2026-09-07 08:49:35 +00:00
NoxsMedia
80d257d55e refactor: unify LightRAG defaults and confirmed rebuilds 2026-09-07 08:07:00 +00:00
NoxsMedia
a6a560bbd3 fix(web): omit per-version VLM usage status 2026-09-07 07:52:08 +00:00
NoxsMedia
d39f5e8e85 fix(web): clarify LightRAG base model guidance and effective settings 2026-09-07 07:52:08 +00:00
NoxsMedia
ae446507d0 fix(lightrag): use provider defaults for automatic reasoning 2026-09-07 07:52:08 +00:00
NoxsMedia
d1d265fc49 fix(lightrag): validate base reasoning directly 2026-09-06 17:10:19 +00:00
NoxsMedia
324ec82175 fix(lightrag): preserve recovered role settings 2026-09-06 16:56:49 +00:00
NoxsMedia
814081f36d fix(lightrag): close role model audit gaps 2026-09-06 16:51:18 +00:00
NoxsMedia
4dd9254c0f refactor(lightrag): clarify role model controls 2026-09-06 13:23:33 +00:00
NoxsMedia
8ef011b88a fix(lightrag): preserve native write revisions and explicit role semantics 2026-09-06 10:23:50 +00:00