mateclaw/mateclaw-ui/src/views/Wiki/components
倪程伟 28f2ba973d feat(wiki): honour KB pageType profile in transformations, agent pages & UI
Wiki page classification was only profile-aware in the main ingest pipeline.
Transformation outputs hard-coded "synthesis", agent-created pages were left
untyped, and the frontend hard-coded the built-in ten types for ordering,
colouring and labels — so custom/synthesis types sank to the bottom, rendered
grey and showed raw keys.

Backend:
- Add nullable target_page_type column to mate_wiki_transformation (V142,
  mysql + h2) plus the entity field and CRUD normalization (blank = use
  profile fallbackType; membership validated at save time, not edit time).
- Route transformation single-run + KB-aggregate page saves through
  WikiPageTypeProfileService.normalizePageType so output joins the KB
  classification; agent wiki_create_page now lands on the profile fallbackType
  instead of an untyped page.

Frontend:
- Load + parse the KB pageType profile into the wiki store (order, labels,
  fallbackType) on KB select / refresh.
- New useWikiPageType composable: profile-driven label (3-tier fallback) and
  colour (built-in fixed + deterministic hash palette for custom types).
- Sidebar grouping order, graph colouring, node panel, graph filter and the
  page header badge now follow the profile; transformation editor gains a
  target-type dropdown sourced from the profile when output target is a page.

Refs #292
2026-06-08 21:02:50 +08:00
..
CitationDrawer.vue fix(wiki): type kbId/pageId props as number|string to prevent ID precision loss 2026-05-17 17:55:42 +08:00
HotCachePanel.vue refactor(ui): swap ElMessage for project-native mcToast, finish mcConfirm migration 2026-05-15 10:19:24 +08:00
ImageLightbox.vue feat(wiki): inline image refs in search results + click-to-zoom lightbox 2026-05-02 19:04:51 +08:00
JobStageBar.vue fix(wiki): gate write controls behind the manage:wiki capability 2026-05-17 17:55:48 +08:00
PageHeader.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
RawMaterialPanel.vue fix(wiki): type scanResult.errors so the scan error list type-checks 2026-06-07 18:05:15 +08:00
RelatedPagesPanel.vue fix(wiki): type kbId/pageId props as number|string to prevent ID precision loss 2026-05-17 17:55:42 +08:00
TransformationsPanel.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiAdvancedPanel.vue feat(wiki): support multi-path and glob patterns for KB source directory 2026-06-07 18:05:04 +08:00
WikiBrokenLinksBanner.vue feat(wiki): broken-link lint with job-based async scan 2026-05-28 08:17:04 +08:00
WikiBrokenLinksPanel.vue feat(wiki): broken-link lint with job-based async scan 2026-05-28 08:17:04 +08:00
WikiConfig.vue fix(ui): preserve snowflake ID precision through form round-trips (#133) 2026-05-15 15:51:33 +08:00
WikiConfigModels.vue feat(wiki): config UI overhaul — model strategy, search preview modal, graph fullscreen 2026-04-24 10:03:45 +08:00
WikiConfigRules.vue feat(wiki): config UI overhaul — model strategy, search preview modal, graph fullscreen 2026-04-24 10:03:45 +08:00
WikiGraphNodePanel.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiGraphToolbar.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiGraphView.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiKBCard.vue fix(wiki): gate write controls behind the manage:wiki capability 2026-05-17 17:55:48 +08:00
WikiLibrary.vue fix(wiki): gate write controls behind the manage:wiki capability 2026-05-17 17:55:48 +08:00
WikiModelPicker.vue feat(wiki): config UI overhaul — model strategy, search preview modal, graph fullscreen 2026-04-24 10:03:45 +08:00
WikiPageSidebar.vue feat(wiki): honour KB pageType profile in transformations, agent pages & UI 2026-06-08 21:02:50 +08:00
WikiPageViewer.vue feat(wiki): cascade delete + rename to keep wikilinks consistent 2026-05-28 08:17:19 +08:00
WikiSearchPreview.vue feat(wiki): config UI overhaul — model strategy, search preview modal, graph fullscreen 2026-04-24 10:03:45 +08:00
WikiWorkspace.vue feat(wiki-ui): advanced management panel for page types, layers, permissions, watcher and pipelines 2026-05-31 08:00:06 +08:00
WikiWorkspaceHeader.vue feat(wiki-ui): library home + workspace split for Wiki page 2026-05-10 19:16:22 +08:00