-
Notifications
You must be signed in to change notification settings - Fork 217
Increase maximum length for thumbnail description input in image annotations #7500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,7 +30,7 @@ export default function ThumbnailDescriptionInput({ | |
| value={description} | ||
| onInput={e => onEdit((e.target as HTMLInputElement).value)} | ||
| // Maximum length for `target.description` field supported by the API. | ||
| maxlength={250} | ||
| maxlength={5000} | ||
|
Comment on lines
32
to
+33
|
||
| classes="flex-1" | ||
| /> | ||
| <IconButton | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider adding a test to verify that the maxlength attribute is set to 5000. This would document the expected behavior and prevent accidental changes to this limit. For example, you could add a test like:
This is especially important given that the comment indicates this value must match the API's constraint.