Skip to content

History of commits

4473 commits

feat(news): rebuild the form of a section

The form lives at /admin/news/sections/new and /admin/news/sections/{id}/edit, the old addresses leading there. The name, the code and the text after the list stand on the left; on the right the place in the tree — which a section can now be moved to with everything under it, but not under itself or a section under it —, the fields for the search engines and, for a saved section, when it was made and changed. Saving stays on the form, "save and close" returns to the sections beside it. The helpers of the breadcrumbs, which nothing calls any more, are gone.
simba77 25 жов 2026, 21:49 Branch: 10.x f730c9c

refactor(news): save sections through a use case and the repository

SaveSectionUseCase validates the form and writes the section; the form keeps its addresses and its template. Two answers change on the way: a code taken at the top is refused as under a section, and changing a section drops the cached tree as adding one did, so the addresses of its articles follow a new code.
simba77 25 жов 2026, 21:45 Branch: 10.x 52d21d4

test(news): record what the form of a section writes before rebuilding it

Adding a section under the section of the address and changing one where it stands: the fields, the code made of the name or of what is given, where the form returns to, and what it refuses — a name left empty, a code taken beside it, an unknown section. A code taken at the top is let through, the root being looked for as a null parent while the form stores 0.
simba77 25 жов 2026, 21:42 Branch: 10.x 38032d2

feat(news): rebuild the form of an article

The form lives at /admin/news/articles/new and /admin/news/articles/{id}/edit, the old addresses leading there. The name, the code and the two texts stand on the left; on the right the publication with the status the dates give, the section — which an article can now be moved to, its code having to be free there — and the tags, the fields for the search engines and, for a saved article, what it is beyond its form. A field the form does not accept is marked with its message. Saving stays on the form, "save and close" returns to the list of the section. The editor of the text is given the address it uploads pictures to, which the form left out.
simba77 25 жов 2026, 21:35 Branch: 10.x 363ca95

refactor(news): save articles through a use case and the repository

SaveArticleUseCase validates the form and writes the article with its text for the search; the form keeps its addresses and its template. Two answers change on the way: a code taken at the root is refused as in a section rather than ending in an error of the database, and a date that is not one is refused rather than ending in an error of the server. The dates are no longer escaped on their way in.
simba77 25 жов 2026, 21:30 Branch: 10.x d3dcc68

test(news): record what the form of an article writes before rebuilding it

Adding an article to the section of the address and changing one: the fields, the code made of the name or of what is given, the dates, the author, the text of the search, where the form returns to, and what it refuses — a name left empty, a code taken in the same section, an unknown article or section.
simba77 25 жов 2026, 21:27 Branch: 10.x bafe1b3

feat(news): rebuild the news of the panel as a flat live list with deleting in dialogs

/admin/news lists every article, or every section on its tab, flat, with the path of the section beside each; it is narrowed by a section with its subtree (0 for the root, the articles stored without a section among them), by the status worked out from the switch and the dates, by the author and by a search of the name, the code or the number, and ordered from the heads of the columns. /admin/news/content/{id} leads to the list of that section. Deleting an article or a section is a dialog at /admin/news/articles/{id}/delete and /admin/news/sections/{id}/delete, which says what goes with a section and returns to the page of the list; a missing one answers 404 rather than 500. The page of the tiles and the confirmations with a token of their own are gone.
simba77 25 жов 2026, 20:48 Branch: 10.x 8587231

refactor(news): delete articles and sections through use cases and repositories

DeleteArticleUseCase removes the attached files and the article, DeleteSectionUseCase the section with its subtree, which SectionTree works out from where every section stands rather than from the cached list of subsections. The repositories of the articles and the sections are the first of the module; the confirmations keep their token and their answers. The properties of the models are typed, which pays off the entries of the baseline that their untyped PHPDoc caused.
simba77 25 жов 2026, 20:37 Branch: 10.x 0171aae

feat(admin): rebuild the karma settings and confirm clearing it in a dialog

The switches, the limits of voting and clearing are cards of their own, every setting says what it does, and clearing is a dialog that tells how many votes go. The switch of the staff says what it does: it lets them be voted for, as the profile reads it, and was labelled as forbidding it. The daily limit is named after what it counts, points rather than votes.
simba77 25 жов 2026, 20:15 Branch: 10.x e9bd1fc