Skip to content

History of commits

4473 commits

refactor(admin): share the language switch of the contacts settings

The dropdown of languages with a panel of fields per language, and the note on how the site falls back to the default language, become components of the panel (language-switch, language-fallback-hint) driven by one script (language-panels.js). AdminLanguageOptions lists the installed languages, marks the default one and picks the one opened first. The contacts settings use them instead of markup and a script of their own.
simba77 30 Okt 2026 pukul 14.31 Branch: 10.x 7667bb6

fix(consent): fall back to the default language for the cookie banner text

The banner took the text of the visitor's language or else the English one, so a site writing only in its own language showed its visitors in other languages the stock text. It now tries the default language of the site before English, as the contacts page does. The heading of the settings card was shown in English: a missing blank line in ru.po merged its entry into the next one.
simba77 30 Okt 2026 pukul 14.24 Branch: 10.x 6fcea78

feat(collections): lay out the forms of an item, a section and a field

The forms are laid out in cards, two columns like the forms of the news, with the shared footer of buttons (sticky for an item). Every form is headed by what it is: an item form no longer says Items, a section form no longer says Sections. An item: the name, code and texts with the fields of the collection beside each other on the left; publishing and its place on the right. Dates are picked with the date and time inputs of the browser instead of typed as YYYY-MM-DD HH:MM:SS, the section is chosen from the tree by its path, and a required field left empty now stops the item with a message — the flag was not checked before. A section says where it stands in the tree; a field gathers its properties as switches and warns that changing the type of a filled field may lose values.
simba77 30 Okt 2026 pukul 14.09 Branch: 10.x 3537d3c

feat(collections): list the fields of a collection as a table

The fields tab is a table of what the items carry: the name and code, the type, whether a field is required, multiple and shown in the list of the items, and its sorting; the menu of a row edits it or deletes it in a dialog. An empty collection explains what a field is for.
simba77 30 Okt 2026 pukul 14.05 Branch: 10.x eb44a30

feat(collections): show the sections of a collection as one tree

The sections tab shows the whole tree at once, each section under its parent in the order of the collection, drawn like the tree of the forum, instead of one level at a time opened with Open. A section counts the items of its subtree, as the link to its items does, with its own when they differ; its menu edits it, lists its items, adds an item or a subsection in it and deletes it in a dialog. Saving or deleting a section returns to the tree. The paged query of one level of sections is gone; the tree is built from every section of the collection with its item count.
simba77 30 Okt 2026 pukul 14.01 Branch: 10.x f195cf9

feat(collections): rebuild the list of the items of a collection

The items tab is a live list: a search by the name, the code or the id, the section with everything under it (or the items outside every section) and the status — published, hidden, scheduled or expired. A row shows where the item stands, whether the site shows it, when it changed, and the values of the fields the collection marks for the list; its menu edits it, opens it on the site and deletes it in a dialog that returns to the same page of the list. A field gets "Show in the list of items" (migration: collection_fields.in_list). The panel has a query of its own for the list, separate from the query API of the site; the sections of a collection are read as a tree (SectionTree). Numbers are shown in full: a price is not shortened to 75K.
simba77 30 Okt 2026 pukul 13.16 Branch: 10.x f752af3

feat(collections): give every collection a page with tabs

A collection is one page in the panel now: its name, a link to it on the site, and a tab for its items, sections (when it uses them), fields and settings, each with what it holds. The parts of a collection were separate pages reached only through the list. The list of the collections is a table with the number of items, sections and fields and whether a collection is public, API only or turned off; a row opens the collection, its menu leads to every part of it. The settings moved from /admin/collections/{id}/edit to the settings tab (the old address is gone), laid out in cards with the deleting of the collection at the bottom. A new collection opens on its fields. Deleting a collection, field, section or item asks in a dialog; the collection's says what goes with it. The public address of a collection is worked out by the model, and the list and the head take it from there.
simba77 30 Okt 2026 pukul 13.07 Branch: 10.x 1ff63cc

feat(news): draw the sections of the panel like the tree of the forum

The tree of the sections is worked out by GetNewsListUseCase::getSectionTree(): what the filter lets through, the sections above a found one, the depth below the section the list is narrowed to, and the articles of every subtree. The row mapper only draws it. The top sections get the tinted row and bold name of the tree of the forum, the sections a search only passes through are dimmed, and a narrowed list starts at the left edge. The number of articles counts the subtree, as the link it leads to does, with the section's own when they differ. The date of creation is gone; the date of the last change stays. Tests cover the order, the depth, the search and the counts.
simba77 30 Okt 2026 pukul 12.25 Branch: 10.x 76aeb27

refactor(news): drop the flat list of sections

The sections of the panel are listed as a tree from every section at once, so the paged and ordered list they came from is gone: the section query and count of the repository, the use case method that read them, and the column of the number of articles in the order of the list. Only the articles are ordered by a column now.
simba77 30 Okt 2026 pukul 12.22 Branch: 10.x d27ba2a

fix(consent): name the accounts and format the dates of the consent log

The log shows the name of an account that still exists, linked to its profile, and only the id of one deleted since, without a link to a profile that is gone. Dates are formatted like the rest of the panel. The title of a consent no longer has its id glued to it: the fallback for a deleted consent took the whole expression because ?? binds tighter than ~. The actions of the consent list are aligned to the right edge, and Total: is translated.
simba77 30 Okt 2026 pukul 12.11 Branch: 10.x 15868df