cookbook icon indicating copy to clipboard operation
cookbook copied to clipboard

The folder name should be auto trimmed if exceeding the character limit

Open peterge1998 opened this issue 2 years ago • 4 comments

Is your feature request related to a problem? Please describe. When you import a recipe with a name that is too long, the app becomes unavailable and produces an error when launching (#1616). This is a really frustrating experience for the user, it does not tell what is going wrong, why it does happen and how it can be prevented.

Describe the solution you'd like Ask the user to enter a custom recipe name, which fits the current character limit of X or auto trim the folder name to sth with (...) at the end, so it does always fit the limit.

Describe alternatives you've considered The auto replace is my favorite, because it leaves no option for misusing this anymore.

peterge1998 avatar Apr 17 '23 07:04 peterge1998

Since the referenced issue is closed.. Is this still a problem? Does anybody know what is the maximum allowed folder length?

seyfeb avatar Oct 21 '23 17:10 seyfeb

Yes it is still an issue.

The problem is that some sites misuse the title of the recipe to add some promotion. This results to literally hundreds of chars. Depending on the used file system this can get a problem.

Additionally, any special chars might also cause trouble (I think there was a similar and this related issue.)

christianlupus avatar Oct 23 '23 04:10 christianlupus

I did not find the/a related issue with special characters causing trouble in here, but I found some things:

seyfeb avatar Oct 30 '23 11:10 seyfeb

We should additionally provide a visual flag in case a field gets too long inn the web ui. Something like a red backround/border or so. Nevertheless the backend needs fixing.

christianlupus avatar Jan 04 '24 07:01 christianlupus

This should be fixed with #1268

christianlupus avatar May 21 '24 17:05 christianlupus