Admin half in the fluentcms-plugin template

Offen
#3,293 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Anfängerfreundlichkeit
35/100
Issue-Typ
Feature
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
csharp
Bereich
backend, testing

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
569
Forks
107
Ø Merge
2 Std. 49 Min.
Gemergte PRs (30 T.)
397

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.