peptide-geo-monitor v0.1.0: internal AI-visibility dashboard (#1)
New internal plugin: weekly LLM probes of core peptides (Perplexity sonar + GPT/Gemini-search via OpenRouter/CF gateway) -> custom table -> wp-admin trendline + standings. Provider interface + cost ledger w/ hard $5/mo cap + collector/panel seam (AI-visibility only). v1 = AI-visibility only. QA: APPROVE-WITH-P2-NOTES — qa-reviews/peptide-geo-monitor/2026-06-13-f488f4a966cbb9e771d3abc20daee3fa49074520.md (P2 follow-ups: ltrim www display bug, PHPCS mandatory, dead cache) Agent-Session: geomonitor v0.1.0 merge
This commit is contained in:
38
includes/panel/interface-pgm-dashboard-panel.php
Normal file
38
includes/panel/interface-pgm-dashboard-panel.php
Normal file
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
/**
|
||||
* Seam: contract for all GEO-monitor dashboard panels.
|
||||
*
|
||||
* Each panel renders one data category within the GEO Monitor admin page.
|
||||
* v1 ships only PGM_Ai_Visibility_Panel. Future panels (keyword rankings,
|
||||
* schema coverage…) implement this and register with PGM_Collector_Registry.
|
||||
*
|
||||
* Who triggers: PGM_Admin_Page when building the GEO Monitor page.
|
||||
* Dependencies: None — pure interface.
|
||||
*
|
||||
* @see class-pgm-ai-visibility-panel.php — v1 implementation.
|
||||
* @see class-pgm-collector-registry.php — Registration hub.
|
||||
* @see ARCHITECTURE.md — §Collector/Panel seam.
|
||||
* @package PeptideGeoMonitor
|
||||
*/
|
||||
interface PGM_Dashboard_Panel {
|
||||
|
||||
/**
|
||||
* Render the panel HTML into the current output buffer.
|
||||
*
|
||||
* Implementors MUST escape all output and MUST NOT echo raw DB values.
|
||||
*
|
||||
* @param array<string, mixed> $data Payload returned by the matching collector.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function render( array $data ): void;
|
||||
|
||||
/**
|
||||
* Short human-readable title for the panel tab / section heading.
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_title(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user