Admin half in the fluentcms-plugin template

オープン
#3,293 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
csharp
領域
backend, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
C#
スター
569
フォーク
107
平均マージ
2時間 49分
マージ済み PR(30日)
397

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

fluentcms/FluentCMS のほかの issue

fluentcms/FluentCMS の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。