sysadminsmedia / homebox

A continuation of HomeBox the inventory and organization system built for the Home User
https://homebox.software
GNU Affero General Public License v3.0
1.14k stars 62 forks source link

Text Field Character Counter & Max Character Count/Limit Display #150

Closed lfearnley closed 1 month ago

lfearnley commented 3 months ago

What is the problem you are trying to solve with this feature?

Copying from https://github.com/hay-kot/homebox/issues/737

Original: When entering in text into fields, some fields appear to have character limits. However, this is not disclosed, and when attempting to save an entry, a non-verbose error of "failed to save item" appears, not indicating what the issue actually is. Upon further investigation, in my case in particular, when attempting to paste in warranty info in the "warranty notes" field, it appears that the field only allows for a max number of x-characters to be entered. I'm not sure what the maximum amount is as it's not disclosed or shown.

What is the solution you are proposing?

Update: In addition to the below original text from @Xykrotik, more detailed error messages than 'failed to save' that highlight the field that is over limit/contains bad input.

Original: The solution to this would be to add a character counter, and max character count / limit, to be displayed in the bottom right-hand corner of the text box/text entry field. This would help mitigate attempting to save items, edits, and entries that go over the hidden max character count, and thus encountering the non-verbose error message that follows.

What alternatives have you considered?

Original: Alternatives solutions would be implementing a more verbose error message system/prompt. (Which I know has been requested as referenced in https://github.com/hay-kot/homebox/issues/472 ) This message could display which field has too many characters in it, and what the max amount is for that field. However, I feel this may be more tedious to implement than a basic character counter for each text entry field.

Additional context

No response

Contributions

jsspen commented 1 month ago

Is there any way to increase the character limit or is this a hard limit imposed by something else?