WeKnora/frontend/src/api
wizardchen df1e9a1bfd perf(wiki): subgraph API and interactive exploration for large graphs
Wikis with tens of thousands of pages used to crash the browser trying
to render the entire link graph at once (30MB+ JSON, 100k+ SVG elements).
This change moves the graph viewer from "fetch everything, render
everything" to "fetch a slice, expand on demand" with several matching
UX improvements.

Backend

* GET /wiki/graph now accepts `mode` (overview | ego), `center`, `depth`,
  `types`, `limit` query params. Default is overview top-500 by
  link_count, capped at 2000. Response includes a Meta object so the
  frontend can render a truncation hint and drive the UI.
* Pure helper `computeGraphSubset` extracted for testability; six unit
  tests cover overview truncation / type filter / ego BFS / missing
  center error.
* WikiLintService passes Limit=0 (uncapped) so link integrity checks
  still walk every page.
* Repo `Search` adds CASE-based relevance ranking (title 4, slug 3,
  summary 2, content 1) so full-text results put the most obvious
  matches first instead of whatever was updated most recently.

Frontend

* Graph viewer fetches overview on entry; ego pivot on double-click,
  search, wiki-link click, URL ?slug=, global issues jump.
* Shift+click or hover ⊕ button blooms neighbors onto the current
  canvas additively. Bloom tracks generations and LRU-evicts oldest
  when total exceeds 1500 nodes; ego center / selected node / latest
  anchor are always protected.
* "Grow frontier (N)" legend action expands every dashed-ring node in
  one click (6-way concurrency) while skipping Index/Log super-nodes
  that would otherwise dump the whole wiki onto the canvas.
* Node dashed expansion ring + drawer "X/Y neighbors shown" hint tell
  users which nodes still have neighbors to load.
* Search dropdown uses remote full-text search (debounced, sequence-
  numbered to drop stale responses) and falls back to the overview
  top-500 snapshot when the input is empty.
* Type filters now round-trip to the server so top-N is always
  computed from the user's active type set rather than hiding nodes
  client-side and shrinking the view.
* Status card replaces the cramped "centered on X · N hops · M nodes"
  line with a structured focus/overview summary, resolving slugs to
  page titles.
* Help popover in the legend lists every canvas shortcut.

i18n entries added for zh-CN / en-US / ko-KR / ru-RU.
2026-05-08 13:32:54 +08:00
..
agent feat(im): tenant-wide IM channels overview under the user menu 2026-04-30 15:29:14 +08:00
auth fix oidc auth login 2026-05-05 00:21:41 +08:00
chat fix(sessions): review fixes for keyword search / pinning / IM titles 2026-04-30 16:23:00 +08:00
chunker feat(frontend): chunking debug panel with live preview 2026-05-06 17:17:07 +08:00
datasource feat(frontend): tree view resource selector with cascading selection 2026-04-08 16:31:25 +08:00
initialization fix(chunker): QA audit — pointer DTOs, profile reuse, stats correctness 2026-05-06 17:17:07 +08:00
knowledge-base feat(knowledge-base): add document batch delete and list view 2026-04-29 12:01:38 +08:00
model feat(models): support custom HTTP headers across all remote model calls 2026-04-23 23:36:40 +08:00
organization feat(api): integrate per-organization resource counts into organization listing 2026-02-09 11:40:25 +08:00
skill feat: enhance agent skills sandbox configuration and availability 2026-02-04 20:58:24 +08:00
system feat(ks3): add KS3 object storage support 2026-05-05 00:22:27 +08:00
tenant feat(tenant): expose API Key reset from the API Info page 2026-04-29 20:07:38 +08:00
wiki perf(wiki): subgraph API and interactive exploration for large graphs 2026-05-08 13:32:54 +08:00
chat-history.ts feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +08:00
mcp-service.ts feat: add built-in MCP service support 2026-03-05 21:57:01 +08:00
retrieval.ts feat: implement chat history and retrieval settings 2026-03-09 11:46:56 +08:00
vector-store.ts feat: add VectorStore management UI settings page 2026-04-17 21:51:25 +08:00
web-search-provider.ts feat: search engine adds proxy addresses and adds SSRF verification. 2026-04-17 16:38:02 +08:00
web-search.ts feat(web-search): refactor web search provider 2026-03-31 20:22:34 +08:00