import { __ } from "@wordpress/i18n"; import React from "react"; import { I } from "../../analytics/components/common/icons"; import { CopyIcon, FauxBtn } from "./primitives"; /** * Inert mock of Pro's Content Intelligence Overview * (betterdocs-pro/react-src/admin/content-intelligence/views/CIOverviewView.js). * * Same three bands as the real screen, in the same order: the KPI strip that * answers "how is the knowledge base doing", the "this week's top action" hero * with the evidence behind it, and the module tiles that navigate. Numbers are * invented but plausible for a mid-size knowledge base — the point is that a * Free user recognises this screen the day they upgrade. */ // Per-module accent, copied from Pro so the same hue keys the same module in // both plugins (gaps green, stale amber, duplicates violet, health blue). const ACCENT = { gaps: "#00b884", stale: "#f59e0b", duplicates: "#8b5cf6", health: "#3b82f6" }; const GRADE_COLOR = "#16C098"; function Kpi( { label, color, icon: Icon, children, footer } ) { return (
{ label }
{ children }
{ footer &&
{ footer }
}
); } function Tile( { id, icon: Icon, value, unit, title, blurb } ) { const color = ACCENT[ id ]; return (
{ value } { unit } { title } { blurb } { __( "View", "betterdocs" ) }
); } // The evidence block under the hero: which reader signals point at the topic. const SIGNALS = [ { n: "86", label: __( "zero-result searches", "betterdocs" ) }, { n: "27", label: __( "high-bounce exits", "betterdocs" ) }, { n: "15", label: __( "feedback mentions", "betterdocs" ) } ]; export default function CIOverviewMock() { return (
{ __( "3 new this week", "betterdocs" ) } }>
14
{ __( "5 critical", "betterdocs" ) } }>
26
{ __( "+4 pts", "betterdocs" ) } { __( "site-wide", "betterdocs" ) } }>
78 B
}>
31 68% { __( "accepted", "betterdocs" ) }
{ __( "This week's top action", "betterdocs" ) } { __( "High confidence", "betterdocs" ) }

{ __( "Write the missing", "betterdocs" ) } SSO login errors { __( "guide", "betterdocs" ) }

{ __( "128 reader signals point to this missing topic. It's your highest-demand gap, and no doc covers it yet.", "betterdocs" ) }

{ __( "Review this gap", "betterdocs" ) } { __( "See all gaps", "betterdocs" ) }
{ SIGNALS.map( ( s, i ) => (
{ s.n }
{ s.label }
) ) }

{ __( "Intelligence modules", "betterdocs" ) }

); }