Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ export const manifest: ManifestPropertyEditorSchema = {
{
alias: 'maxChars',
label: 'Maximum allowed characters',
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

[nitpick] The description has been removed, but it would be helpful to update it rather than remove it completely. Consider adding a description similar to TextArea's approach. For example: "If empty, defaults to 512 characters" or "Maximum 512 characters allowed" to clarify the constraint being applied.

Suggested change
label: 'Maximum allowed characters',
label: 'Maximum allowed characters',
description: 'If empty, defaults to 512 characters.',

Copilot uses AI. Check for mistakes.
description: 'If empty, 512 character limit',
propertyEditorUiAlias: 'Umb.PropertyEditorUi.Integer',
config: [
{ alias: 'min', value: 1 },
Copy link

Copilot AI Nov 14, 2025

Choose a reason for hiding this comment

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

[nitpick] The minimum value is set to 1, which prevents users from setting maxChars to 0. However, the related TextArea property editor allows a minimum of 0 for its maxChars configuration (meaning unlimited). Consider whether TextBox should also allow 0 for consistency, or if there's a specific reason to enforce a minimum of 1 character.

Suggested change
{ alias: 'min', value: 1 },
{ alias: 'min', value: 0 },

Copilot uses AI. Check for mistakes.
{ alias: 'max', value: 512 },
{ alias: 'placeholder', value: '512' },
],
},
],
defaultData: [
Expand Down
Loading