Skip to content

Conversation

IvanDanchev
Copy link
Contributor

Note to external contributors: make sure to sign our Contribution License Agreement (CLA) for Blazor UI first:

https://forms.office.com/Pages/ResponsePage.aspx?id=Z2om2-DLJk2uGtBYH-A1NbWxVqugKN5DvVp8I-1AgOBURFBVSkwyMlA1TkFDVFdMNU1aM1o1UlZQOC4u

@IvanDanchev IvanDanchev requested review from a team as code owners September 15, 2025 14:35
@IvanDanchev IvanDanchev added the merge-to-production Use this label to get a comment to choose whether to merge the PR to production label Sep 15, 2025
Copy link
Contributor

Hello @IvanDanchev,

Check the below option if you would like to automatically generate PR to production. The automation uses the branch for the cherry-pick, and then will delete the branch. Please, do not delete it manually.

  • create PR to production


public class ChatMessage
{
public string Id { get; set; }

Copy link
Contributor

Choose a reason for hiding this comment

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

We normally don't use empty lines in classes to keep the code snippets shorter.


private List<string> QuickReplies = new List<string>
@code {
private TelerikChat<ChatMessage> ChatRef { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Nullable references are enabled by default in new .NET apps. Our code snippets should not trigger compiler warnings about possible null values.

Suggested change
private TelerikChat<ChatMessage> ChatRef { get; set; }
private TelerikChat<ChatMessage>? ChatRef { get; set; }

@@ -57,6 +57,7 @@ Configure file upload behavior using the `ChatFileSelectSettings` component:

@code {
private TelerikChat<ChatMessage> Chat1;
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be, with the corresponding ? or ! in method calls.

Suggested change
private TelerikChat<ChatMessage> Chat1;
private TelerikChat<ChatMessage>? ChatRef { get; set; }

private List<ChatMessage> Messages { get; set; } = new List<ChatMessage>
#region Component Parameters

private List<ChatMessage> ChatData { get; set; }
Copy link
Contributor

Choose a reason for hiding this comment

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

Should be

Suggested change
private List<ChatMessage> ChatData { get; set; }
private List<ChatMessage> ChatData { get; set; } = new();

or

Suggested change
private List<ChatMessage> ChatData { get; set; }
private List<ChatMessage>? ChatData { get; set; }

Copy link
Contributor

@dimodi dimodi left a comment

Choose a reason for hiding this comment

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

  • Ideally, code snippets should not trigger compiler warnings about possible null values. Collections should be either initialized or nullable. Component references should be nullable.
  • No need for new lines in class definitions, to make the snippets shorter.

Copy link
Contributor

@ikoevska ikoevska left a comment

Choose a reason for hiding this comment

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

Ignored. This PR is outside of the docs-reviewers scope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-to-production Use this label to get a comment to choose whether to merge the PR to production
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants