Skip to content

History of commits

4473 commits

feat(admin): rebuild the list of users and fold the staff and registrations into it

The list searches by nickname, e-mail, account number and IPv4, filters by role, activity and registration date, splits into all / awaiting approval / banned, sorts by its columns and counts above itself. It is a live list: live-list.js asks the same address again as the search is typed or a filter is picked and puts the regions back in place; without the script the links and the form work as plain pages. Removed URLs: /admin/staff (now ?role=staff), /admin/registrations (now ?status=pending, the actions moved to the menu of the row), /admin/users/by-nick and /admin/users/by-ip (now ?sort=). The notification of new registrations leads to the list instead of the dead /admin/reg/. admin_counters() no longer returns users and staff. New components of the panel: stat card, search field, filter dropdown, filter chips, sortable column head, user cell, row actions, empty state - all on /admin/style-guide.
simba77 24 Okt 2026 pukul 17.30 Branch: 10.x d7b4700

feat(admin): move the panel into the shell of the new design

A sidebar with the sections of the menu, folding to its icons on a wide screen and sliding over the page on a narrow one; a top bar with the language, the color scheme, the notifications and the account; a page head with the breadcrumbs, the title and the page_actions and page_tabs blocks. shell.js replaces menu.js; the styles of the old chrome are gone. An item a module adds to the menu of the panel names a Lucide icon.
simba77 24 Okt 2026 pukul 16.50 Branch: 10.x a594647

feat(admin): restyle Bootstrap to the new design and add a style guide

The admin bundle paints the Bootstrap components from the tokens of the design (themes/default/src/admin/scss/ui/): one palette per color scheme, the green accent, the system font. The Bootstrap overrides of the old dark scheme are gone. Icons of the panel come from Lucide: npm run icons builds icons/admin.svg from src/admin/icons/icons.json, @admin/components/ui/icon.twig prints one. New URL: /admin/style-guide renders every component with its markup.
simba77 24 Okt 2026 pukul 16.08 Branch: 10.x 891b826

fix(profile): keep a moderator from handing out the ban they are under

A moderator banned from the forum still gave forum bans from the profiles of its members, and so went on moderating the forum the ban closed to them. BanAccess refuses a kind of ban the visitor is under, and now holds every rule of the ban screens: the hierarchy BanHierarchy carried, and whether the visitor may lift a ban or delete its record, which the guards of BanController and the buttons of the history asked separately. Clearing the history is refused with the same message as deleting a ban: "can be cleared by Supervisor only" was wrong for an account the visitor does not stand above, and for a role the permission was granted to.
simba77 24 Okt 2026 pukul 13.03 Branch: 10.x 6d8911c

fix(auth): let the ban of a section take the permissions of that section

A ban of a section took nothing away through the permissions, so whatever a section guards by a permission alone stayed open under it: a member banned from the comments still uploaded pictures for news comments, and a moderator banned from the guestbook, the library or the comments went on moderating them. BanVoter now takes away the permissions of the section a ban is for, above what a guest may do, as it does with all of them under the full ban.
simba77 24 Okt 2026 pukul 13.00 Branch: 10.x b0559ff

fix: let a ban of one section leave the others alone

The comments, the photo albums, the votes of karma and the editing of one's own profile closed under a ban of any kind, so a ban of the private messages took away the comments and the albums too. Each of them now asks for the kinds that are about it: the comments for the full ban and the ban of the comments, the library adding its own, everything else for the full ban alone.
simba77 24 Okt 2026 pukul 12.33 Branch: 10.x 2befb50