Skip to content

Conversation

@EngincanV
Copy link
Member

@EngincanV EngincanV commented Nov 5, 2025

Description

Related to https://github.com/volosoft/volo/issues/20587 (@enisn also created a PR for the pro side in our repository, you can review these 2 PR from there, if you want)

image 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)

@EngincanV EngincanV added this to the 10.1-preview milestone Nov 5, 2025
@EngincanV EngincanV requested a review from enisn November 5, 2025 13:17
Updated addWidgetModal.js to exclude properties with default or empty values when generating widgetText. This prevents unnecessary attributes from being added to the widget markup.
@enisn enisn requested a review from Copilot November 5, 2025 14:37
Copy link
Contributor

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

This PR adds support for conditional widget registration based on global features and introduces a new comment configuration widget with read-only support.

  • Adds AddWidgetIfFeatureEnabled method to register widgets conditionally based on global features
  • Introduces a new comment configuration widget (CmsKitCommentConfiguration) with read-only mode support
  • Updates JavaScript logic to skip empty/default widget parameter values

Reviewed Changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
en.json Adds localization for the "IsReadOnly" field
CmsKitContentWidgetOptions.cs Adds new method to conditionally register widgets based on global features
CmsKitCommentConfigurationViewModel.cs New view model for comment configuration with EntityType, EntityId, and IsReadOnly properties
CmsKitCommentConfigurationViewComponent.cs New view component for rendering comment configuration UI
CmsKitCommentConfiguration.cshtml New view for comment configuration with input fields
CmsKitCommonWebModule.cs Registers the comment widget using the new conditional registration method
addWidgetModal.js Enhances widget text generation to skip empty/default parameter values
dynamic-widget.md Updates documentation with details about the new conditional registration method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@EngincanV EngincanV merged commit 5ee5fa5 into dev Nov 6, 2025
3 checks passed
@EngincanV EngincanV deleted the EngincanV/cmskit-dynamicwidget branch November 6, 2025 07:10
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.

3 participants