Skip to content

API review rename of InitialIndex and ScrollToIndexAsync - #67312

Merged
ilonatommy merged 3 commits into
mainfrom
rename-api-review-67065
Jun 24, 2026
Merged

API review rename of InitialIndex and ScrollToIndexAsync#67312
ilonatommy merged 3 commits into
mainfrom
rename-api-review-67065

Conversation

@ilonatommy

Copy link
Copy Markdown
Member

Rename following the decision in #67065 (comment).

Fixes #67065

@ilonatommy ilonatommy added this to the 11.0-preview6 milestone Jun 19, 2026
@ilonatommy ilonatommy self-assigned this Jun 19, 2026
Copilot AI review requested due to automatic review settings June 19, 2026 08:22
@ilonatommy
ilonatommy requested a review from a team as a code owner June 19, 2026 08:22
@ilonatommy ilonatommy added the area-blazor Includes: Blazor, Razor Components label Jun 19, 2026
@ilonatommy
ilonatommy enabled auto-merge (squash) June 19, 2026 08:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Blazor Virtualize<TItem> public API to reflect the API review decision by renaming the initial scroll parameter and programmatic scrolling method, and then aligns tests and test assets with the new names.

Changes:

  • Renamed InitialIndexInitialItemIndex on Virtualize<TItem>.
  • Renamed ScrollToIndexAsync(...)ScrollToItemAsync(...) on Virtualize<TItem>.
  • Updated unit tests, E2E tests, and BasicTestApp virtualization test pages to use the renamed API, and updated PublicAPI.Unshipped.txt accordingly.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/Components/Web/test/Virtualization/VirtualizeTest.cs Updates unit tests to call ScrollToItemAsync and use InitialItemIndex assertions/bindings.
src/Components/Web/src/Virtualization/Virtualize.cs Renames the public API surface and updates related comments/error messages/internal call sites.
src/Components/Web/src/PublicAPI.Unshipped.txt Updates the unshipped API declarations to the renamed members.
src/Components/test/testassets/BasicTestApp/VirtualizationAnchorModeWindowScroll.razor Updates test UI to call ScrollToItemAsync.
src/Components/test/testassets/BasicTestApp/VirtualizationAnchorMode.razor Updates test UI to bind InitialItemIndex and call ScrollToItemAsync.
src/Components/test/E2ETest/Tests/VirtualizationTest.cs Updates E2E test text and parameter usage to reference ScrollToItemAsync/InitialItemIndex.

Comment thread src/Components/test/E2ETest/Tests/VirtualizationTest.cs Outdated
@ilonatommy

Copy link
Copy Markdown
Member Author

/ba-g failures are not connected

@ilonatommy
ilonatommy merged commit 3fa8979 into main Jun 24, 2026
23 of 25 checks passed
@ilonatommy
ilonatommy deleted the rename-api-review-67065 branch June 24, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

API Proposal: Add InitialIndex parameter and ScrollToIndexAsync method to Virtualize<TItem>

3 participants