Skip to content

Sections support#46727

Merged
surayya-MS merged 34 commits intodotnet:mainfrom
surayya-MS:sectionsSupport
Mar 8, 2023
Merged

Sections support#46727
surayya-MS merged 34 commits intodotnet:mainfrom
surayya-MS:sectionsSupport

Conversation

@surayya-MS
Copy link
Copy Markdown
Member

@surayya-MS surayya-MS commented Feb 17, 2023

Sections support

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

API Proposal: #46937

Description

  • Made SectionContent and SectionOutlet public
  • Removed SectionContent.IsDefaultContent
  • Removed Name and used object SectionId as a section identifier
  • Added E2E tests for Sections

Fixes #28182

@surayya-MS surayya-MS requested a review from a team as a code owner February 17, 2023 17:16
@ghost ghost added the area-blazor Includes: Blazor, Razor Components label Feb 17, 2023
Comment thread src/Components/test/testassets/BasicTestApp/BasicTestApp.csproj Outdated
Comment thread src/Components/Web/src/Head/HeadOutlet.cs Outdated
Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs Outdated
Comment thread src/Components/test/testassets/BasicTestApp/SectionsTest/ParentComponent.razor Outdated
Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs
Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs
Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs
Copy link
Copy Markdown
Member

@MackinnonBuck MackinnonBuck left a comment

Choose a reason for hiding this comment

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

This is looking great! I just added a few more comments with some minor thoughts.

Before approving, I would still like to see what others think about this suggestion.

Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionOutlet.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionContent.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionContent.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionContent.cs Outdated
Comment thread src/Components/Web/src/Head/HeadOutlet.cs Outdated
surayya-MS and others added 2 commits February 24, 2023 11:59
Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
Copy link
Copy Markdown
Member

@MackinnonBuck MackinnonBuck left a comment

Choose a reason for hiding this comment

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

This is looking great 🎉 Thank you for your perseverance on this!

I have a few remaining nits but nothing that should block the approval of this PR. I think this is ready to go after all tests pass (and the API gets approved).

Comment thread src/Components/Components/src/Sections/SectionContent.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionOutlet.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionOutlet.cs Outdated
Comment thread src/Components/Components/src/Sections/SectionRegistry.cs Outdated
Comment thread src/Components/Web/src/Head/HeadOutlet.cs Outdated
Comment thread src/Components/test/E2ETest/Tests/SectionsTest.cs Outdated
surayya-MS and others added 4 commits March 1, 2023 09:49
Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
Co-authored-by: Mackinnon Buck <mackinnon.buck@gmail.com>
Comment thread src/Components/Components/src/PublicAPI.Unshipped.txt Outdated
@surayya-MS surayya-MS enabled auto-merge (squash) March 6, 2023 19:26
@surayya-MS surayya-MS disabled auto-merge March 7, 2023 14:40
@surayya-MS surayya-MS enabled auto-merge (squash) March 8, 2023 16:22
@surayya-MS surayya-MS merged commit 83dad2c into dotnet:main Mar 8, 2023
@ghost ghost added this to the 8.0-preview3 milestone Mar 8, 2023
@surayya-MS surayya-MS deleted the sectionsSupport branch May 15, 2023 14:38
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.

Sections support in Blazor

4 participants