fix(dc/tool-c): Fix special character handling and improve UX

Major fixes:
- Fix pivot transformation with special characters in column names
- Fix compute column validation for Chinese punctuation
- Fix recode dialog to fetch unique values from full dataset via new API
- Add column mapping mechanism to handle special characters

Database migration:
- Add column_mapping field to dc_tool_c_sessions table
- Migration file: 20251208_add_column_mapping

UX improvements:
- Darken table grid lines for better visibility
- Reduce column width by 40% with tooltip support
- Insert new columns next to source columns
- Preserve original row order after operations
- Add notice about 50-row preview limit

Modified files:
- Backend: SessionService, SessionController, QuickActionService, routes
- Python: pivot.py, compute.py, recode.py, binning.py, conditional.py
- Frontend: DataGrid, RecodeDialog, index.tsx, ag-grid-custom.css
- Database: schema.prisma, migration SQL

Status: Code complete, database migrated, ready for testing
This commit is contained in:
2025-12-08 23:20:55 +08:00
parent f729699510
commit 91cab452d1
90 changed files with 735 additions and 45 deletions

View File

@@ -601,3 +601,4 @@ import { logger } from '../../../../common/logging/index.js';

View File

@@ -605,3 +605,4 @@ Content-Length: 45234
**更新日期**: 2025-12-07

View File

@@ -404,3 +404,4 @@ import { ChatContainer } from '@/shared/components/Chat';

View File

@@ -314,3 +314,4 @@ const initialMessages = defaultMessages.length > 0 ? defaultMessages : [{

View File

@@ -602,3 +602,4 @@ http://localhost:5173/data-cleaning/tool-c

View File

@@ -390,3 +390,4 @@ Docs: docs/03-业务模块/DC-数据清洗整理/06-开发记录/DC模块重建

View File

@@ -263,3 +263,4 @@ ConflictDetectionService // 冲突检测(字段级对比)

View File

@@ -427,3 +427,4 @@ Tool B后端代码**100%复用**了平台通用能力层,无任何重复开发

View File

@@ -204,3 +204,4 @@ $ node scripts/check-dc-tables.mjs