modcomms/frontend/components
michael 9e2473c3e9 Add Knowledge Base management system for AI agent specs
Full-stack implementation enabling UI-driven management of the 5 AI agent knowledge bases
(Legal, Brand Barclays, Brand Barclaycard, Channel Best Practices, Channel Tech Specs).

Backend:
- 4 new DB models: KnowledgeBase, SourceDocument, SpecVersion, ProcessingJob
- Migration 006: creates tables, seeds 5 KB rows, imports existing prompts/*.md as v1 specs
- KnowledgeBaseRepository with full CRUD for all 4 tables
- LlamaParseService for document parsing, KnowledgeBaseService for pipeline orchestration
- ReferenceDocsService updated with DB-backed spec loading + cache invalidation
- 11 REST endpoints under /api/knowledge-base (list, detail, upload, delete, process, job status, versions, diff, activate)
- StorageService extended with KB document storage

Frontend:
- TypeScript types for all KB entities (KnowledgeBaseListItem, SourceDocument, ProcessingJob, SpecVersion, DiffResult)
- ApiService methods for all KB endpoints including multipart file upload
- KnowledgeBase component with 3-level UI: agent grid, detail view (documents + versions tabs), diff viewer
- Drag-and-drop file upload, processing progress bar with 3s polling, version comparison
- KnowledgeBaseIcon + Sidebar nav item with adminOnly filtering

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-02-12 15:00:36 -06:00
..
icons Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
Analytics.tsx UI overhaul: white backgrounds, flat design, teal hero, sidebar flush-left nav 2026-02-05 16:53:03 -06:00
AssetPreview.tsx Replace 'asset' with 'proof' in user-facing UI text 2026-01-27 15:45:48 -06:00
Auditing.tsx Fix Resolutions tab Proof Name to use blue link styling 2026-02-12 14:09:19 -06:00
Campaigns.tsx Fix flagging feature: blue link in Auditing, remove alert popup, show solid red flag icon 2026-02-12 13:46:15 -06:00
ChecksOverview.tsx UI overhaul: white backgrounds, flat design, teal hero, sidebar flush-left nav 2026-02-05 16:53:03 -06:00
CopyGenAI.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
CreateCampaignModal.tsx Implement Barclays design system UI update 2026-01-27 13:50:46 -06:00
CreateProjectModal.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
FeedbackReport.tsx Fix flagging feature: blue link in Auditing, remove alert popup, show solid red flag icon 2026-02-12 13:46:15 -06:00
Header.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
Hero.tsx Remove 'View Documentation' button from Hero section 2026-02-12 11:33:15 -06:00
KnowledgeBase.tsx Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
LoadingVisual.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
Login.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
PDFReport.tsx Adjust status pill padding: 0 top, 13px bottom 2026-01-27 15:21:24 -06:00
Profile.tsx UI overhaul: white backgrounds, flat design, teal hero, sidebar flush-left nav 2026-02-05 16:53:03 -06:00
Projects.tsx Replace 'asset' with 'proof' in user-facing UI text 2026-01-27 15:45:48 -06:00
ProofPreview.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ProofTypeManager.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ProofUpload.tsx Replace 'asset' with 'proof' in user-facing UI text 2026-01-27 15:45:48 -06:00
Settings.tsx Remove unused [Beta] tab from Settings page 2026-02-12 12:07:12 -06:00
Sidebar.tsx Add Knowledge Base management system for AI agent specs 2026-02-12 15:00:36 -06:00
StatusDashboard.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
ToggleSwitch.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00
WIPReviewer.tsx Complete UI design system migration to Barclays brand colors 2026-01-27 14:00:13 -06:00