mateclaw/mateclaw-ui/src
SuperCoderMan521 cb87569264 feat(wiki): make [n] citation markers clickable, linking to wiki pages (#305)
Backend (SourceEvidenceLedger):
- appendWikiSourceTable now normalizes existing source lines in-place to
  canonical "[N] Title - section - page N" format instead of skipping them
- Added replaceSourceLine helper that matches a full source line by regex
  and replaces it with the canonical form
- When source lines exist without a "来源:" header, automatically insert
  one so the frontend preprocessor can locate the source table

Frontend (useMarkdownRenderer):
- Added data-citation-index / data-citation-title to DOMPurify whitelist
- Added preprocessWikiCitations preprocessor: parses the canonical source
  table to build an index-to-title map, replaces [n] markers in the answer
  body with clickable <a> links, and wraps entire source-table rows so the
  full line is clickable
- Integrated into the render pipeline after wikilink substitution and
  before Marked parsing

Frontend (useGlobalWikilinkClick):
- Extended the click delegation selector to match both .wiki-link and
  .wiki-citation elements
- Title extraction falls back: data-citation-title || data-wiki-title

Tests: added three test cases for source-line normalization, idempotency,
and automatic header insertion
2026-06-21 09:58:41 +08:00
..
api feat(plans): Kanban boards in the Agents workspace 2026-06-20 17:52:29 +08:00
assets perf(chat): throttle streaming markdown render and defer chart mounts 2026-06-15 11:39:24 +08:00
components feat(plans): Kanban boards in the Agents workspace 2026-06-20 17:52:29 +08:00
composables feat(wiki): make [n] citation markers clickable, linking to wiki pages (#305) 2026-06-21 09:58:41 +08:00
i18n feat(plans): Kanban boards in the Agents workspace 2026-06-20 17:52:29 +08:00
router feat(agent): one-sentence AI employee creation wizard 2026-06-17 17:38:42 +08:00
stores feat(wiki): split KB management vs reading into separate workspace views (#309) 2026-06-10 13:40:57 +08:00
types feat(plans): Kanban boards in the Agents workspace 2026-06-20 17:52:29 +08:00
utils feat(ui): add the xAI (Grok) provider brand icon 2026-05-18 10:01:05 +08:00
views feat(plans): Kanban boards in the Agents workspace 2026-06-20 17:52:29 +08:00
App.vue fix(chat): 工具框乱序 + 流式/调试开关失效 + 思考堆积修复 2026-06-09 16:04:41 +08:00
main.ts feat(model3d): Tencent Hunyuan 3D provider — Pro/Rapid action routing + <model-viewer> preview 2026-05-01 22:39:13 +08:00
vite-env.d.ts Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00