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

CMSKit - MenuItem & Page relation enhancements #18782

Merged
merged 26 commits into from Jan 23, 2024

Conversation

enisn
Copy link
Member

@enisn enisn commented Jan 17, 2024

Description

Part of https://github.com/volosoft/vs-internal/issues/3588

With this PR, MenuItem and Page have a better relationship.

  • URL field is required now.
  • When a page is related to a menu item, URL can't be changed manually.
  • Related page of menu item will be initialized as selected in the update modal.
  • When Page feature is disabled, there will be no Page tab on menu item modal

Required fields:
image

When a page is selected:
image

Page Feature Disabled Enabled
image image

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-preview milestone Jan 17, 2024
@enisn enisn changed the title Cmskit menuitem page relation CMSKit - MenuItem - Page relation enhancements Jan 17, 2024
@enisn enisn changed the title CMSKit - MenuItem - Page relation enhancements CMSKit - MenuItem & Page relation enhancements Jan 17, 2024
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (e18c384) 51.59% compared to head (594b644) 51.63%.
Report is 19 commits behind head on dev.

❗ Current head 594b644 differs from pull request most recent head 2184b53. Consider uploading reports for the commit 2184b53 to get more accurate results

Files Patch % Lines
...Volo.CmsKit.Domain.Tests/Menus/MenuManager_Test.cs 0.00% 8 Missing ⚠️
...Volo/CmsKit/Admin/Menus/MenuItemAdminAppService.cs 50.00% 3 Missing and 1 partial ⚠️
.../Volo/CmsKit/Admin/Menus/MenuItemWithDetailsDto.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              dev   #18782      +/-   ##
==========================================
+ Coverage   51.59%   51.63%   +0.04%     
==========================================
  Files        3082     3084       +2     
  Lines       97721    97837     +116     
  Branches     7800     7807       +7     
==========================================
+ Hits        50416    50523     +107     
- Misses      45755    45761       +6     
- Partials     1550     1553       +3     

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

@enisn
Copy link
Member Author

enisn commented Jan 18, 2024

Tests are passing now,
image

There is rate-limiting problem in the pipeline
image

Copy link
Contributor

@oykuermann oykuermann left a comment

Choose a reason for hiding this comment

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

@oykuermann
Copy link
Contributor

I'm waiting for @realLiangshiwei 's review to merge this PR.

@@ -76,4 +76,10 @@ public virtual Task<List<Page>> GetListOfHomePagesAsync(CancellationToken cancel
{
return GetListAsync(x => x.IsHomePage, cancellationToken: GetCancellationToken(cancellationToken));
}

public async Task<string> FindTitleAsync(Guid pageId, CancellationToken cancellationToken = default)
Copy link
Member

Choose a reason for hiding this comment

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

Task<string?>

Copy link
Member Author

Choose a reason for hiding this comment

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

Solved by 2184b53

@realLiangshiwei realLiangshiwei merged commit e1585d5 into dev Jan 23, 2024
3 checks passed
@realLiangshiwei realLiangshiwei deleted the cmskit-menuitem-page-relation branch January 23, 2024 12:42
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