Skip to content

History of commits

4473 commits

feat(forum): redesign the root of the forum and its categories

The root and a category list their sections as rows: what a section holds counted over every section under it, the topic of the last post with its author and date, and the sections right under it opening below. The heading sums topics and posts, the bar above holds the collections as chips and the search of the forum, the line below who is here and the rules. The rows come from three queries whatever the size of the forum (ForumSectionRows): every section, the counts grouped by section, and the topics that end them; the path of every section is worked out in memory instead of asking for each parent. Hidden topics count, and may be the last one, only with forum.deleted.view. The bar and the line below serve the pages of topics as they are until those are redrawn.
simba77 15. Nov 2026 22:29 Branch: 10.x a1a6045

feat(forum): move and change a topic in a dialog

Moving and changing a topic open a dialog on the topic page; the links of the menu keep leading to the pages of the two forms, which work without the script and show the errors of the fields. Changing a topic keeps its meta tags. Moving lists every section that holds topics with its path in one choice, instead of going through the categories one by one (TopicMoveTargets); the queries of the old way are gone. confirm.js: a link with data-confirm-form sends the form of that id, so its dialog asks; the focus comes back to the link. Shown in the style guide.
simba77 15. Nov 2026 22:17 Branch: 10.x fdf8d2a

feat(forum): delete a topic after the dialog and restore its files with it

A topic is deleted from the dialog of its page: hiding is the default, deleting for good is a choice shown only with forum.topic.destroy. The route takes RequireConfirmationMiddleware and the page delete-topic is gone. Restoring a topic brings back the files of its posts in sight; they stayed hidden for good before. The files of posts hidden on their own stay hidden.
simba77 15. Nov 2026 22:10 Branch: 10.x 0bc1bc5

feat(forum): delete a post after the dialog and restore it by a form

A post is deleted from the dialog of the topic page; hiding is the default, deleting for good is a choice of the dialog shown only with forum.post.destroy, and the dialog warns when the post is the last one of the topic. The route takes RequireConfirmationMiddleware. Restoring a post is a plain form. The pages delete-post and restore-post are gone.
simba77 15. Nov 2026 22:09 Branch: 10.x ae1088f

feat(forum): delete the chosen posts after the dialog

The chosen posts are deleted from the topic once the dialog is answered, without a page of its own in between; the route takes RequireConfirmationMiddleware and the result comes back as a toast. The boxes of the posts belong to the form by its id, so the posts no longer sit inside it.
simba77 15. Nov 2026 22:05 Branch: 10.x e49bf4a

fix(forum): take the files of bulk-hidden posts out of the list of files

Deleting the chosen posts hid the posts, or the whole topic when every post was chosen, but left their attached files in sight: the public list of files showed them with the text of their posts. The files now go out of sight with what is hidden, as they do when a post or a topic is deleted on its own.
simba77 15. Nov 2026 21:54 Branch: 10.x 60321fc