Admin half in the fluentcms-plugin template

Abierto
#3,293 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend, testing

Línea de trabajo

Read docs/planning/admin-technical-spec.md sections 5.1, 6.2 and 10.4, then inspect templates/fluentcms-plugin and test-templates.sh. Confirm A-18 is available before implementing the manifest test; A-19 and A-22 are needed for the disabled-plugin acceptance check. Done means the generated template builds and tests with and without the admin half, its manifest test detects a removed contribution, and the referenced half uses only the two named FluentCMS packages.

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

Descripción

area:admin type:feature

Problem

Row 8.17 asks that the plugin template gives a working plugin. dotnet new fluentcms-plugin writes the server half only, so an author of a plugin has no example of an admin half, its manifest or its test.

Proposal

  • templates/fluentcms-plugin gains {name}.Admin, a Razor Class Library that references FluentCMS.Admin.Abstractions and FluentCMS.Admin.Components only: a page with its menu item, a settings page for the plugin's area, a dashboard widget, its resources, and fluentcms-admin.json.
  • A test project with the manifest test of A-18 and one component test of the page.
  • An option of the template leaves the admin half out, for a plugin without one.
  • test-templates.sh builds and tests the output with and without the half.
  • The template's README says how an app references the half, since the first-party app holds the first-party halves only (6.3).

Acceptance

  • dotnet new fluentcms-plugin builds and its tests pass, with the admin half and without it
  • The half's manifest test passes as generated, and fails when a contribution is removed from the file
  • An app that references the generated half shows its page, menu item, settings page and widget, and none of them in a site where the plugin is disabled (checked once A-19 and A-22 are merged, in the template's test or the end-to-end shard)
  • The half references no FluentCMS package beside the two named

Design: docs/planning/admin-technical-spec.md, sections 5.1, 6.2 and 10.4 (A-23). Row 8.17. Needs A-18; the last acceptance row needs A-19 and A-22. Size: S.

Lenguaje dominante
C#
Estrellas
569
Forks
107
Merge medio
2 h 49 min
PR fusionados (30 d)
397

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 fluentcms/FluentCMS

Todos los issues de fluentcms/FluentCMS

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.