Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blazor Page Title #19279

Merged
merged 6 commits into from Mar 13, 2024
Merged

Blazor Page Title #19279

merged 6 commits into from Mar 13, 2024

Conversation

enisn
Copy link
Member

@enisn enisn commented Mar 13, 2024

Description

This PR enables controlling head section by using HeadOutlet of Blazor.
(https://learn.microsoft.com/en-us/aspnet/core/blazor/components/control-head-content?view=aspnetcore-8.0)

PageHeader implements PageTitle by default. So no need further actions to show page titles. Existing modules and pages that use PageHeader will automatically update page title.

Resolves https://github.com/volosoft/volo/issues/16482#issuecomment-1963412039

blazor-page-title

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

Please describe how this can be tested by the test engineers if it is not already explicit - or remove this section if no need to description.

@enisn enisn added this to the 8.1-final milestone Mar 13, 2024
Copy link

codecov bot commented Mar 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.61%. Comparing base (ae28cc0) to head (5478f6d).
Report is 27 commits behind head on rel-8.1.

Additional details and impacted files
@@           Coverage Diff            @@
##           rel-8.1   #19279   +/-   ##
========================================
  Coverage    51.61%   51.61%           
========================================
  Files         3095     3095           
  Lines        98209    98209           
  Branches      7851     7851           
========================================
+ Hits         50687    50689    +2     
+ Misses       45966    45965    -1     
+ Partials      1556     1555    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -2,6 +2,9 @@
@using Volo.Abp.MultiTenancy
@inherits MyProjectNameComponentBase
@inject AuthenticationStateProvider AuthenticationStateProvider

<PageTitle>Index</PageTitle>
Copy link
Member

Choose a reason for hiding this comment

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

Should consider localization

Copy link
Member Author

Choose a reason for hiding this comment

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

I removed PageTitle from Index.razor pages (09be568) and updated logic that renders app name when it's not presented (5478f6d)

@enisn
Copy link
Member Author

enisn commented Mar 13, 2024

It's formatted like MVC:
blazor-page-title

@oykuermann oykuermann merged commit 3780659 into rel-8.1 Mar 13, 2024
5 checks passed
@oykuermann oykuermann deleted the 8.1-blazor-pagetitle branch March 13, 2024 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants