Skip to content

History of commits

4473 commits

fix(library): reorder the sections only from a form

Opening /library/section/{parent}/move/{direction}/{index} swapped two sections and went back by the Referer. Up and down are POST forms on the section itself now, which come back to the section above it. The places of the sections beside it are numbered anew on every move, so two sections that shared one — every section created gets max(id) + 1 — move as well.
simba77 19 noy 2026 22:42 Branch: 10.x a5e725a

fix(library): delete a section from one confirmed form

Deleting a section took up to three GET visits, each of which could delete: ?yes for an empty one, ?movedeny to move the contents and delete, ?deldeny to delete everything. It is one POST behind RequireConfirmationMiddleware now. The dialog asks where the contents go — into another section of the same kind, chosen by its whole path, or away with it — and the section the visitor lands on says what was done in a toast. A target under the section itself is refused. Deleting everything failed on a section holding only sections, since Tree::cleanDir() counted and deleted an empty list of articles. DeleteSectionUseCase deletes the subtree read once by LibrarySectionTreeReader, the articles with their comments, tags, votes and covers. The confirmation pages are gone.
simba77 19 noy 2026 22:40 Branch: 10.x b4340c7

fix(library): delete the cover of an article only from a confirmed form

Opening /library/article/{id}/image/delete?yes deleted the cover. The edit form asks in the dialog of the page and posts to the same address behind RequireConfirmationMiddleware; it comes back to the form with a toast. The confirmation page is gone, and the link is offered only to those who may delete it.
simba77 19 noy 2026 22:36 Branch: 10.x 9f7855a

fix(library): forget the paths of the sections between two requests

LibraryCategoryPathService kept the path of every section it had met for the life of the container. Under a long-running runtime a renamed or moved section kept its old address, and the tests, sharing one container, got the path of a section of another test. It is reset before every request now, as the paths of the downloads and the forum are.
simba77 19 noy 2026 22:34 Branch: 10.x 849a8c5

fix(library): delete an article only from a confirmed form

The address /library/article/{id}/delete?yes deleted an article on a plain visit. It is a POST behind RequireConfirmationMiddleware now, asked in the dialog of the page; the confirmation page is gone. The tags and the votes of the article go with it, and the section it was in says so in a toast. The button is shown to those who may delete, not to the author who may only edit.
simba77 19 noy 2026 22:31 Branch: 10.x 8b28d9e