FreshRSS
FreshRSS copied to clipboard
OPML category is a text field
Describe the bug Category is an input
To Reproduce Steps to reproduce the behavior:
- Go to add subscription or category
Expected behavior It should be a drop down
Screenshots

Environment information (please complete the following information):
- FreshRSS version: 1.20.0
That field is for the name of the new category associated to the dynamic OPML, but I can see that the naming of the field could/should be improved
An empty category is needed, isn't it?
An empty category is needed, isn't it?
Yes, a new category of that name will be created to host the dynamic OPML
How to proceed here?
Is a unique type of category required or merely an empty category?
A non-existing category name is expected at the moment
What is expected to change here @Frenzie ?
Primarily the string since it's confusing. Perhaps that could be as simple as something like Category name for OPML or OPML category. Or maybe the string can stay, but it could have some help text. Just like how the URL says it's dynamic, the category help text could say it's uniquely for OPML.
Ideally you'd also want to reject existing category names before even submitting. At the simplest a dynamic negative lookahead pattern would probably do the trick, though you'd want to set a custom rejection message.