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

@@ -67,6 +67,9 @@ models/

View File

@@ -55,6 +55,9 @@ __version__ = '1.0.0'

View File

@@ -188,6 +188,9 @@ def get_missing_summary(df: pd.DataFrame) -> dict:

View File

@@ -148,6 +148,9 @@ def apply_filter(

View File

@@ -312,6 +312,9 @@ def get_unpivot_preview(

View File

@@ -322,6 +322,9 @@ if __name__ == "__main__":

View File

@@ -88,6 +88,9 @@ except Exception as e:

View File

@@ -68,6 +68,9 @@ except Exception as e: