История коммитов

simba77
feat(forum): redesign the forms that write a topic, a post and an edit
Cards of fields like the upload form of the downloads; what was wrong comes back beside the fields with a 422 and the text kept, the antiflood included. The page of an answer recalls the post it answers.
simba77
feat(forum): delete the attachments no post points at
forum:cleanup-orphan-files runs daily and deletes the files of the attachment directory without a row in cms_forum_files, older than a day. StorageInterface lists the files of a directory.
simba77
refactor(forum): reach the attachment storage through a domain interface
ForumAttachmentStorageInterface in Domain; the use cases, controllers and the file model take it instead of the infrastructure class, and their ten entries leave the baseline of the architecture rules.
simba77
feat(forum): choose the files of a post in the form that writes it
A post, an answer, a new topic and an edit carry their files: all are checked before any is written, one refused saves nothing (422, the text kept), and the files written before a failure are deleted again. The step /forum/addfile after sending is gone. The number of files a post may hold is a forum setting, 5 by default.
simba77
feat(forum): give every form that writes a one-time token
ForumFormTokens replaces the single numeric token of the session: a new topic, a post, an answer and an edit each spend theirs on saving, so a form sent twice saves once. The last ten tokens stay valid for forms open in several tabs.
simba77
feat(forum): answer and quote a post in the form under the topic
The posts and the form are marked for comments.js, as in the guestbook; Reply and Quote stay links to the page of the answer without the script. An answer recalling a post on the same page scrolls to it.
simba77
feat(forum): recall the answered post above an answer
A hidden post is recalled only as deleted to whoever may not see it. Deleting a post for good, alone or by emptying the hidden ones, leaves its answers without the link.
simba77
feat(forum): keep the post an answer was written to
Migration forum_messages.reply_to_id (index, foreign key SET NULL). The page of an answer and the form under the topic (reply_to) both store it; a post of another topic, a hidden one the writer cannot see or their own leaves the answer without the link.
simba77
fix(forum): mark a hidden post with the dashed border of a hidden topic
The rule of the comment came later in the styles and took the border back; the text of the post is muted and the line above its actions takes the colour of the border.
simba77
feat(forum): redesign the filter by author
The authors of the topic are a list of boxes with their counts in a card, under full breadcrumbs and a link back to the topic. The script of the forum held only what the whole site uses: the lightbox moves to lightbox.js, the label of a chosen file to file-input.js without jQuery.