Skip to content

History of commits

4473 commits

feat(admin): confirm deleting an ad in a dialog

Deleting one link asks in the modal of the panel, like clearing the inactive ones, and names the link it removes; a plain visit gets the same dialog as a page. The list comes back at the page the link was deleted from.
simba77 30 жов 2026, 10:33 Branch: 10.x 6b5712c

feat(admin): rework the advertising list

The list fits the screen: the place column is gone (the tabs already split by place), the title is shown in its own color and style, with the other rotating titles as a counter. Who sees a link and on which pages share one column, hits and the period another. The status tells a shown link from a hidden one and from one whose limit is used up. Moving, hiding and deleting sit in the row menu; moving is offered only where it does something. A link whose hits or days are used up is not turned back on: the site would hide it again, so the panel asks to raise the limit. Actions return to the page they were taken on and say what they did; the tabs count the links of every place. On a phone a row becomes a card.
simba77 30 жов 2026, 10:31 Branch: 10.x 00a88a5

fix(admin): accept only http(s) addresses and hex colors for ads

The ad form goes through the validator: the link must be an absolute http(s) address, the title is required, and the color is six hexadecimal digits (a pasted # is dropped). Errors are shown next to their fields. The site skips an ad whose saved address has another scheme, so an old javascript: link is never printed. New validator rules: WebAddress and Pattern.
simba77 30 жов 2026, 10:25 Branch: 10.x bcdfe2e

feat(contacts): rearrange the message page and panel

The message page and the panel share one layout: the text, the sender, then the status, dates and technical details. Actions are ordered delete, reply, mark as processed; the page gets a link back to the list below the cards. A status has its own strings (New message, Processed message) apart from the filter tabs. The message list passes its base URL to the rows instead of hardcoding it.
simba77 30 жов 2026, 10:08 Branch: 10.x bec103e

refactor(language): remember the picked language through the locale resolver

LocaleResolver::remember() checks the code against the installed languages and stores it in the session; both the ?setlng parameter and the language modal go through it, so the rule lives in one place. The test of an unknown language now picks a language first and checks that the unknown one does not replace it.
simba77 30 жов 2026, 00:55 Branch: 10.x 0e25023

fix(language): remember the language picked in the modal

The POST branch of the controller was a stub returning an empty body, so the modal closed and the page reloaded in the same language. The picked code is now validated against the installed languages and stored in the session, which the locale resolver reads back on the next request. A functional test covers both the switch and a language the site does not have.
simba77 29 жов 2026, 23:19 Branch: 10.x b295be0