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

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

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

Всего: 1173 Доступных коммитов | Отфильтровано: 1173 Коммиты | Страница: 17 из 118
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):
  2. 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

  3. Duplicate vertical-align declaration collapsed into the boilerplate
  4. 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):
  2. Remove dead branches: shop price, card reads/post/admin, private message folders, favourite toggles, votes and cart total; outer condition pruned

  3. Kept alive branches verified by tracing: back button, highlight, geo flag, alphabet letter (admin newsletter via letter()), text tones, hidden, bold

  4. Link emitter (templates/admin/fragments/link.html):
  5. 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):
  2. 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):
  2. Remove .sl-alert-title, .sl-alert-text, .sl-alert-close (+ hover) and .sl-alert-actions

  3. Buttons (templates/admin/assets/css/theme.css):
  4. 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/):
  2. Chip examples migrated to sl-chip [sl-chip-<tone>] plus semantic hooks
  3. Rate-sites example drops the hook: it carries site-card positioning (position: absolute + opacity) that breaks the demo row

  4. modul-search.html (demo/):
  5. JS result renderer emits canonical chip classes for date, category, comments, reads and author meta

  6. voting-block.html (demo/):
  7. 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/):
  2. 18 emoji-icon concepts (admin-*-2026, icon panels, command center); admin-pulse-2026 additionally hung the page load

  3. Legacy layout demos (admin-layout-demo, -2, admin-left-blocks-demo)
  4. 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):
  2. Buttons, chips, tips/popovers, alerts, forms, navigation, rating/voting, status glyphs, tone palette and a component-to-emitter summary table

  3. Chip section documents the post-consolidation contract: canonical sl-chip + tone classes with semantic names kept as JS/htmx hooks only

  4. 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

Refactor: geo-ip meta display context
Автор: Eduard Laas | Дата: 22:35 09.07.2026

Geoip::getIpHtml() feeds 20+ call sites: comment/forum/pm meta rows where the IP renders as a green pill, and plain admin/frontend lists. The pill look lived in scoped context CSS; the renderer now signals the meta context explicitly and the last scoped chip rules leave the lite theme.

Core changes:

  1. Renderer (core/classes/geoip.php):
  2. getIpHtml(string $ip, bool $meta = false) passes an is_geo_meta flag to the span fragment; default keeps every existing call site unchanged

  3. Meta call sites (core/system.php, core/user.php, modules/forum/index.php):
  4. Comments, private message view and forum posts pass meta = true
  5. Fragment (templates/lite/fragments/span.html):
  6. is_geo_meta adds sl-chip sl-chip-success ahead of the sl-geo-ip hook
  7. CSS (templates/lite/assets/css/theme.css):
  8. Drop the scoped .sl-cargs / .sl-fp-meta geo-ip pill rules
  9. Add .sl-chip.sl-geo-ip a { color: inherit } so the inner IP link keeps the chip tone (replaces the two scoped link rules)

Benefits:

  • The last context re-implementation of the chip recipe is gone
  • Display context is an explicit contract instead of CSS scoping

Technical notes:

  • Same accepted chip-metric shift as the date/edit chips: padding 8 -> 11px, gap 4 -> 6px; verified via computed-style probes (only those two diffs)

  • Chip path verified live as moderator on a commented page; plain path is parameter-default identical, admin theme fragment ignores the new flag

  • php -l clean on all touched PHP files
Refactor: changelog buttons on theme sl-but
Автор: Eduard Laas | Дата: 22:32 09.07.2026

The changelog module carried a private button system (sl-changelog-button primary/secondary) that duplicated the role of the theme-wide .sl-but pill. The filter and reset buttons now fall through to the default button class.

Core changes:

  1. Module (modules/changelog/index.php):
  2. Drop the is_changelog_primary / is_changelog_secondary flags from the filter and reset button fragments

  3. Emitter (templates/lite/fragments/button.html):
  4. Remove both changelog branches; the buttons take the sl-but default
  5. CSS (templates/lite/assets/css/theme.css):
  6. Delete the .sl-changelog-button* blocks
  7. Rescope the mobile flex rule to .sl-changelog-filter-actions .sl-but so the buttons keep their full-width wrap layout on narrow screens

