History of commits
4473 commits
feat(guestbook): redesign messages and enable live pagination
Reuse shared discussion styles with news comments and show technical metadata inline. Submit messages and paginate without reloading while preserving drafts, captcha validation and browser history. Offset feed navigation below the fixed header.
feat(news): add a short description of the main page to the settings
The new summary setting is shown under the heading of /news/, the way a section shows its own, and describes the page when it has no meta description.
feat(theme): show the technical data of a post in a quiet popover
@theme/components/moderator-meta.twig puts the address, the address behind a proxy and the browser of a post, with links to the IP search and whois, behind a small button at the end of the row of actions. data-hover-popover (src/js/hover-popover.js) opens a popover on hover with a mouse; a click keeps it open. News comments use it instead of the address badge.
fix(news): tidy the search results and lead back from their end
The pagination sits with the list instead of adding the gap of the page to its own, the way back to all news is a button and is repeated under a list of results, and the heading counts what was found.
feat(pagination): say which records a page shows beside the links
Pagination::render(withRange: true) puts "Showing 21–40 of 151" on the start of the links. Off by default; the news lists and the news search turn it on.
feat(collections): give sections a short description apart from the long one
New nullable column collection_sections.summary (migration add_summary_to_sections): plain text of up to 500 characters. News show it under the heading of a section and on its card, and keep the long description, now edited with CKEditor without uploads, as the text under the list, styled as rich content. The cache key of the collection structure carries the shape of its DTOs, so entries written before the upgrade are not read back.
feat(theme): add a shared Share button
@theme/components/share.twig is a popover with Copy link and plain share links of Telegram, VK, WhatsApp, Odnoklassniki and X; on a touch screen with the Web Share API it opens the share sheet of the system. The news article uses it instead of its own buttons, and the strings move from the news domain to system.
style(news): give the comment form a single frame
The toolbar, the shaded text area and the send button share one border; the heading moves into the placeholder of the field (new placeholder parameter of the editor component), only the field shows the focus, and the form stands further from the list.