Skip to content

Conversation

@KrzysztofPajak
Copy link
Member

  • Updated PermissionExtensions to include permission for managing checkout attributes.
  • Modified ICheckoutAttributeViewModelService to accept an optional storeId parameter.
  • Enhanced CheckoutAttributeViewModelService to utilize the storeId when retrieving attributes.
  • Added/modified Razor views for creating, editing, and listing checkout attributes and their values.
  • Updated CheckoutAttributeController to support new management features for checkout attributes.
  • Made changes to DefaultLanguage.xml for localization updates.

- Updated `PermissionExtensions` to include permission for managing checkout attributes.
- Modified `ICheckoutAttributeViewModelService` to accept an optional `storeId` parameter.
- Enhanced `CheckoutAttributeViewModelService` to utilize the `storeId` when retrieving attributes.
- Added/modified Razor views for creating, editing, and listing checkout attributes and their values.
- Updated `CheckoutAttributeController` to support new management features for checkout attributes.
- Made changes to `DefaultLanguage.xml` for localization updates.
@KrzysztofPajak KrzysztofPajak requested a review from Copilot June 15, 2025 14:07
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Adds store-scoped checkout attribute management by extending permissions, view-model services, controller actions, and views.

  • Extended PermissionExtensions and controller to enforce a new ManageCheckoutAttribute permission.
  • Updated ICheckoutAttributeViewModelService and its implementation to accept and use an optional storeId filter.
  • Introduced new and modified Razor views for listing, creating, editing, and managing checkout attributes and their values.

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/Web/Grand.Web.Store/Controllers/CheckoutAttributeController.cs New store-aware CRUD operations for checkout attributes and values
src/Web/Grand.Web.AdminShared/Interfaces/ICheckoutAttributeViewModelService.cs Extended service interface to accept optional storeId
src/Web/Grand.Web.AdminShared/Services/CheckoutAttributeViewModelService.cs Updated model service to filter attributes by storeId
src/Modules/Grand.Module.Installer/Extensions/PermissionExtensions.cs Added StandardPermission.ManageCheckoutAttribute
src/Web/Grand.Web.Store/Areas/Store/Views/CheckoutAttribute/* Added and updated Razor views for attribute and value management
Comments suppressed due to low confidence (1)

src/Web/Grand.Web.AdminShared/Services/CheckoutAttributeViewModelService.cs:30

  • [nitpick] There are no existing unit tests covering the new storeId parameter path in PrepareCheckoutAttributeListModel. Add tests to verify filtering behavior when a storeId is provided.
public virtual async Task<IEnumerable<CheckoutAttributeModel>> PrepareCheckoutAttributeListModel(string storeId = "")

@grandnode grandnode deleted a comment from Copilot AI Jun 16, 2025
@grandnode grandnode deleted a comment from Copilot AI Jun 16, 2025
@sonarqubecloud
Copy link

@KrzysztofPajak KrzysztofPajak merged commit 9627ae1 into develop Jun 16, 2025
5 checks passed
@KrzysztofPajak KrzysztofPajak deleted the feature/stora-manager-checkout-attribute branch June 16, 2025 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants