feat(admin): Prüfroute je Profil und Reiter „Compatibility“
Die generische CheckRoute (POST lit-mcp/v1/<id>-check, für Divi weiter /divi-check) ersetzt DiviCheckRoute: Lock je Profil mit Besitzer-Token, Bericht je Profil, Rücksprung auf den neuen Reiter und Hook lit_mcp_compat_changed (Divi lädt darauf seinen Freigabe-Status neu). Der Reiter „Compatibility“ zeigt je Plugin Zustand (Wort und Icon), Hinweis zur Stufe, Fähigkeiten, getestete und freigegebene Versionen und den letzten Bericht, mit Prüfen, Freigeben und Zurückziehen (Recht manage_options, Allowlist der Profil-ID, Nonce je Profil). Freigeben serverseitig nur mit frischem grünem Bericht. Der Load-Hook lit_mcp_compat_profile_load bereitet den Abbau des DiviTab vor, der bis dahin parallel läuft. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
7d6a97a54e
commit
85f4138b36
@@ -29,6 +29,8 @@ final class Profile
|
||||
* whether the manifest step was clean.
|
||||
* @param (Closure(): ManifestCheck)|null $manifestCheck The check of this profile; null = its manifests
|
||||
* without signature checks.
|
||||
* @param (Closure(CheckStep): string)|null $stepLabel Label of a stored step that has none (reports from
|
||||
* before labels were stored); null = the step's own.
|
||||
* @param string $reportVersionKey Array key of the version in stored reports and
|
||||
* release rows (Divi: 'divi_version').
|
||||
* @throws LogicException For a ReleasePerVersion profile without matrix or a capability ID given twice.
|
||||
@@ -47,6 +49,7 @@ final class Profile
|
||||
public readonly ?Closure $stateKey = null,
|
||||
public readonly ?Closure $extraSteps = null,
|
||||
public readonly ?Closure $manifestCheck = null,
|
||||
public readonly ?Closure $stepLabel = null,
|
||||
public readonly string $reportVersionKey = 'version'
|
||||
) {
|
||||
if ($tier === Tier::ReleasePerVersion && $matrix === null) {
|
||||
|
||||
Reference in New Issue
Block a user