Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions next-app/app/docs/exec-overlay/board-pack/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
export const metadata = { title: 'Board Pack - Commissioning Overlay' } as const;

// Reusable components
/**
* Renders a metric dial component displaying the change percentage from baseline to target.
*/
function MetricDial({label, baseline, target, unit, color}: {label:string; baseline:number; target:number; unit:string; color:string}) {
const pct = Math.round(((target - baseline) / baseline) * 100);
const isPositive = pct > 0;
Expand Down Expand Up @@ -28,6 +31,19 @@
);
}

/**
* Renders a LoadCell component with dynamic styling based on load and trend.
*
* The function determines background, text, and trend colors based on the
* provided load and trend values. It returns a styled div containing the
* function name and trend indicator, ensuring visual representation aligns
* with the specified load and trend states.
*
* @param {Object} params - The parameters for the LoadCell component.
* @param {string} params.fn - The function name to display.
* @param {'low'|'medium'|'high'} params.load - The load level affecting colors.
* @param {'↗'|'→'|'↘'} params.trend - The trend indicator affecting colors.
*/
function LoadCell({fn, load, trend}: {fn:string; load:'low'|'medium'|'high'; trend:'↗'|'→'|'↘'}) {
const bgColor = load === 'low' ? '#d1fae5' : load === 'medium' ? '#fef3c7' : '#fee2e2';
const textColor = load === 'low' ? '#065f46' : load === 'medium' ? '#92400e' : '#991b1b';
Expand All @@ -40,6 +56,16 @@
);
}

/**
* Render the Board Pack component for the Executive Readiness View.
*
* This component structures the layout into a main section containing various subsections, including a Capability Snapshot,
* Organizational Load Heatmap, Milestone Timeline, Strategic Value Metrics, and an Activation Kit Schematic. Each subsection
* presents critical information regarding organizational capabilities, resource allocation, and strategic goals,
* facilitating decision-making for the board.
*
* @returns A JSX element representing the Board Pack layout.
*/
export default function BoardPack() {
return (
<main className="min-h-screen bg-slate-50 p-6">
Expand Down Expand Up @@ -326,8 +352,8 @@
</div>

<div className="rounded-lg bg-blue-50 p-3 text-xs text-blue-800">
<span className="font-semibold">Commissioning Overlay Outcome:</span> This single high-impact view shows what's launching,

Check warning on line 355 in next-app/app/docs/exec-overlay/board-pack/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
who owns it, when decisions land, and why it matters—enabling the board to see readiness, momentum, and required actions instantly.

Check warning on line 356 in next-app/app/docs/exec-overlay/board-pack/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
</div>
</div>
</div>
Expand Down
3 changes: 3 additions & 0 deletions next-app/app/docs/exec-overlay/executive-summary/page.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
export const metadata = { title: 'Executive Summary - Governance Commissioning' } as const;

/**

Check notice on line 3 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codacy Production / Codacy Static Code Analysis

next-app/app/docs/exec-overlay/executive-summary/page.tsx#L3

Missing JSDoc @returns declaration.
* Renders the Executive Summary component for the Responsible AI Governance Commissioning Overlay.
*/
export default function ExecutiveSummary() {
return (
<main className="mx-auto max-w-4xl space-y-6 p-6">
Expand All @@ -16,8 +19,8 @@
<span className="text-2xl">📊</span> Status
</h2>
<p className="text-sm leading-relaxed text-slate-700">
Governance framework successfully transformed from theory to practice. Commissioning overlay

Check warning on line 22 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

no-trailing-whitespace

trailing whitespace
completed and executive-ready. Three pilot initiatives underway with measurable outcomes and

Check warning on line 23 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

no-trailing-whitespace

trailing whitespace
senior leadership ownership.
</p>
</section>
Expand All @@ -30,11 +33,11 @@
<ul className="space-y-2 text-sm text-slate-700">
<li className="flex items-start gap-2">
<span className="mt-1 text-green-600">✓</span>
<span>Governance positioned as <span className="font-semibold italic">enterprise capability</span>, not compliance burden.</span>

Check warning on line 36 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
</li>
<li className="flex items-start gap-2">
<span className="mt-1 text-green-600">✓</span>
<span>Direct alignment to strategic themes: <span className="font-semibold">Trust, Efficiency, Confidence</span>.</span>

Check warning on line 40 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
</li>
<li className="flex items-start gap-2">
<span className="mt-1 text-green-600">✓</span>
Expand Down Expand Up @@ -106,7 +109,7 @@
</span>
<div>
<span className="font-semibold text-slate-800">Risk & Compliance</span>
<span className="text-slate-600"> — stretched but improving (automation and process optimization underway).</span>

Check warning on line 112 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
</div>
</div>
<div className="flex items-start gap-2 text-sm">
Expand All @@ -116,7 +119,7 @@
<div>
<span className="font-semibold text-slate-800">Legal & Regulatory</span>
<span className="text-slate-600"> — deteriorating capacity; </span>
<span className="font-semibold text-red-700">potential bottleneck requiring Q2 executive intervention</span>.

Check warning on line 122 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

max-line-length

Exceeds maximum line length of 120
</div>
</div>
</div>
Expand Down Expand Up @@ -195,8 +198,8 @@
<span className="text-2xl">🎯</span> Strategic Implication
</h2>
<p className="text-sm leading-relaxed text-slate-700">
Governance now positioned as <span className="font-semibold">enterprise capability</span>.

Check warning on line 201 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

no-trailing-whitespace

trailing whitespace
Sustaining requires continued executive sponsorship and Q2 endorsement to maintain momentum

Check warning on line 202 in next-app/app/docs/exec-overlay/executive-summary/page.tsx

View check run for this annotation

Codeac.io / Codeac Code Quality

no-trailing-whitespace

trailing whitespace
and secure competitive advantage.
</p>
</section>
Expand Down
Loading