Журнал изменений

Журнал изменений

Фильтр и поиск

Всего: 1347 Доступных коммитов | Отфильтровано: 1347 Коммиты | Страница: 34 из 135
10.07.2026
Test: Lock independent theme contracts in validation suite
Автор: Eduard Laas | Дата: 11:49 10.07.2026

Fixes the Windows path defect that silently turned the template reference scan into a no-op and replaces cross-theme byte-equality checks with per-theme runtime contracts.

Core changes:

  1. Reference validator hardening (tests/TemplateValidationTest.php):
  • Normalize base path and file paths to forward slashes before computing repository-relative paths
    • Mixed Windows/POSIX separators previously left absolute paths, so anchored patterns matched nothing and zero references were checked while the test stayed green
  • Require non-zero counters for found, classified, and include/extends/component references
  • Discover installed frontend themes dynamically instead of the hardcoded default/simple/lite list
  • Forbid cross-theme includes, cross-theme asset references, hardcoded own-theme directory paths, and symbolic links
  • Drop testSharedFrontendFragmentsStayInSyncAcrossThemes in favor of testThemeRuntimeContractsAreIndependent
  1. Theme-aware CSS usage audit (tests/Unit/AdminCssClassUsageTest.php):
  • Report admin and lite independently
  • Scan theme HTML, theme hooks, PHP emitters, and shared JS state classes so chart, sort, and seasonal classes are no longer false positives
  • Keep the unused list informational; removal still requires a full emitter audit

Benefits:

  • The reference scan now actually validates template targets on Windows and POSIX alike
  • Themes can evolve independently without byte-equality coupling

Technical notes:

  • Regression cases cover mixed-separator paths and emitter classification
  • No runtime code changed in this commit
Feature: danger submit variant for destructive admin forms
Автор: Eduard Laas | Дата: 06:54 10.07.2026

The reserved .sl-but-red button variant gets its first consumer: form submits that destroy data render red, while inline delete links keep their DelCheck-confirmed link styling as agreed.

Core changes:

  1. Button fragment (templates/admin/fragments/button.html):
  • New is_danger semantic flag maps to sl-but-red in both the button and input variants
  1. Search admin (modules/search/admin/index.php):
  • The search-index clear form (the only destructive form submit in the admin, verified by scanning hidden op values and form action URLs) passes is_danger

Benefits:

  • Destructive submits are visually distinct from save/confirm actions
  • The variant contract is a semantic flag; PHP passes no CSS classes

Technical notes:

  • Intended visible change confined to the search index clear form
  • Verified live: the submit renders the danger gradient; php -l clean
Refactor: merge split selector blocks in lite theme
Автор: Eduard Laas | Дата: 06:50 10.07.2026

Four selectors opened two separate blocks each with complementary declarations, hiding half of a component's styling from the reader: the header login dropdown form (base block + arrow variable) and three mobile rules split across the max-width 900px section.

Core changes:

  1. Login dropdown (templates/lite/assets/css/theme.css):
  • Arrow colour variable folded into the main dropdown-form block
  1. Mobile section (templates/lite/assets/css/theme.css):
  • #hmenu overflow and padding blocks merged
  • .sl-top-right flex and margin blocks merged
  • #demo-line .sl-d-pane layout and margin blocks merged

Benefits:

  • One block per selector; all declarations visible in one place

Technical notes:

  • Declaration relocation only, nothing dropped; verified by rendering the affected components under the pre-merge and merged CSS at 1280px and 800px viewports - computed styles identical
Refactor: honest section layout for admin theme CSS
Автор: Eduard Laas | Дата: 06:43 10.07.2026

Two mega-sections carried misleading headers: "Chips" (~970 lines) held the speed dial, icon picker, monitor cards and more, while "Tabs" (~760 lines) started with the module frame and hid the changelog cards, sessions and form rows. Components are now grouped under headers that match their content, moving only the genuinely misplaced blocks.

Core changes:

  1. Relocations (templates/admin/assets/css/theme.css):
  • Rich-editor integration rules (Toast UI, CKEditor, CodeMirror inside .sl-div-form) moved from the tabs region into the forms section
  • .sl-chip block extracted from the middle of the sidebar-block family and placed ahead of it as its own section
  1. Section headers (comments only, no rule changes):
  • Sidebar blocks, list footer, admin home menu grid/cards, speed dial, icon picker, panel toggles, language editor rows, form actions
  • Module frame, tabs (now above the actual tab strip), classic form rows, search admin filter widths, sidebar links block, sessions, changelog

Benefits:

  • Sections describe what they contain; new rules have an obvious home

Technical notes:

  • Verified stepwise with computed-style probes after each relocation and after the header pass (55 components, all identical) plus live monitor and category-form screenshots
  • Two pre-existing over-length editor selectors moved as-is (unsplittable single selectors)
09.07.2026
Refactor: consolidate meta glyph definitions in admin theme
Автор: Eduard Laas | Дата: 23:51 09.07.2026

The plus toggle and list meta glyphs (post, date, category, views) were defined in three passes spread over 3100 lines: font boilerplate in the status-icons area, the plus content next to the debug styles, and the sizing plus icon codes inside the tabs section.

Core changes:

  1. Meta glyphs (templates/admin/assets/css/theme.css):
  • One grouped definition right after the shared ::before font boilerplate: sizing/colour block, plus toggle content with its sl-is-open state, and the four meta icon codes
  • Duplicate vertical-align declaration collapsed into the boilerplate
  • Contextual .sl-toggle-form-block-toggle.sl-plus::before override kept untouched in the forms section (higher specificity, order-independent)

Benefits:

  • The glyph vocabulary reads as one component instead of three fragments

