fix(pkb): fix create KB and upload issues - remove simulated upload, fix department mapping, add upload modal

Fixed issues:
- Remove simulateUpload function from DashboardPage Step 3
- Map department to description field when creating KB
- Add upload modal in WorkspacePage knowledge assets tab
- Fix DocumentUpload import path (../../stores to ../stores)

Known issue: Dify API validation error during document upload (file uploaded but DB record failed, needs investigation)

Testing: KB creation works, upload dialog opens correctly
This commit is contained in:
2026-01-13 13:17:20 +08:00
parent d595037316
commit 4088275290
280 changed files with 4344 additions and 150 deletions

View File

@@ -244,6 +244,9 @@ checkDCTables();

View File

@@ -1,3 +1,6 @@
-- Create capability_schema for Prompt Management System
CREATE SCHEMA IF NOT EXISTS capability_schema;

View File

@@ -196,6 +196,9 @@ createAiHistoryTable()

View File

@@ -183,6 +183,9 @@ createToolCTable()

View File

@@ -180,6 +180,9 @@ createToolCTable()

View File

@@ -111,3 +111,6 @@ main()
.catch(console.error)
.finally(() => prisma.$disconnect());

View File

@@ -331,3 +331,6 @@ runTests().catch(error => {

View File

@@ -77,3 +77,6 @@ async function testAPI() {
testAPI().catch(console.error);

View File

@@ -296,3 +296,6 @@ verifySchemas()