Skip to content

History of commits

4473 commits

fix(library): lead the author of an article waiting for moderation back to its section

Saving an article no moderator had published yet sent its author to the article, which only the moderators see: the changes were saved, the author got a 404. The author goes back to the section and is told the article shows once it is published. A cover that failed to upload was reported and then overwritten by the message of success; the form now says either the one or the other.
simba77 Nov 19, 2026 11:31 PM Branch: 10.x eca8b95

fix(library): keep the page of a long text through the actions of its discussion

Every action of the discussion came back to the address of the article without its part, and the live list wrote that address into the history while the second page of the text stayed on the screen; a reload showed the first. The discussion is under the last page of the text now, which the subject names as the page it is embedded in, so its actions come back there; the other pages lead to it from the card about the article. The comments of the core join their page to an address that already has a query with &.
simba77 Nov 19, 2026 11:31 PM Branch: 10.x 763a061

feat(library): redesign the forms of the articles and the sections

Writing and changing an article, creating and changing a section are cards of fields in the style of the forms of the forum and the downloads. A form sent back keeps what was typed and says beside the field what is wrong; a saved form leads to the article or the section, which says so in a toast, instead of a page of its own. The cover is replaced and deleted, after the dialog, in the form of the article; a moderator chooses its section among the sections of articles by their whole path, and a section among the sections of sections or the top of the library — not under itself. A member wrote into any section by its id in the address, those closed to the members and the sections of sections included; only an open section of articles takes their article now. A new section comes last among those beside it instead of at the place of the greatest id. A text file in UTF-8 is no longer converted as if it were Windows-1251. Hashtags::issetTag() counts the rows instead of trusting rowCount() of a SELECT, which SQLite answers with the changes of the statement before.
simba77 Nov 19, 2026 11:18 PM Branch: 10.x db98ca7

feat(library): redesign the listings of the articles

The new articles, the rating, the articles of a tag, the search, the latest comments and the articles waiting for moderation share the chips of the top of the library, the current one marked, and show the articles as the cards of a section, naming the section of each; the rating also counts the readings and the comments and sorts by a segmented switch. The search is the search field of the theme, says beside it why a query is refused, and marks the words found with <mark>. A moderator approves, changes or deletes an article from its card and approves all of them from the bar. The articles of a tag were never found on a database whose PDO counts no rows of a SELECT, SQLite among them. The star pictures and the components of the old rows are gone.
simba77 Nov 19, 2026 11:10 PM Branch: 10.x 23b0b7e

feat(library): redesign the page of an article and discuss it under the text

The text is a card with the cover, the pages of a long text, the downloads as chips and the buttons to change and delete it. A second card tells about the article — who added it and when, the score as stars, the readings, the comments with a link down to them, the tags — and holds the vote: five stars, each a button of the form, lit up to the one under the pointer. The heading names the section, the date and the readings; a moderator is told an article waits for moderation. The discussion moves under the article, as the news have it: the subject names the article as the page it is embedded in, the core sends its old address there, and the live list asks the article for its pages. The pages of the discussion take the page parameter, so the pages of a long text move to part.
simba77 Nov 19, 2026 11:05 PM Branch: 10.x 1a21505

feat(library): redesign a section of articles

The articles of a section are cards: the title, two lines of the announcement, the author, the date and the score as five stars, half of one filled for half a point, instead of the star pictures. Below them the total, then a box with what the visitor may do: write an article, and for a moderator change or delete the section. A member who may not write here is told so. The scores of the page come from one grouped query (LibraryTextRepositoryInterface::ratings()) instead of two queries for every article. The bar of the listings stays on the top of the library only, as the design has it.
simba77 Nov 19, 2026 10:57 PM Branch: 10.x 9dba272

feat(library): redesign the top of the library and its sections of sections

The top of the library and a section holding sections list them as cards: an icon, the name with the number of published articles under it, the description, and a mark on a section open to the member for writing. A moderator moves, changes and deletes a section from the row under its card, a member writes into an open one from there. The heading counts the sections and the articles, the bar above holds the listings of the library as chips — a moderator sees the articles waiting for moderation among them — and a moderator creates, changes and deletes the section from the box below. The cards come from two queries whatever the size of the library (LibrarySectionTreeReader): every section and the articles grouped by section; the addresses and the counts are worked out in memory instead of one count per row.
simba77 Nov 19, 2026 10:54 PM Branch: 10.x b2ffb23

fix(library): take a vote for an article only at its own address

Every new Rating() looked into $_POST for rating_submit and voted, then went back by the Referer — on the page of an article, but also in every listing that builds a Rating for each row. Voting is POST /library/article/{id}/vote now: a score from one to five, changed by voting again, answered by a redirect to the article and a toast. Rating only reads. The address of a section or an article takes GET only.
simba77 Nov 19, 2026 10:48 PM Branch: 10.x 256e445