Skip to content

Latest commit

 

History

History
81 lines (62 loc) · 2.81 KB

File metadata and controls

81 lines (62 loc) · 2.81 KB

v3.13.3 - Bug Fixes and UI Improvements

Status: IN PROGRESS

Started from v3.10.0 (ff3cf9df) which has working normalization output.

Completed Tasks

Critical Fixes

  • Add delete button to every column row (red trash icon, index-based filtering)

    • Added at line 593-602 in IntelligentNormalization.tsx
    • Uses filter((_, i) => i !== idx) to remove by index
  • Filter empty column names when parsing CSV headers

    • Added .filter(h => h.length > 0) at line 121
    • Prevents _1, _2, _3 empty columns from appearing
  • Fix CSV download headers to use actual data keys

    • Changed line 322 from columnMappings.map(m => m.columnName) to Object.keys(allResults[0])
    • Ensures headers align perfectly with data columns
  • Add preview transformations section

    • Added at lines 634-674
    • Shows up to 4 column transformations before normalization
    • Displays Name → First/Last split, Email normalization, Phone digits-only, Location split

UI Improvements

  • Dropdown options already correct (using underscores: first_name, last_name)
  • Preview shows transformation details for each column type
  • All 124 tests still passing

Remaining Tasks

  • Test with actual CSV upload to verify all fixes work correctly
  • Verify location splitting outputs "Personal City" and "Personal State" columns
  • Verify credentials are stripped (no MD, PhD, CFP®)
  • Verify no empty _1, _2, _3 columns in output
  • Create checkpoint as v3.13.3 or v3.14.0
  • Push to GitHub

Known Working Features (from v3.10.0)

✅ Normalization output (credentials stripped, First/Last name separated) ✅ All 124 tests passing ✅ Simplified output schema (First Name + Last Name only, no Full Name) ✅ Title case conversion ✅ Asian name order detection ✅ 770+ credentials stripped

Files Modified

  1. client/src/pages/IntelligentNormalization.tsx
    • Line 121: Filter empty column names
    • Line 322: Fix CSV download headers
    • Lines 593-602: Add delete button
    • Lines 634-674: Add preview transformations

Test Results

✓ tests/credential-stripping.test.ts (10 tests) 91ms
✓ tests/simplified-schema.test.ts (24 tests) 56ms
✓ tests/csv-column-cleaning.test.ts (18 tests) 28ms
✓ tests/context-aware-processor.test.ts (13 tests) 43ms
✓ tests/name-enhanced-v381-fixes.test.ts (10 tests) 35ms
✓ tests/name-enhanced-v375-fixes.test.ts (15 tests) 37ms
✓ tests/worker-initialization.test.ts (3 tests) 6ms
✓ tests/name-enhanced-full-name.test.ts (7 tests) 37ms
✓ tests/name-enhanced-v374-credentials.test.ts (10 tests) 31ms
✓ tests/bug-report-api.test.ts (14 tests) 305ms

Test Files  10 passed (10)
     Tests  124 passed (124)

Next Steps

  1. Test in browser with actual CSV file
  2. Verify all fixes work as expected
  3. Create checkpoint
  4. Update version to v3.13.3 or v3.14.0