Repository navigation
Adds footer templates for the QuickGrid and its columns - #69478
NanthiniMahalingam wants to merge 4 commits into
Conversation
|
Thanks for your PR, @NanthiniMahalingam. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
One or more issues must be addressed before approval.
Get a fresh assessment by requesting another Copilot review.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Adds grid-level and per-column footer templates to QuickGrid, including rendering and API baselines.
Changes:
- Adds
FooterTemplateparameters toQuickGridandColumnBase. - Renders column and full-width grid footers with ARIA row metadata.
- Adds comprehensive renderer-level tests.
| File | Description |
|---|---|
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/test/QuickGridFooterTemplateTest.cs | Updated as part of this pull request. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor.cs | Updated as part of this pull request. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor | Updated as part of this pull request. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/PublicAPI.Unshipped.txt | Updated as part of this pull request. |
| src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/Columns/ColumnBase.razor.cs | Updated as part of this pull request. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
/review |
There was a problem hiding this comment.
STATUS: FINDINGS
PR: #69478
HEAD_SHA: 3206d08e220d3dce9f1ed54e52efcf814ffaa348
MERGE_BASE_SHA: b2629d6116b595b8ad0c2b3de8f415bc2dddad9c
BASE_TIP_SHA: 4449eb585c8c82b5cf0e6f5d88f7ba73cbcadf62
GUIDANCE_SOURCE: immutable commit 4449eb585c8c82b5cf0e6f5d88f7ba73cbcadf62
PATH: per-guide
NEW_FINDINGS: 1
- P3, high confidence: the default theme styles body cells but not the newly added footer cells, leaving footer content misaligned with body columns. See the attached inline comment.
EXISTING_FEEDBACK_COVERAGE:
discussion_r4090786005is a source-confirmed duplicate: on a short non-virtualized paginated page, filler rows extend toItemsPerPagewhile footer ARIA indices/count use the returned-item count.discussion_r4090786032already requests browser coverage; it was not duplicated as a new behavioral finding.
UNRESOLVED: none.
GUIDES:
docs/CrossCuttingGuidance.md: complete; all in-scope topics and applicable policies assessed. No read failures or unresolved candidates.docs/BlazorComponentsGuidance.md: complete; all in-scope topics, applicable policies, and readable architecture context assessed. No read failures or unresolved candidates.- Requested workers:
general-purpose/gpt-5.6-sol; runtime-reported type/model unavailable (unknown).
DISCARDED:
- API-approval metadata is human-owned and the frozen policy permits implementation/merge before approval; approval remains required before RTM inclusion.
- Trimming/AOT, cross-render-mode, stale-footer, and aggregation-recalculation concerns were not supported by the exact frozen source paths.
- Formatting-only observations and test-only requests without a distinct concrete product effect were not findings.
UNCOVERED: no materially changed product area lacked a routed specialist guide. Formal API approval remains human-owned.
TEST_BOUNDARY: source-only proof. PR code, tests, CI, browser workflows, assistive-technology behavior, computed browser appearance, and red/green validation were not executed. Security assessment was explicitly excluded by the trusted bundle.
LIMITATIONS: tracked Git bytes only; symlink, submodule, and LFS targets are inert. Prepared feedback is frozen and cannot include comments posted afterward. Publication is attributed to the frozen head SHA.
Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 272.3 AIC · ⌖ 11.4 AIC · ⊞ 17.5K
Comment /review to run again
|
/review |
There was a problem hiding this comment.
Source-only review of frozen head 51ee605b01bb9433fd6d9d4306c266449e350491 found one new P3 issue: the public ColumnBase.Class and Align documentation no longer describes their footer-cell behavior.
Both routed guides completed independently with general-purpose workers on gpt-5.6-sol: docs/CrossCuttingGuidance.md and docs/BlazorComponentsGuidance.md. Security assessment and execution of PR code, tests, CI, and browser workflows were excluded by the trusted bundle. No materially changed area lacked a routed guide.
Prepared feedback coverage: discussion_r4090786005 is addressed by the pagination-aware ARIA row count/index logic; discussion_r4090786032 is addressed by the added E2E browser coverage; discussion_r4169176746 is addressed by the tfoot default-theme selector. None remains a duplicate of the new finding. Formal public API approval is human-owned and remains unresolved because approval-process metadata is external to the frozen bundle.
Provenance: PR dotnet/aspnetcore#69478; merge base 0fe823627dddb94849b8a737b547b14dff2f46ca; base tip and immutable guidance commit 4f556f73a610b386e5ec29355a300e493d30c4c5. Proof is source-only from tracked frozen Git bytes; runtime/browser behavior was not executed, and prepared feedback cannot include later comments.
Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 241 AIC · ⌖ 10.5 AIC · ⊞ 20.2K
Comment /review to run again
| { | ||
| foreach (var col in _columns) | ||
| { | ||
| <td class="grid-column-footer-cell @ColumnClass(col)" @key="@col">@col.FooterTemplate</td> |
There was a problem hiding this comment.
ColumnBase.Class and Align now affect footer cells, but their public XML docs still say they apply only to header and body cells.
src/Components/QuickGrid/Microsoft.AspNetCore.Components.QuickGrid/src/QuickGrid.razor:143 · P3
Minimal repro: render <PropertyColumn Align="Align.Right" Class="total" FooterTemplate="..." />; this call to ColumnClass(col) applies both values to the footer cell despite the documented scope. Update both parameter summaries to say “header, body, and footer cells.”
| /// be rendered for this column. When any column in the grid has a <see cref="FooterTemplate"/>, the | ||
| /// grid will render a footer row in which each column renders its <see cref="FooterTemplate"/>. | ||
| /// </summary> | ||
| [Parameter] public RenderFragment? FooterTemplate { get; set; } |
There was a problem hiding this comment.
Adding this parameter can break existing custom columns that already declare [Parameter] FooterTemplate (including casing variants). During first render, Blazor enumerates inherited parameters case-insensitively and throws declares more than one parameter before processing even an empty ParameterView; DeclaredParameterClashesWithInheritedParameter_Throws codifies this behavior. The same issue applies to QuickGrid.FooterTemplate. Please establish an approved compatibility plan before shipping these members—for example, use narrower names such as ColumnFooterTemplate and GridFooterTemplate, or obtain explicit breaking-change approval.
Human-directed and GitHub Copilot-generated.
|
/review |
|
Copilot's local review panel found no issues to raise at this commit. Reviewed commit: Informational only: the source reviews could not establish the contribution acknowledgment or separate API proposal/review records for the final public API shape. This is unknown process metadata, not a claim that those records are absent. API approval is not a pre-merge blocker, but remains required before RTM inclusion. Posted for informational purposes so the author can confirm the verifier didn't discard or leave unresolved a real finding; this item does not block Human-directed and GitHub Copilot-generated. |
600ed6f to
c05e98f
Compare
|
/review |
There was a problem hiding this comment.
Source-only review of frozen head 44d9e4508b6189d92aae797f2c836f84da170c21 found one unresolved P3 item: the unrelated-looking googletest submodule pointer change has a confirmed changed line and focused-change contract, but the frozen bundle cannot establish the submodule-content effect or intent.
Both routed guides completed independently with review-guide-worker on gpt-5.6-sol: docs/CrossCuttingGuidance.md and docs/BlazorComponentsGuidance.md. Existing feedback about pagination ARIA accounting, browser coverage, default-theme footer spacing, and footer-cell API documentation is addressed by the frozen source and was not republished.
No materially changed product area lacked a routed guide. Formal public API approval remains human-owned. Review proof is source-only: PR code, tests, CI, browser workflows, samples, submodule contents, and runtime behavior were not executed or materialized; security assessment was excluded by the trusted bundle. Provenance is the immutable guidance commit d8754d1fc8751b5a8ee7e8d0d28df4052cf63e77, merge base 877db0add09f12f0898df559b75e77d0398ba384, and frozen prepared feedback, which cannot include later comments.
Generated by ASP.NET Core Pull Request Review for #69478 · copilot · gpt56 · 164.9 AIC · ⌖ 12.4 AIC · ⊞ 18.8K
Comment /review to run again
| @@ -1 +1 @@ | |||
| Subproject commit 24990589481d2ed05602a304bee5ca716273762a | |||
| Subproject commit a8380b01a25ebdb130097b607b3afed2a58d04ba | |||
There was a problem hiding this comment.
P3 — [UNRESOLVED] Is the googletest submodule bump required by the QuickGrid footer change?
The frozen diff changes this pointer from 24990589481d2ed05602a304bee5ca716273762a to a8380b01a25ebdb130097b607b3afed2a58d04ba, while the contribution policy requires focused PRs without unrelated changes.
Why unresolved: The bundle contains only unmaterialized pointer records. Materialized source for both revisions, or a binding dependency/intent record, is needed to prove the consumer-visible difference and whether this bump is required.
Minimal repro: Check out frozen head 44d9e4508b6189d92aae797f2c836f84da170c21 and run git submodule update --init src/submodules/googletest; Git selects the new revision, but this source-only review cannot inspect its contents.
What goes wrong: If unrelated, consumers receive an unintended third-party revision and the PR is no longer focused. If required, the frozen evidence does not establish that dependency.
Suggested fix: Restore the base pointer unless the revision change is intentional and its dependency on this feature can be established.
| /// <summary> | ||
| /// Optional. A template to render in the table footer area. If specified, the template will | ||
| /// be rendered inside a single <tfoot> row which spans all columns. | ||
| /// </summary> | ||
| [Parameter] public RenderFragment? GridFooterTemplate { get; set; } |
There was a problem hiding this comment.
Is the GridFooterTemplate public API addition needed? On the header side, QuickGrid has only the per-column ColumnBase.HeaderTemplate, with no grid-wide header template. What does a grid-level footer enable?
There was a problem hiding this comment.
Could we add the footer to an existing QuickGrid test component, such as the one used for header tests?
There was a problem hiding this comment.
Revert this change. Running git submodule update -- src\submodules\googletest after merging or rebasing on main keeps your local submodule on the commit main records, so the old one doesn't get committed again.

Description
Adds footer templates for the QuickGrid and its columns as render fragments
Use case
ColumnBase.FooterTemplate — per-column, use when each column has its own aggregate value:
QuickGrid.FooterTemplate — full-width, use when the footer content spans the whole table:
Output
QuickGridFooterTemplateDemo.mp4
Fixes #58711