Technical notes:

  • Pure relocation; computed-style probes (55 components incl. ::before content, colour, sizing and both plus states) are identical
Refactor: prune dead lite-era branches from admin emitters
Автор: Eduard Laas | Дата: 23:50 09.07.2026

The admin span and link fragments carried branch lists copied from the lite theme. Per-flag tracing across the whole PHP tree showed most of them are never invoked while the admin theme is active, and their classes have no rules in the admin CSS.

Core changes:

  1. Span emitter (templates/admin/fragments/span.html):
  • Remove dead branches: shop price, card reads/post/admin, private message folders, favourite toggles, votes and cart total; outer condition pruned
  • Kept alive branches verified by tracing: back button, highlight, geo flag, alphabet letter (admin newsletter via letter()), text tones, hidden, bold
  1. Link emitter (templates/admin/fragments/link.html):
  • Remove dead branches: category, module, comment, read, card image, shop and cart checkout, last; outer condition pruned
    • is_votes / is_comments stay: getVotingView() renders voting previews inside news, shop and voting admin pages (hook classes by design)
    • is_category stays available via inline-badge.html (help admin list)
  1. Bold utility fix (templates/admin/assets/css/theme.css):
  • Add .sl-text-bold { font-weight: bold; } to the text helpers
    • database.php and statistic.php emit is_bold for count values which silently rendered normal-weight; verified live (font-weight 700)

Benefits:

  • Admin emitters describe only what admin pages can actually produce
  • One real rendering bug fixed along the way

Technical notes:

  • Verified: 55 computed-style probes identical; full-page pixel diffs on monitor, category form, comments and changelog confined to dynamic debug-panel/clock zones (matched against a same-state double capture)
Refactor: drop orphaned alert structure classes in admin theme
Автор: Eduard Laas | Дата: 23:41 09.07.2026

The admin alert component defines title, text, close and actions parts that no admin source ever emits: the admin alert fragment renders only the body/lines/flash structure, and the parser callouts use body-only markup. The rules were vocabulary parity with the lite theme without consumers.

Core changes:

  1. Alerts (templates/admin/assets/css/theme.css):
  • Remove .sl-alert-title, .sl-alert-text, .sl-alert-close (+ hover) and .sl-alert-actions
  1. Buttons (templates/admin/assets/css/theme.css):
  • Mark .sl-but-red as a reserved danger-action variant so future audits do not flag it as dead again; it gets wired to destructive actions in a follow-up change

Benefits:

  • Admin CSS describes only what admin markup can actually produce

Technical notes:

  • Verified with computed-style probes over 55 admin components: the only diff is the probe element that carried the removed classes
  • Tone variants (sl-alert-info/success/warn/error/accent) and the flash bar are dynamic via the type flag and stay untouched
Docs: align demo pages with canonical chip vocabulary
Автор: Eduard Laas | Дата: 23:37 09.07.2026

Three demo pages that link the production lite theme.css still emitted pre-consolidation alias-only chips, which render unstyled since the alias selectors left the theme.

Core changes:

  1. components-terra.html (demo/):
  • Chip examples migrated to sl-chip [sl-chip-<tone>] plus semantic hooks
  • Rate-sites example drops the hook: it carries site-card positioning (position: absolute + opacity) that breaks the demo row
  1. modul-search.html (demo/):
  • JS result renderer emits canonical chip classes for date, category, comments, reads and author meta
  1. voting-block.html (demo/):
  • Five vote-count links gain the canonical sl-chip class

Benefits:

  • Demo pages render chips exactly like production templates

Technical notes:

  • Verified by rendering all theme-linked demo pages over HTTP: zero alias elements without sl-chip, clean consoles
Chore: remove obsolete admin mockups with deleted icon assets
Автор: Eduard Laas | Дата: 23:37 09.07.2026

A full browser audit of demo/ found 24 legacy admin concept pages that reference asset families removed from the admin theme during the Bootstrap Icons migration (b735d5a4): the templates/admin/images/icons/ directory (Noto emoji SVGs and old PNG icons) and the retired PNG logos.

Core changes:

  1. Removed pre-bootstrap concept mockups (demo/):
  • 18 emoji-icon concepts (admin-*-2026, icon panels, command center); admin-pulse-2026 additionally hung the page load
  • Legacy layout demos (admin-layout-demo, -2, admin-left-blocks-demo)
  • icon-hover-gradient-demo and both statistic-monitor-etalon pages

Benefits:

  • demo/ keeps only pages that render without broken assets
  • The favoured bi-alive direction demos are untouched and clean

Technical notes:

  • All files remain recoverable from git history
  • Verified with a Playwright pass over all demo pages (console, network, rendered DOM)
Docs: components catalog for the lite theme
Автор: Eduard Laas | Дата: 22:39 09.07.2026

Add the live component catalog (demo/components-fable.html) that renders every lite-theme control with the production CSS, and align it with the consolidated vocabulary.

Core changes:

  1. Catalog page (demo/components-fable.html):
  • Buttons, chips, tips/popovers, alerts, forms, navigation, rating/voting, status glyphs, tone palette and a component-to-emitter summary table
  • Chip section documents the post-consolidation contract: canonical sl-chip + tone classes with semantic names kept as JS/htmx hooks only
  • Forum meta, tabs state and visibility utility notes match the current CSS (no .selected, no .sl-thide, geo-ip meta chip via getIpHtml)

Benefits:

  • One reviewable page showing the real rendering of every control
  • Documents which fragment emits each component and who consumes it

Technical notes:

  • Static page linking the production base.css/theme.css; page scaffolding is namespaced cf-* and does not touch the sl-* vocabulary
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

Поделиться
QR-код

Предварительный просмотр