MudMapper: Standalone mapper component - #641
Open
Welchen wants to merge 4 commits into
Open
Conversation
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 Report❌ Patch coverage is 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. 🚀 New features to boost your workflow:
|
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
Retained look of MudCsvMapper
Resolves #636