Skip to content

Resolved the Testing team reported issues - #3

Merged
rajendranr-5483 merged 3 commits into
masterfrom
phase1-comp
May 17, 2026
Merged

rajendranr-5483 merged 3 commits into
masterfrom
phase1-comp

Conversation

@VigneshNatarajan27

Copy link
Copy Markdown
Collaborator

Root Cause of the Issue

Testing Team reported issues were resolved

Issues Fixed

  1. Keyboard actions does not work properly in Auto and WASM mode
  2. Dialog Resize icons and Calendar Keydown actions not working properly
  3. Fixed the RTL issue in uploader sample
  4. Fixed alignment issue in Button Group

@VigneshNatarajan27 VigneshNatarajan27 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please review the updated changes sir. ALso included the SB changes too

@rajendranr-5483
rajendranr-5483 merged commit b9727e0 into master May 17, 2026
PrinceOliver added a commit that referenced this pull request Oct 1, 2026
This change shifts chart, uploader, data, and popup collection APIs from concrete List<T> to IList<T> to reduce coupling and improve interface-based interoperability without breaking component parameter binding or JS interop serialization. It also replaces a few List-specific helper calls with interface-safe iteration and adds centralized analyzer suppressions for Blazor parameter setters, JS-invoked interop inputs, and intentionally public EventArgs types.

Summary — CA1002, CA2227, CA1711 cleanup complete

Build status: ✅ Build succeeded across net8.0, net9.0, net10.0 — 0 errors, 0 CA1002/CA2227/CA1711 warnings.

What was done

1. CA1002 — Do not expose generic lists (fixed by narrowing + 6 targeted suppressions)

