Theme checker: look for x-teme::between-items in a theme's skin folders, not only its root templates

Abierto
#686 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
Medio día
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
laravel, php, postgresql
Área
cli, tooling

Línea de trabajo

The warning comes from the teme:theme:check Artisan command, so start in its handler and find where it reads views/templates/* to test for x-teme::between-items. Make the scan follow @include and @extends into the skin folders, or cover every view in the theme, and add a case where the component appears only in an included skin file. Also make the database-failure path report the h1 rule as not checked rather than passed. Done when the reproduction no longer warns and the database-down run no longer prints "The theme passes" for that rule.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

area/themes type/bug when/later

php artisan teme:theme:check warns "Lists don't call x-teme::between-items, so plugins can't place content between items." It seems to look for the component only in the theme's root templates (views/templates/*). A theme that keeps one folder of pages per skin, and whose root templates are one-line includes of the active skin's page (so a later update can add skins), draws its lists in the skin's own files. Those lists do call the component, but the check warns anyway.

To reproduce:

  1. A theme whose views/templates/latest.blade.php is @include('theme::skins.'.($themeSettings['skin'] ?? 'fable').'.home').
  2. The skin's home.blade.php loops over the feed and calls <x-teme::between-items :after="$loop->iteration" :last="$loop->last" /> after each item.
  3. php artisan teme:theme:check <code> still warns. The warning goes away only when the component's name also appears in the root template, for example in a comment.

Expected: the check follows @include/@extends (or scans every view in the theme) before it warns. Or the manifest could say where a theme's lists are.

Also seen in the same run: when the site's database can't be read, the check prints "The pages were not checked for an h1" and still ends with "The theme passes". A line that says the h1 rule was not checked at all, rather than passed, would help.

Lenguaje dominante
PHP
Estrellas
1
Forks
1
Merge medio
1 h 40 min
PR fusionados (30 d)
143

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de temecms/teme

Todos los issues de temecms/teme

Issues similares

Más issues de PHP

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.