Admin half in the fluentcms-plugin template

Aperta
#3,293 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp
Ambito
backend, testing

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
569
Fork
107
Merge medio
2h 49m
PR unite (30g)
397

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.