You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder if you've thought of adding configuration possibilities for the rules that users have to respect when writing the title and body of the proposal. And if you'd need help to add it.
Decidim::SimpleProposal.configure do |config|
config.min_length = 15 # Default
config.max_caps_proportion = 25 # Default
config.max_marks = 2 # Default
end
I believe you mean with config.max_marks the amount of consecutive punctuation characters? I actually think that is good rule to have and we haven't really faced the issue that someone would've complained about this.
The capital character proportion and min length change are actual requests we've heard in the past. But I think the capital characters switch should be an on/off switch, either you want that rule or not. The 25% is already quite low threshold, so you probably want to remove the whole rule if it becomes a problem.
Min length could be configurable as you presented. We've faced this issue particularly with the titles, e.g. when someone suggested "Trash cans", "Go-carts", "Picnic", etc. But I do believe that the description limit should still be at least 15 characters even if the title character limit is decreased.
Would you be willing to send a PR for these features?
Great module!
I wonder if you've thought of adding configuration possibilities for the rules that users have to respect when writing the title and body of the proposal. And if you'd need help to add it.
My intuition is that it would be as easy as overriding etiquette_validator.rb.
The text was updated successfully, but these errors were encountered: