Commit graph

1 commit

Author SHA1 Message Date
Jan-Henrik Bruhn
32e96d7709 feature: Add Brother thread color mapping to PES importer
This commit incorporates the Brother thread color mapping from the App codebase
into the web application. When importing PES files, thread colors are now
automatically enhanced with official Brother Embroidery thread information
including proper color names and chart codes.

Changes:
- Added BrotherColor.json database with 56 Brother embroidery thread colors
- Created brotherColors utility module with mapping functions that replicate
  the logic from Asura.Core.Models.EmbroideryUtil.GetThreadColorListFromPesx
- Enhanced PES importer client to map thread catalog numbers to Brother colors
- Updated PatternCanvas to avoid showing duplicate chart/catalog information
  when they are the same (common for Brother colors)

The mapping logic performs exact color code matching (e.g., "001", "843") and
preserves original thread data when no Brother match is found.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-21 20:37:32 +01:00