mysociety / alaveteli

Provide a Freedom of Information request system for your jurisdiction
https://alaveteli.org
Other
389 stars 196 forks source link

Add dropdown or similar with suggested comment when adding censor rules #8232

Open HelenWDTK opened 5 months ago

HelenWDTK commented 5 months ago

Replaces Issue #7964, deleted in error:

On 18 October 2023 @HelenWDTK wrote: At the moment the system suggests replacement text - I'd like something similar implementing for the comment field.

At the moment it is quite annoying to have to repeatedly type the same comment when needing to add multiple censor rules, and we usually add these for a very limited number of reasons.


On 19 October 2023 @garethrees wrote: Should be quite easy to render recent comments (CensorRule.last(3).pluck(:last_edit_comment)) and display them with a button that inserts the text into the current comment field. 4 Would also be good to show a preview of the comment for the "use previous" button that appears when editing a rule while we're at it.

Might want to reduce the width of the comment field a tad to allow for the previous/recent comments section.