Systematically narrowed List<T> → IList<T> across the Data layer, Chart config/events/models/renderers, and Inputs (per decision #1). Fixed every resulting cascade (.Find→.FirstOrDefault, .ForEach→foreach, local/param/field retyping, overload-ambiguity in QueryableExtensions.GroupByMany).
6 [JSInvokable]-adjacent methods kept concrete List<T> (System.Text.Json needs it) and were centrally suppressed instead: SfChart.ChartPanAsync/OnSelectionChange/SetTooltipTemplateElementSizeAsync, SfUploader.GetFileDetailsAsync/CreateFileListAsync/UpdateServerFileDataAsync.

2. CA2227 — Collection properties should be read-only (122 central suppressions)

[Parameter] collections, HTML-attribute splat dictionaries, event-arg DTOs, and Charts.Internal.* rendering-pipeline models keep get; set; (required by Blazor parameter binding / STJ round-tripping) and are documented via central GlobalSuppressions.cs entries (decision #3), with three tailored justification variants.
Where a collection was genuinely internal/owned, it was made read-only (e.g. UploadedFiles.Files → { get; } = []).

3. CA1711 — Incorrect suffix (58 central suppressions)

All 57 public *EventArgs types + 1 internal SvgSelectionRectCollection suppressed centrally. The EventArgs suffix is the deliberate, idiomatic Blazor/Syncfusion convention; renaming would break every consumer's event handlers for zero functional benefit.

GlobalSuppressions.cs: 189 total assembly suppressions (122 CA2227 + 6 CA1002 + 58 CA1711 added this effort), each with a dated justification.

⚠️ Breaking changes (for release notes)

List<T>→IList<T> is source-compatible for most callers but binary-breaking (requires consumer recompile). Notable
public-surface narrowings:

Interfaces: IChartPoint, IAxis, IRequireAxis, ISharedTooltipRenderEventArgs members.
Public methods: SfDialog.GetButtonItems, SfChart.AddSeriesAsync, SfUploader.PauseAsync, QueryableExtensions.GroupByMany overloads.
Public properties: many [Parameter] + event-arg collections.
UploadedFiles.Files: changed from { get; set; } → { get; } — API-breaking (consumers can no longer reassign).
PrinceOliver added a commit that referenced this pull request Oct 8, 2026
…94)

* Improve trim/AOT safety and analyzer compatibility

Adds trim/AOT annotations, suppressions, and source-generated JSON contexts across chart/data/JS interop code, while modernizing collections, property typing, and parent-component wiring. This keeps runtime behavior aligned with existing APIs while improving Native AOT/trimming compatibility and reducing analyzer noise.

* Suppress analyzers and fix uploader typing

This change adds targeted analyzer suppressions around intentional chart component patterns, internal render-tree construction, and trimming/AOT warnings that are expected for this library's design. It documents why explicit setters and programmatic renderer creation are intentional and safe. The uploader also replaces a dynamic ExpandoObject header value with a typed ExpandoObject to avoid unnecessary dynamic usage while keeping custom header behavior unchanged.

* Guard reflection for trim and AOT

This change adds RequiresUnreferencedCode and RequiresDynamicCode annotations to reflection-heavy chart and data APIs so trim/AOT warnings are surfaced at the public usage points. It also adds targeted UnconditionalSuppressMessage attributes for Blazor lifecycle and interop entry points where those annotations cannot be applied directly, preserving the existing reactive chart update behavior while documenting the intentional setter patterns used by chart subcomponents.

* Fix analyzer warnings and cleanup

This change removes unused members and imports, updates XML documentation references, and makes helper methods static where appropriate. It also simplifies component lifecycle code in the calendar and input components, and aligns a number of API docs and annotations with the current component types and names.

* Standardize collection contracts and analyzer suppressions

This change shifts chart, uploader, data, and popup collection APIs from concrete List<T> to IList<T> to reduce coupling and improve interface-based interoperability without breaking component parameter binding or JS interop serialization. It also replaces a few List-specific helper calls with interface-safe iteration and adds centralized analyzer suppressions for Blazor parameter setters, JS-invoked interop inputs, and intentionally public EventArgs types.

Summary — CA1002, CA2227, CA1711 cleanup complete

Build status: ✅ Build succeeded across net8.0, net9.0, net10.0 — 0 errors, 0 CA1002/CA2227/CA1711 warnings.

What was done

1. CA1002 — Do not expose generic lists (fixed by narrowing + 6 targeted suppressions)

Systematically narrowed List<T> → IList<T> across the Data layer, Chart config/events/models/renderers, and Inputs (per decision #1). Fixed every resulting cascade (.Find→.FirstOrDefault, .ForEach→foreach, local/param/field retyping, overload-ambiguity in QueryableExtensions.GroupByMany).
6 [JSInvokable]-adjacent methods kept concrete List<T> (System.Text.Json needs it) and were centrally suppressed instead: SfChart.ChartPanAsync/OnSelectionChange/SetTooltipTemplateElementSizeAsync, SfUploader.GetFileDetailsAsync/CreateFileListAsync/UpdateServerFileDataAsync.

2. CA2227 — Collection properties should be read-only (122 central suppressions)

[Parameter] collections, HTML-attribute splat dictionaries, event-arg DTOs, and Charts.Internal.* rendering-pipeline models keep get; set; (required by Blazor parameter binding / STJ round-tripping) and are documented via central GlobalSuppressions.cs entries (decision #3), with three tailored justification variants.
Where a collection was genuinely internal/owned, it was made read-only (e.g. UploadedFiles.Files → { get; } = []).

3. CA1711 — Incorrect suffix (58 central suppressions)

All 57 public *EventArgs types + 1 internal SvgSelectionRectCollection suppressed centrally. The EventArgs suffix is the deliberate, idiomatic Blazor/Syncfusion convention; renaming would break every consumer's event handlers for zero functional benefit.

GlobalSuppressions.cs: 189 total assembly suppressions (122 CA2227 + 6 CA1002 + 58 CA1711 added this effort), each with a dated justification.

⚠️ Breaking changes (for release notes)

List<T>→IList<T> is source-compatible for most callers but binary-breaking (requires consumer recompile). Notable
public-surface narrowings:

Interfaces: IChartPoint, IAxis, IRequireAxis, ISharedTooltipRenderEventArgs members.
Public methods: SfDialog.GetButtonItems, SfChart.AddSeriesAsync, SfUploader.PauseAsync, QueryableExtensions.GroupByMany overloads.
Public properties: many [Parameter] + event-arg collections.
UploadedFiles.Files: changed from { get; set; } → { get; } — API-breaking (consumers can no longer reassign).

* Add XML docs and initialize private fields

Add XML documentation, default constructors and initialize private backing fields across chart and calendar components to improve clarity and ensure sensible defaults. Notable changes: inject IStringLocalizer into CalendarDayCell; add constructors for ChartEventLocation and Size; initialize many ChartSeries and ChartCommonMarker private fields; add OnInitializedAsync to TrimTooltipBase; add culture property to LegendBase; document FontOptions; enable unmatched HtmlAttributes capture on SvgText; add DataManager constructor summary.

* Audit and normalize analyzer suppressions

This commit removes obsolete assembly-level suppressions for CA1017 and CA1014, then reorganizes GlobalSuppressions.cs by rule with date-based audit justifications. It standardizes the rationale format for CA1002, CA2227, CA1711, and CA1305 entries to document why each suppression is required for Blazor parameter binding, JS interop deserialization, and public API compatibility.

* Tighten chart internals and document APIs

Made the chart rendering pipeline and supporting models internal to reduce the public API surface. Added XML documentation examples for chart events, SVG text, and DataManager to clarify intended usage. Removed obsolete CA2227 suppressions that were only needed for the expanded internal rendering models. This keeps the chart internals encapsulated while improving discoverability for consumers.

* Stabilize chart rendering and disposal

Tightens exception handling in TimePicker and Switch, makes chart SVG helpers static for safe reuse, disposes the chart JS bridge, and adds null/interop safeguards across data and tooltip paths. Also silences analyzer warnings for intentional Blazor lifecycle and JS interop patterns so the component library remains stable under renderer teardown and browser callbacks.

* Stabilize chart ranges and API compatibility

This change makes DoubleRange a readonly, equatable value type with proper equality and hashing semantics for chart range comparisons. It also updates SfDataBoundComponent disposal to await DataManager.DisposeAsync instead of synchronously disposing, improving async cleanup behavior. Finally, it adds targeted analyzer suppressions for intentional public API naming and design patterns that must remain source/binary compatible.

* Suppress analyzer warnings for API compatibility

This change adds targeted CA suppressions in GlobalSuppressions.cs for long-standing public and protected members that cannot be renamed without breaking source or binary compatibility. The suppressions document intentional naming, URL-string, and array-based contracts across chart, data, calendar, uploader, dialog, and base-component APIs, preserving the existing public surface while keeping analyzer noise in check.

* Modernize chart and data internals

This changeset refactors chart, calendar, data, and input internals to simplify control flow, adopt modern C# patterns, and improve null-safety and culture formatting. It also removes redundant branches, normalizes property naming, updates event signatures for compatibility, and adds analyzer suppressions to preserve existing runtime and API contracts across framework-version constraints.

* Publish 1.0.0 release docs and metadata

This release brings the project’s public-facing metadata in line with the 1.0.0 launch: refreshed README positioning, new CHANGELOG and ROADMAP docs, GitHub issue templates for bugs and feature requests, and the documented IDE compatibility rationale for the current analyzer/suppression baseline. It also adds generated SBOM artifacts for .NET 8/9/10 and removes an unused chart import from the sample mode switcher.

* Fix nullable warnings and chart render regressions

Resolve nullable/reference warnings across the library by tightening generic constraints, correcting nullability annotations, and preserving explicit null semantics in reflection, data, chart models, and input/dialog APIs. This also isolates chart axis overlap state to instance scope and renders internal chart components through typed fragments to avoid invalid markup and Razor RZ10012 issues. Added regression coverage for nullable contracts, calendar conversions, dynamic/data inference, and chart rendering behavior.

* Fix nullable rendering and chart issues

This update fixes internal chart rendering through typed fragments, corrects nullable handling across data, reflection, calendar, input, and dialog flows, and preserves sort alignment and theme behavior for chart points and striplines. It also isolates axis-overlap state per chart layout, restores bUnit compilation, and improves nullable-analysis accuracy for public APIs, DataAdaptor constraints, and QueryableOperation null/missing-field handling.

* NumericTexBox related issues were resolved.

---------

Co-authored-by: Prince Oliver <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

2 participants