Skip to content

History of commits

4473 commits

perf(news): read the article page without repeated queries

Resolve section paths from the cached sections, count a view of the article already read, read its comments without guarding and counting them again, and map related and popular articles once.
simba77 ৯ নভে ২০২৬, রাত ১২:২৩ সময় Branch: 10.x c0c6ab4

perf(collections): hand the known structure to public selections of items

ContentCollectionItemQuery carries an optional ItemQueryStructure (field definitions and the section tree). CollectionsPublicApi builds it from the cached schema and sections, so lists, counts, section stats and single item reads no longer read the fields and the sections again. The query compiler and validator work with CollectionFieldDefinition instead of Eloquent models.
simba77 ৮ নভে ২০২৬, রাত ১১:১৮ সময় Branch: 10.x b068486

perf(collections): share the structure of collections through the cache

CollectionStructureMemo keeps the collection, its fields and its section tree in the application cache, per locale, under the tag of the collection. A change of a collection or a synchronization of declarations forgets the whole structure.
simba77 ৮ নভে ২০২৬, রাত ১১:৬ সময় Branch: 10.x 1a75fd9

perf(news): stop counting the list when only a page of it is read

NewsReadService::articles() reads a page without the total; page() and NewsPageDTO are removed. The section and search pages count once for the pagination, the homepage, related and popular lists no longer count at all.
simba77 ৮ নভে ২০২৬, রাত ১০:৫৮ সময় Branch: 10.x dc32674

feat(theme): confirm forms in a dialog of the site

A form with data-confirm asks in a dialog of the layout instead of the browser window and is sent again with the same button on yes; confirmAction() asks from a script. Deleting a news comment uses it. The style guide shows the dialog.
simba77 ৮ নভে ২০২৬, দুপুর ২:২৭ সময় Branch: 10.x a1c030c

feat(admin): add toasts to the panel

The panel gets its own toasts with the contract of the public ones: a stack at the top centre above the dialogs, a server component that stays an alert without the script, and toast() and announce() for scripts. Marked alerts are shown on load, after a live list update and after a side panel loads. The style guide shows every kind.
simba77 ৮ নভে ২০২৬, দুপুর ২:২০ সময় Branch: 10.x dfbe5f0

feat(theme): add toasts to the public site

A stack at the top centre shows the result of an action wherever it was taken: success, info, warning and error toasts that close when their bar runs out and pause under the pointer or focus. The server asks for one with the toast component, which stays an alert without the script; a script calls toast() or announce(). The style guide shows them. News comments use them: a deleted comment, and a refused deletion, are toasts; a comment just added lights up and its message is only read out to a screen reader.
simba77 ৮ নভে ২০২৬, দুপুর ২:১২ সময় Branch: 10.x c2bf820