Skip to content

Commit

Permalink
adding release notes
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAlhayek committed Oct 24, 2024
1 parent 233865b commit 80ea5b7
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/docs/releases/2.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ For backward compatibility, the current behavior still allows this code to retur
{% assign isAuthorized = User | has_permission: "AccessAdminPanel" %}
```


#### New Methods Added to `IRoleService`

Two new methods have been introduced to the `IRoleService` interface: `ValueTask<bool> IsAdminRoleAsync(string role)` and `ValueTask<bool> IsSystemRoleAsync(string role)`. To prevent breaking changes in the current release, these methods have been provided with default implementations.
Expand Down Expand Up @@ -165,6 +164,30 @@ The `NamedRecipeStepHandler` class has been introduced to streamline the impleme

A new abstract class, `DeploymentSourceBase<TStep>`, has been introduced to streamline and simplify deployment source implementations. Instead of directly implementing the `IDeploymentSource` interface, it is now recommended to inherit from `DeploymentSourceBase<TStep>`. This change reduces complexity and improves the maintainability of deployment sources.

### Content Types

#### New Event Handlers

We have introduced new events to the `IContentDefinitionEventHandler` interface, enabling you to hook into the content definition building process before these definitions are cached. These events provide more granular control over content type definitions during their construction.

- `BuildingContentType(BuildingContentTypeContext context)`
- `BuildingContentTypePart(BuildingContentTypePartContext context)`
- `BuildingContentPartField(BuildingContentPartFieldContext context)`
- `BuildingContentPartDefinition(BuildingContentPartDefinitionContext context)`

#### Code-Managed Content Parts

The new events above enable a scenario where you can inject content parts into content definitions programmatically. These parts are designated as code-managed, meaning they cannot be removed by users through the UI or modified via recipes. For an example of how to inject a code-managed part into the content definition, refer to the `DashboardPartContentTypeDefinitionHandler` class. This ensures that specific content parts are always present in the content definition, maintaining consistent structure across the application.

### Admin Dashboard

#### Creating Admin Widgets No Longer Requires `DashboardPart`

Thanks to the newly introduced Code-Managed capability, it is no longer necessary to attach `DashboardPart` to an admin dashboard. To create a new admin dashboard content type, simply assign the `DashboardWidget` stereotype to the content type. This streamlined process reduces complexity while ensuring that admin widgets are properly categorized without additional manual configuration.

!!! note
The `DashboardPart` will no longer be available as an attachable part by default.

## Added Features

### Azure Communication Services SMS Feature
Expand Down

0 comments on commit 80ea5b7

Please sign in to comment.