Benefits:

  • One button component across the theme; changelog stops shipping its own
  • Filter card visuals now follow the theme automatically

Technical notes:

  • Intended visual change confined to the changelog filter card: flat blue buttons become the standard theme pills

  • Verified with desktop and 480px screenshots (layout intact) and php -l
  • Card/commit styling and --sl-changelog-* tokens untouched
Refactor: migrate chip aliases to canonical sl-chip tones
Автор: Eduard Laas | Дата: 22:29 09.07.2026

theme.css kept three ~15-line selector lists only to map ~30 semantic meta names (sl-date, sl-hits, sl-favor, ...) onto the shared chip recipe and its six tones. Emitters now output the canonical classes directly; the semantic names stay in the markup as hooks for JS/htmx and context rules.

Core changes:

  1. Emitters (templates/lite/fragments + partials):
  2. span.html, inline-badge.html, date-badge.html, card.html, link.html, comment-action-ajax.html, table-row.html, main-content-item.html, main-carousel-item.html, partials/view.html emit sl-chip plus the tone matching the current rendering

    • Non-link elements keep their alias tone (info/success/warn/danger)
    • Links emit plain sl-chip: the a.alias selector always beat the bare
tone list, so every link chip already rendered the success default
  • is_comments skips sl-chip when chip_tone is set to avoid a duplicate
class token (voting comments link passes both)
  1. CSS cleanup (templates/lite/assets/css/theme.css):
  2. Base, link-default and tone blocks keep only .sl-chip / a.sl-chip / .sl-chip-<tone> selectors; alias selectors removed

  3. Dead .sl-news-info selector dropped (no emitter anywhere)
  4. Hover block generalized to .sl-chip:has(> a):hover; favourite toggles keep their hook-based hover (spans are clickable via htmx)

  5. Context rules untouched: .sl-block-modules .sl-module and the site-card .sl-rate-sites positioning keep working via the retained hooks

Benefits:

  • Chip vocabulary defined once; new meta labels need no CSS edits
  • Markup declares its component explicitly instead of via a CSS alias map

Technical notes:

  • .sl-votes, .sl-coms and .sl-favor remain in the DOM as JS/AJAX hooks (voting live refresh in plugins/system/slaed.js, favourite toggle)

  • Verified: 132 computed-style probes of the post-migration markup are identical to the pre-migration rendering; live home/news/forum pixel diffs confined to dynamic counters; DOM hook classes asserted live

Refactor: forum meta chips on canonical sl-chip
Автор: Eduard Laas | Дата: 22:19 09.07.2026

The forum/comment meta rows re-implemented the chip recipe with scoped selectors (.sl-cargs > , .sl-fp-meta .sl-grey > ) instead of using the shared chip component. Date and edit badges now come out of the emitter as canonical info chips.

Core changes:

  1. Emitter (templates/lite/fragments/inline-badge.html):
  2. is_comment_date and is_topic_edit branches emit sl-chip sl-chip-info

    • sl-topic-post / sl-topic-edit stay in the markup as semantic hooks
    • All three producers (comments, forum posts, private messages) render
into the same meta rows, verified before the change
  1. Context CSS (templates/lite/assets/css/theme.css):
  2. Drop the scoped pill recipe and tint for date/edit badges
  3. Keep a full scoped pill rule for .sl-geo-ip until Geoip::getIpHtml() can signal the meta display context (follow-up package)

  4. Remove .sl-topic-post/.sl-topic-edit from the plain-glyph list; those entries were unreachable outside the chip contexts

  5. Add a compact rule so date/edit chip glyphs keep the 13px meta size

Benefits:

  • One chip recipe instead of a parallel scoped implementation
  • Emitters own the component classes; contexts stop restyling markup

Technical notes:

  • Accepted micro-shift on these chips only: padding 8px -> 11px and icon gap 4px -> 6px (canonical chip metrics); verified with computed-style probes and live forum topic / comment screenshots

  • Geo-ip pill verified pixel-identical via probes

Страница 17 из 118. Всего: 1173

1 12 13 14 15 16 17 18 19 20 21 118
Хотите опробовать SLAED CMS в действии?
Идеи и предложения
Обратная связь
Подтверждение

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

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