Skip to content

refactor: retarget samples to the reclaimed enum names - #23

Open
TimPurdum wants to merge 1 commit into
v5.0from
feature/enum-wire-literals
Open

refactor: retarget samples to the reclaimed enum names#23
TimPurdum wants to merge 1 commit into
v5.0from
feature/enum-wire-literals

Conversation

@TimPurdum

Copy link
Copy Markdown
Collaborator

Retargets 13 sample pages onto the reclaimed enum names from CodeGen #77. No behavior change: every rename is a one-for-one swap to the survivor of an identical enum pair.

Merge order matters. This has to land with GeoBlazor.Core PR #11 and GeoBlazor.Pro PR (feature/enum-wire-literals) — the old names do not exist after those merge, so samples stop compiling if this is left behind.

What changed

21 identifier substitutions across WCSLayers, ImageryGroupBlend, ApplyEdits, UpdateFeatureAttributes, SearchCustomSource, HighlightFeaturesByGeometry, LengthAndArea, SketchQuery, CSVLayers, GeoJSONLayers, Popups, Binning, and Clustering.

Examples: FieldInfoFormatDateFormat -> DateFormat, FieldInfoStringFieldOption -> StringFieldOption, SketchCreationMode -> CreationMode, ColorRampAlgorithm -> Algorithm.

Nullable-typed properties needed Enums. qualification, because the C# "Color Color" rule that lets a bare DateFormat resolve does not apply through Nullable<T>.

Verification

dotnet build clean at 0 errors for both sample projects, built with -p:UseProjectReferences=true so they compile against the branch rather than published NuGet.

The superseded owner-prefixed enum twins are retired in Core and Pro, so these pages
now use the friendly names: ColorRampAlgorithm -> Algorithm, FeatureFormGroupDisplay ->
GroupDisplay, RequestOptionsResponseType -> ResponseType, SketchCreationMode ->
CreationMode, FieldInfoFormatDateFormat -> DateFormat, FieldInfoStringFieldOption ->
StringFieldOption.

Members are identical in every pair, so behavior is unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01B9vty19AZZNJmoTug6zr94
Sign up for free to 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.

1 participant