Skip to content

MudMapper: Standalone mapper component - #641

Open
Welchen wants to merge 4 commits into
CodeBeamOrg:devfrom
Welchen:feature/MudMapper
Open

MudMapper: Standalone mapper component#641
Welchen wants to merge 4 commits into
CodeBeamOrg:devfrom
Welchen:feature/MudMapper

Conversation

@Welchen

Copy link
Copy Markdown
Contributor

Extract the mapping functionality from MudCsvMapper into a standalone MudMapper component. This will allow users to map data from a variety of sources, including objects, streams, and files.

Update MudCsvWrapper to use MudMapper internally so the mapping experience stays consistent in both functionality and appearance.

imageimageimage

Retained look of MudCsvMapper

image

Resolves#636

Ryan Watson added 3 commits August 16, 2026 21:56
Removes unused MudExtensions.Utilities imports from MudCsvMapper.razor and MudMapper.razor. Refactors header confirmation logic in MudMapper.razor for clarity and null safety. Adds XML documentation to IsSourcePoolItem in MudMapper.razor.cs.
Replaced hardcoded "Source" strings with MudMapper.SourcePoolZoneIdentifier constant in CsvMapperTests.cs and MudMapperTests.cs to improve maintainability and reduce string mismatch errors.
@codecov

codecovBot commented Aug 17, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 80.45455% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.10%. Comparing base (6051e0e) to head (513c73e).

Files with missing linesPatch %Lines
...vMapper/Components/CsvMapper/MudCsvMapper.razor.cs65.21%12 Missing and 4 partials ⚠️
...or.Extensions/Components/Mapper/MudMapper.razor.cs88.32%4 Missing and 12 partials ⚠️
...lazor.Extensions/Components/Mapper/MudMapper.razor56.00%7 Missing and 4 partials ⚠️
Additional details and impacted files
@@ Coverage Diff @@## dev #641 +/- ##
==========================================
+ Coverage 65.38% 66.10% +0.72% 
==========================================
Files 111 114 +3 Lines 8381 8450 +69 Branches 1480 1486 +6 ==========================================
+ Hits 5480 5586 +106 + Misses 2394 2350 -44 - Partials 507 514 +7 

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Added unit tests to cover private/internal logic in MudCsvMapper and MudMapper. Verified behaviors include mapping state reset, header updates, item selection, source pool identification, add section opening, form submission, and IncludeUnmappedData updates. Introduced helper methods for invoking private methods and setting private members via reflection to enable testing of non-public members.
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] MudCsvWrapper - Standalone mapping component

1 participant

@Welchen