tenhaw 0.0.0-bootstrap
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSE-CONTENT +15 -0
- package/README.md +52 -0
- package/dist/chunk-BKPOQVTM.js +74 -0
- package/dist/chunk-ZIEK7SCN.js +73 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +319 -0
- package/dist/scaffold.d.ts +14 -0
- package/dist/scaffold.js +8 -0
- package/instructions/ai-readiness-assessment/AGENTS.md +9 -0
- package/instructions/ai-roi-business-case/AGENTS.md +9 -0
- package/instructions/ai-usecase-register/AGENTS.md +9 -0
- package/instructions/build-ai-adoption-dashboard/AGENTS.md +9 -0
- package/instructions/delivery-metrics-dora/AGENTS.md +9 -0
- package/instructions/portfolio-tracking/AGENTS.md +9 -0
- package/instructions/product-operating-model/AGENTS.md +9 -0
- package/package.json +58 -0
- package/templates/ai-adoption-dashboard/AGENTS.md +22 -0
- package/templates/ai-adoption-dashboard/CLAUDE.md +22 -0
- package/templates/ai-adoption-dashboard/LICENSE +21 -0
- package/templates/ai-adoption-dashboard/LICENSE-CONTENT +15 -0
- package/templates/ai-adoption-dashboard/README.md +56 -0
- package/templates/ai-adoption-dashboard/app/globals.css +2 -0
- package/templates/ai-adoption-dashboard/app/layout.tsx +4 -0
- package/templates/ai-adoption-dashboard/app/page.tsx +14 -0
- package/templates/ai-adoption-dashboard/e2e/app.spec.ts +27 -0
- package/templates/ai-adoption-dashboard/lib/io.ts +42 -0
- package/templates/ai-adoption-dashboard/lib/model.test.ts +4 -0
- package/templates/ai-adoption-dashboard/lib/model.ts +9 -0
- package/templates/ai-adoption-dashboard/lib/workspace.tsx +49 -0
- package/templates/ai-adoption-dashboard/next-env.d.ts +7 -0
- package/templates/ai-adoption-dashboard/next.config.mjs +2 -0
- package/templates/ai-adoption-dashboard/package.json +31 -0
- package/templates/ai-adoption-dashboard/playwright.config.ts +2 -0
- package/templates/ai-adoption-dashboard/public/example.csv +5 -0
- package/templates/ai-adoption-dashboard/public/example.json +34 -0
- package/templates/ai-adoption-dashboard/public/llms.txt +6 -0
- package/templates/ai-adoption-dashboard/tsconfig.json +36 -0
- package/templates/ai-adoption-dashboard/vitest.config.ts +2 -0
- package/templates/ai-readiness-assessment/AGENTS.md +22 -0
- package/templates/ai-readiness-assessment/CLAUDE.md +22 -0
- package/templates/ai-readiness-assessment/LICENSE +21 -0
- package/templates/ai-readiness-assessment/LICENSE-CONTENT +15 -0
- package/templates/ai-readiness-assessment/README.md +56 -0
- package/templates/ai-readiness-assessment/app/globals.css +2 -0
- package/templates/ai-readiness-assessment/app/layout.tsx +4 -0
- package/templates/ai-readiness-assessment/app/page.tsx +11 -0
- package/templates/ai-readiness-assessment/e2e/app.spec.ts +27 -0
- package/templates/ai-readiness-assessment/lib/io.ts +42 -0
- package/templates/ai-readiness-assessment/lib/model.test.ts +5 -0
- package/templates/ai-readiness-assessment/lib/model.ts +5 -0
- package/templates/ai-readiness-assessment/lib/workspace.tsx +49 -0
- package/templates/ai-readiness-assessment/next-env.d.ts +7 -0
- package/templates/ai-readiness-assessment/next.config.mjs +2 -0
- package/templates/ai-readiness-assessment/package.json +32 -0
- package/templates/ai-readiness-assessment/playwright.config.ts +2 -0
- package/templates/ai-readiness-assessment/public/example.json +154 -0
- package/templates/ai-readiness-assessment/public/llms.txt +6 -0
- package/templates/ai-readiness-assessment/tsconfig.json +36 -0
- package/templates/ai-readiness-assessment/vitest.config.ts +2 -0
- package/templates/ai-usecase-register/AGENTS.md +22 -0
- package/templates/ai-usecase-register/CLAUDE.md +22 -0
- package/templates/ai-usecase-register/LICENSE +21 -0
- package/templates/ai-usecase-register/LICENSE-CONTENT +15 -0
- package/templates/ai-usecase-register/README.md +56 -0
- package/templates/ai-usecase-register/app/globals.css +2 -0
- package/templates/ai-usecase-register/app/layout.tsx +4 -0
- package/templates/ai-usecase-register/app/page.tsx +16 -0
- package/templates/ai-usecase-register/e2e/app.spec.ts +27 -0
- package/templates/ai-usecase-register/lib/io.ts +42 -0
- package/templates/ai-usecase-register/lib/model.test.ts +7 -0
- package/templates/ai-usecase-register/lib/model.ts +9 -0
- package/templates/ai-usecase-register/lib/workspace.tsx +49 -0
- package/templates/ai-usecase-register/next-env.d.ts +7 -0
- package/templates/ai-usecase-register/next.config.mjs +2 -0
- package/templates/ai-usecase-register/package.json +33 -0
- package/templates/ai-usecase-register/playwright.config.ts +2 -0
- package/templates/ai-usecase-register/public/example.json +41 -0
- package/templates/ai-usecase-register/public/llms.txt +6 -0
- package/templates/ai-usecase-register/tsconfig.json +36 -0
- package/templates/ai-usecase-register/vitest.config.ts +2 -0
- package/templates/delivery-metrics-dashboard/AGENTS.md +22 -0
- package/templates/delivery-metrics-dashboard/CLAUDE.md +22 -0
- package/templates/delivery-metrics-dashboard/LICENSE +21 -0
- package/templates/delivery-metrics-dashboard/LICENSE-CONTENT +15 -0
- package/templates/delivery-metrics-dashboard/README.md +56 -0
- package/templates/delivery-metrics-dashboard/app/globals.css +2 -0
- package/templates/delivery-metrics-dashboard/app/layout.tsx +4 -0
- package/templates/delivery-metrics-dashboard/app/page.tsx +13 -0
- package/templates/delivery-metrics-dashboard/e2e/app.spec.ts +27 -0
- package/templates/delivery-metrics-dashboard/lib/io.ts +42 -0
- package/templates/delivery-metrics-dashboard/lib/model.test.ts +5 -0
- package/templates/delivery-metrics-dashboard/lib/model.ts +19 -0
- package/templates/delivery-metrics-dashboard/lib/workspace.tsx +49 -0
- package/templates/delivery-metrics-dashboard/next-env.d.ts +7 -0
- package/templates/delivery-metrics-dashboard/next.config.mjs +2 -0
- package/templates/delivery-metrics-dashboard/package.json +32 -0
- package/templates/delivery-metrics-dashboard/playwright.config.ts +2 -0
- package/templates/delivery-metrics-dashboard/public/example.json +98 -0
- package/templates/delivery-metrics-dashboard/public/llms.txt +6 -0
- package/templates/delivery-metrics-dashboard/tsconfig.json +36 -0
- package/templates/delivery-metrics-dashboard/vitest.config.ts +2 -0
- package/templates/product-operating-model/AGENTS.md +22 -0
- package/templates/product-operating-model/CLAUDE.md +22 -0
- package/templates/product-operating-model/LICENSE +21 -0
- package/templates/product-operating-model/LICENSE-CONTENT +15 -0
- package/templates/product-operating-model/README.md +56 -0
- package/templates/product-operating-model/app/globals.css +2 -0
- package/templates/product-operating-model/app/layout.tsx +4 -0
- package/templates/product-operating-model/app/page.tsx +11 -0
- package/templates/product-operating-model/e2e/app.spec.ts +27 -0
- package/templates/product-operating-model/lib/io.ts +42 -0
- package/templates/product-operating-model/lib/model.test.ts +6 -0
- package/templates/product-operating-model/lib/model.ts +4 -0
- package/templates/product-operating-model/lib/workspace.tsx +49 -0
- package/templates/product-operating-model/next-env.d.ts +7 -0
- package/templates/product-operating-model/next.config.mjs +2 -0
- package/templates/product-operating-model/package.json +32 -0
- package/templates/product-operating-model/playwright.config.ts +2 -0
- package/templates/product-operating-model/public/example.json +119 -0
- package/templates/product-operating-model/public/llms.txt +6 -0
- package/templates/product-operating-model/tsconfig.json +36 -0
- package/templates/product-operating-model/vitest.config.ts +2 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export function record(value: unknown, path = "input"): Record<string, unknown> {
|
|
2
|
+
if (!value || typeof value !== "object" || Array.isArray(value)) throw new Error(`${path}: expected an object.`);
|
|
3
|
+
return value as Record<string, unknown>;
|
|
4
|
+
}
|
|
5
|
+
export function text(value: unknown, path: string): string {
|
|
6
|
+
if (typeof value !== "string" || !value.trim() || value.length > 2000) throw new Error(`${path}: use text between 1 and 2,000 characters.`);
|
|
7
|
+
return value.trim();
|
|
8
|
+
}
|
|
9
|
+
export function finite(value: unknown, path: string, min = 0, max = 1_000_000_000): number {
|
|
10
|
+
if (value === "" || value === null || value === undefined) throw new Error(`${path}: a number is required.`);
|
|
11
|
+
const result = typeof value === "number" ? value : typeof value === "string" ? Number(value) : NaN;
|
|
12
|
+
if (!Number.isFinite(result) || result < min || result > max) throw new Error(`${path}: use a number between ${min} and ${max}.`);
|
|
13
|
+
return result;
|
|
14
|
+
}
|
|
15
|
+
export function list(value: unknown, path: string): unknown[] {
|
|
16
|
+
if (!Array.isArray(value) || value.length > 10000) throw new Error(`${path}: expected an array of at most 10,000 records.`);
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** RFC 4180-style parsing; quoted commas, double quotes and embedded newlines supported. */
|
|
21
|
+
export function parseCsv(source: string): Record<string,string>[] {
|
|
22
|
+
const rows:string[][]=[]; let row:string[]=[], field="",quoted=false,closed=false;
|
|
23
|
+
const input=source.replace(/^\uFEFF/,"");
|
|
24
|
+
for(let i=0;i<input.length;i++) {const char=input[i];
|
|
25
|
+
if(quoted) {if(char==='"'&&input[i+1]==='"'){field+='"';i++;}else if(char==='"'){quoted=false;closed=true;}else field+=char;}
|
|
26
|
+
else if(char==='"'){if(field || closed) throw new Error("CSV: unexpected quote.");quoted=true;}
|
|
27
|
+
else if(char===","){row.push(field);field="";closed=false;}
|
|
28
|
+
else if(char==="\n"||char==="\r"){if(char==="\r"&&input[i+1]==="\n")i++;row.push(field);if(row.some(Boolean))rows.push(row);row=[];field="";closed=false;}
|
|
29
|
+
else {if(closed)throw new Error("CSV: unexpected text after a closing quote.");field+=char;}
|
|
30
|
+
}
|
|
31
|
+
if(quoted)throw new Error("CSV: an opening quote is not closed.");
|
|
32
|
+
row.push(field);if(row.some(Boolean))rows.push(row);
|
|
33
|
+
const headers=rows.shift()?.map(header=>header.trim());
|
|
34
|
+
if(!headers?.length || headers.some(header=>!header) || new Set(headers).size!==headers.length)throw new Error("CSV: use unique, non-empty column headers.");
|
|
35
|
+
if(rows.length>10000)throw new Error("CSV: at most 10,000 rows are supported.");
|
|
36
|
+
return rows.map((cells,i)=>{if(cells.length!==headers.length)throw new Error(`CSV row ${i+2}: expected ${headers.length} columns.`);return Object.fromEntries(headers.map((header,j)=>[header,cells[j]]));});
|
|
37
|
+
}
|
|
38
|
+
export function toCsv(rows: Record<string,unknown>[], headers?:string[]): string {
|
|
39
|
+
const columns=headers??Object.keys(rows[0]??{});
|
|
40
|
+
const escape=(value:unknown)=>{let content=value===null||value===undefined?"":String(value);if(/^[\t\r\n ]*[=+@-]/.test(content)&&typeof value!=="number")content="'"+content;return '"'+content.replaceAll('"','""')+'"';};
|
|
41
|
+
return [columns.map(escape).join(","),...rows.map(row=>columns.map(key=>escape(row[key])).join(","))].join("\r\n");
|
|
42
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { it,expect } from "vitest";
|
|
2
|
+
import { generateOperatingModel } from "@tenhaw/opmodel";
|
|
3
|
+
import { example,validateModel,progress } from "./model";
|
|
4
|
+
it("detects missing outcomes and oversized-team review prompts",()=>{const report=generateOperatingModel(example);expect(report.checks.some(check=>check.code==="roadmap-outcome")).toBe(true);expect(report.checks.some(check=>check.code==="team-size")).toBe(true);});
|
|
5
|
+
it("supports decreasing key-result targets",()=>{expect(progress(24,12,18)).toBe(50);});
|
|
6
|
+
it("rejects links to unknown teams before replacing the workspace",()=>{expect(()=>validateModel({...example,interactions:[{from:"platform",to:"unknown",mode:"facilitating"}]})).toThrow();});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { generateOperatingModel, type OperatingModelInput } from "@tenhaw/opmodel";
|
|
2
|
+
export const example:OperatingModelInput={teams:[{id:"team-a",name:"Example Team A",type:"stream-aligned",size:7,cognitiveLoad:"medium",platformDependencies:["platform"]},{id:"team-b",name:"Example Team B",type:"stream-aligned",size:10,cognitiveLoad:"high",platformDependencies:["platform"]},{id:"platform",name:"Example Platform",type:"platform",size:6,cognitiveLoad:"medium"},{id:"enablement",name:"Example Enablement",type:"enabling",size:3,cognitiveLoad:"low"}],okrs:[{id:"okr-1",objective:"Reduce waiting time in the support workflow",teamId:"team-a",keyResults:[{id:"kr-1",description:"Reduce median resolution time (hours)",baseline:24,target:12,current:18,confidence:.7},{id:"kr-2",description:"Increase first-contact resolution (%)",baseline:60,target:80,current:68,confidence:.6}]},{id:"okr-2",objective:"Make platform onboarding self-service",teamId:"platform",keyResults:[{id:"kr-3",description:"Reduce onboarding time (days)",baseline:10,target:2,current:6,confidence:.8}]}],roadmap:[{id:"r1",title:"Test the support search workflow",horizon:"now",teamId:"team-a",okrId:"okr-1",outcome:"Resolve routine queries without handoffs"},{id:"r2",title:"Self-service service catalogue",horizon:"next",teamId:"platform",okrId:"okr-2",outcome:"New teams can start without a manual ticket"},{id:"r3",title:"Explore knowledge quality feedback",horizon:"later",teamId:"team-a"}],interactions:[{from:"platform",to:"team-a",mode:"X-as-a-Service"},{from:"platform",to:"team-b",mode:"X-as-a-Service"},{from:"enablement",to:"team-a",mode:"facilitating"}]};
|
|
3
|
+
export function validateModel(value:unknown):OperatingModelInput{generateOperatingModel(value as OperatingModelInput);return value as OperatingModelInput;}
|
|
4
|
+
export function progress(baseline:number,target:number,current:number){return (current-baseline)/(target-baseline)*100;}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState, type ReactNode } from "react";
|
|
4
|
+
import { buildUtmUrl } from "@tenhaw/core";
|
|
5
|
+
|
|
6
|
+
export function useWorkspace<T>(key: string, sample: T, validate: (value: unknown) => T) {
|
|
7
|
+
const [data, setData] = useState<T>(sample);
|
|
8
|
+
const [notice, setNotice] = useState("Synthetic examples. Import your own file to begin.");
|
|
9
|
+
const [ready, setReady] = useState(false);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
try {
|
|
12
|
+
const saved = localStorage.getItem(key);
|
|
13
|
+
if (saved) { setData(validate(JSON.parse(saved))); setNotice("Restored from this browser."); }
|
|
14
|
+
} catch { setNotice("Saved data could not be read. Synthetic examples loaded."); }
|
|
15
|
+
setReady(true);
|
|
16
|
+
}, [key, validate]);
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
if (!ready) return;
|
|
19
|
+
try { localStorage.setItem(key, JSON.stringify(data)); }
|
|
20
|
+
catch { setNotice("Browser storage is unavailable or full. Export a JSON copy to keep your work."); }
|
|
21
|
+
}, [data, key, ready]);
|
|
22
|
+
function reset() { setData(sample); setNotice("Synthetic examples restored."); }
|
|
23
|
+
function clear() { localStorage.removeItem(key); setNotice("Saved copy removed. Export anything you need before closing this tab."); }
|
|
24
|
+
return { data, setData, notice, setNotice, reset, clear, ready };
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function download(name: string, data: unknown, type = "application/json") {
|
|
28
|
+
const body = typeof data === "string" ? data : JSON.stringify(data, null, 2);
|
|
29
|
+
const url = URL.createObjectURL(new Blob([body], { type }));
|
|
30
|
+
const anchor = document.createElement("a"); anchor.href = url; anchor.download = name; anchor.click();
|
|
31
|
+
setTimeout(() => URL.revokeObjectURL(url), 1000);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export function Workspace({ title, description, section, setSection, sections, children, actions, notice, ready }: {
|
|
35
|
+
title: string; description: string; section: string; setSection: (section: string) => void;
|
|
36
|
+
sections: string[]; children: ReactNode; actions?: ReactNode; notice: string; ready: boolean;
|
|
37
|
+
}) {
|
|
38
|
+
return <div className="workspace" data-state={ready ? "ready" : "loading"} aria-busy={!ready}><a className="skip" href="#workspace-main">Skip to workspace</a><aside className="sidebar"><div className="brand"><span className="mark" aria-hidden="true">t.</span><span>tenhaw<span className="muted"> / kit</span></span></div><span className="eyebrow">INTERNAL WORKSPACE</span><nav aria-label="Workspace views">{sections.map(item => <button disabled={!ready} key={item} type="button" aria-current={item === section ? "page" : undefined} className={item === section ? "nav active" : "nav"} onClick={() => setSection(item)}>{item}</button>)}</nav><div className="sidebar-note"><span className="dot" /> Local workspace<p>Data stays in this browser.</p><small>No account, shared database or usage tracking.</small></div></aside><main id="workspace-main"><header><div><p className="eyebrow">TENHAW KIT / {section.toUpperCase()}</p><h1>{title}</h1><p className="lede">{description}</p></div></header><div className="toolbar">{actions}</div><p className="notice" role="status">{notice}</p>{children}<footer>{process.env.NEXT_PUBLIC_TENHAW_ATTRIBUTION !== "false" && <span>Built with Tenhaw Kit. <a href={buildUtmUrl({source:"template",medium:"footer",content:title.toLowerCase().replaceAll(" ","-")})}>Get help applying this</a></span>}<span>Imported records stay on this device. Export before clearing browser storage.</span></footer></main></div>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function FileActions<T>({data, name, onImport, onError, reset, csv, ready}: {ready:boolean;data:T;name:string;onImport:(text:string,extension:string)=>void;onError:(message:string)=>void;reset:()=>void;csv?:string}) {
|
|
42
|
+
return <><label className="button primary">Import {csv !== undefined ? "CSV / JSON" : "JSON"}<input disabled={!ready} type="file" accept={csv !== undefined ? ".json,.csv" : ".json"} onChange={async event => { const file = event.target.files?.[0]; event.target.value=""; if (!file) return; if (file.size > 2_000_000) {onError("Choose a file under 2 MB."); return;} try {onImport(await file.text(), file.name.toLowerCase().endsWith(".csv") ? "csv" : "json");} catch(error) {onError(error instanceof Error ? error.message : "Could not import this file.");} }} /></label><button disabled={!ready} type="button" onClick={()=>download(name+".json",data)}>Export JSON</button>{csv !== undefined && <button disabled={!ready} type="button" onClick={()=>download(name+".csv",csv,"text/csv;charset=utf-8")}>Export CSV</button>}<button disabled={!ready} type="button" className="subtle" onClick={reset}>Reset to example</button></>;
|
|
43
|
+
}
|
|
44
|
+
export function Stats({items}:{items:{label:string;value:ReactNode;note?:string}[]}) { return <div className="stats">{items.map(item=><article key={item.label} className="stat"><span>{item.label}</span><strong>{item.value}</strong>{item.note && <small>{item.note}</small>}</article>)}</div>; }
|
|
45
|
+
export function Panel({title,children,aside}:{title:string;children:ReactNode;aside?:string}) { return <section className="panel"><div className="panel-heading"><h2>{title}</h2>{aside && <small>{aside}</small>}</div>{children}</section>; }
|
|
46
|
+
export function Bar({label,value,max=100,detail}:{label:string;value:number;max?:number;detail?:string}) {return <div className="bar-row"><div><span>{label}</span><strong>{detail ?? `${Math.round(value)}%`}</strong></div><div className="track"><span style={{width:`${Math.min(100,Math.max(0,max > 0 ? value/max*100 : 0))}%`}} /></div></div>;}
|
|
47
|
+
export function Table({headers,rows}:{headers:string[];rows:ReactNode[][]}) {return <div className="table-scroll"><table><thead><tr>{headers.map(header=><th key={header} scope="col">{header}</th>)}</tr></thead><tbody>{rows.map((row,i)=><tr key={i}>{row.map((cell,j)=><td key={j}>{cell}</td>)}</tr>)}</tbody></table>{rows.length===0&&<p className="empty">No records yet.</p>}</div>;}
|
|
48
|
+
export function JsonReport({value}:{value:unknown}) {return <details><summary>Inspect calculation output</summary><pre>{JSON.stringify(value,null,2)}</pre></details>;}
|
|
49
|
+
export const number = (value:number|null, digits=1) => value === null ? "Insufficient data" : value.toLocaleString("en-GB",{maximumFractionDigits:digits});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="next" />
|
|
2
|
+
/// <reference types="next/image-types/global" />
|
|
3
|
+
import "./.next/types/routes.d.ts";
|
|
4
|
+
import "./.next/types/root-params.d.ts";
|
|
5
|
+
|
|
6
|
+
// NOTE: This file should not be edited
|
|
7
|
+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@tenhaw-template/product-operating-model",
|
|
3
|
+
"version": "0.0.0-bootstrap",
|
|
4
|
+
"private": true,
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "next dev",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"typecheck": "tsc --noEmit",
|
|
10
|
+
"test": "vitest run",
|
|
11
|
+
"e2e": "playwright test"
|
|
12
|
+
},
|
|
13
|
+
"dependencies": {
|
|
14
|
+
"next": "16.4.5",
|
|
15
|
+
"react": "19.2.4",
|
|
16
|
+
"react-dom": "19.2.4",
|
|
17
|
+
"@tenhaw/core": "0.0.0-bootstrap",
|
|
18
|
+
"@tenhaw/opmodel": "0.0.0-bootstrap"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@types/node": "^22.0.0",
|
|
22
|
+
"@types/react": "^19.0.0",
|
|
23
|
+
"@types/react-dom": "^19.0.0",
|
|
24
|
+
"typescript": "^5.9.0",
|
|
25
|
+
"vitest": "^3.2.0",
|
|
26
|
+
"@playwright/test": "^1.56.0"
|
|
27
|
+
},
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"author": "Tenhaw (https://tenhaw.com)",
|
|
30
|
+
"homepage": "https://kit.tenhaw.com/templates/product-operating-model/",
|
|
31
|
+
"type": "module"
|
|
32
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
{
|
|
2
|
+
"teams": [
|
|
3
|
+
{
|
|
4
|
+
"id": "team-a",
|
|
5
|
+
"name": "Example Team A",
|
|
6
|
+
"type": "stream-aligned",
|
|
7
|
+
"size": 7,
|
|
8
|
+
"cognitiveLoad": "medium",
|
|
9
|
+
"platformDependencies": [
|
|
10
|
+
"platform"
|
|
11
|
+
]
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"id": "team-b",
|
|
15
|
+
"name": "Example Team B",
|
|
16
|
+
"type": "stream-aligned",
|
|
17
|
+
"size": 10,
|
|
18
|
+
"cognitiveLoad": "high",
|
|
19
|
+
"platformDependencies": [
|
|
20
|
+
"platform"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"id": "platform",
|
|
25
|
+
"name": "Example Platform",
|
|
26
|
+
"type": "platform",
|
|
27
|
+
"size": 6,
|
|
28
|
+
"cognitiveLoad": "medium"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"id": "enablement",
|
|
32
|
+
"name": "Example Enablement",
|
|
33
|
+
"type": "enabling",
|
|
34
|
+
"size": 3,
|
|
35
|
+
"cognitiveLoad": "low"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"okrs": [
|
|
39
|
+
{
|
|
40
|
+
"id": "okr-1",
|
|
41
|
+
"objective": "Reduce waiting time in the support workflow",
|
|
42
|
+
"teamId": "team-a",
|
|
43
|
+
"keyResults": [
|
|
44
|
+
{
|
|
45
|
+
"id": "kr-1",
|
|
46
|
+
"description": "Reduce median resolution time (hours)",
|
|
47
|
+
"baseline": 24,
|
|
48
|
+
"target": 12,
|
|
49
|
+
"current": 18,
|
|
50
|
+
"confidence": 0.7
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"id": "kr-2",
|
|
54
|
+
"description": "Increase first-contact resolution (%)",
|
|
55
|
+
"baseline": 60,
|
|
56
|
+
"target": 80,
|
|
57
|
+
"current": 68,
|
|
58
|
+
"confidence": 0.6
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"id": "okr-2",
|
|
64
|
+
"objective": "Make platform onboarding self-service",
|
|
65
|
+
"teamId": "platform",
|
|
66
|
+
"keyResults": [
|
|
67
|
+
{
|
|
68
|
+
"id": "kr-3",
|
|
69
|
+
"description": "Reduce onboarding time (days)",
|
|
70
|
+
"baseline": 10,
|
|
71
|
+
"target": 2,
|
|
72
|
+
"current": 6,
|
|
73
|
+
"confidence": 0.8
|
|
74
|
+
}
|
|
75
|
+
]
|
|
76
|
+
}
|
|
77
|
+
],
|
|
78
|
+
"roadmap": [
|
|
79
|
+
{
|
|
80
|
+
"id": "r1",
|
|
81
|
+
"title": "Test the support search workflow",
|
|
82
|
+
"horizon": "now",
|
|
83
|
+
"teamId": "team-a",
|
|
84
|
+
"okrId": "okr-1",
|
|
85
|
+
"outcome": "Resolve routine queries without handoffs"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"id": "r2",
|
|
89
|
+
"title": "Self-service service catalogue",
|
|
90
|
+
"horizon": "next",
|
|
91
|
+
"teamId": "platform",
|
|
92
|
+
"okrId": "okr-2",
|
|
93
|
+
"outcome": "New teams can start without a manual ticket"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"id": "r3",
|
|
97
|
+
"title": "Explore knowledge quality feedback",
|
|
98
|
+
"horizon": "later",
|
|
99
|
+
"teamId": "team-a"
|
|
100
|
+
}
|
|
101
|
+
],
|
|
102
|
+
"interactions": [
|
|
103
|
+
{
|
|
104
|
+
"from": "platform",
|
|
105
|
+
"to": "team-a",
|
|
106
|
+
"mode": "X-as-a-Service"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"from": "platform",
|
|
110
|
+
"to": "team-b",
|
|
111
|
+
"mode": "X-as-a-Service"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"from": "enablement",
|
|
115
|
+
"to": "team-a",
|
|
116
|
+
"mode": "facilitating"
|
|
117
|
+
}
|
|
118
|
+
]
|
|
119
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
# Product operating model
|
|
2
|
+
|
|
3
|
+
Browser-local internal tool starter from Tenhaw Kit. Synthetic examples.
|
|
4
|
+
|
|
5
|
+
- [Reference](https://kit.tenhaw.com/templates/product-operating-model)
|
|
6
|
+
- [Source](https://github.com/Tenhaw/tenhaw-kit/tree/main/templates/product-operating-model)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"lib": [
|
|
5
|
+
"dom",
|
|
6
|
+
"dom.iterable",
|
|
7
|
+
"esnext"
|
|
8
|
+
],
|
|
9
|
+
"strict": true,
|
|
10
|
+
"skipLibCheck": true,
|
|
11
|
+
"noEmit": true,
|
|
12
|
+
"esModuleInterop": true,
|
|
13
|
+
"module": "esnext",
|
|
14
|
+
"moduleResolution": "bundler",
|
|
15
|
+
"resolveJsonModule": true,
|
|
16
|
+
"jsx": "react-jsx",
|
|
17
|
+
"isolatedModules": true,
|
|
18
|
+
"plugins": [
|
|
19
|
+
{
|
|
20
|
+
"name": "next"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"allowJs": true,
|
|
24
|
+
"incremental": true
|
|
25
|
+
},
|
|
26
|
+
"include": [
|
|
27
|
+
"next-env.d.ts",
|
|
28
|
+
"**/*.ts",
|
|
29
|
+
"**/*.tsx",
|
|
30
|
+
".next/types/**/*.ts",
|
|
31
|
+
".next/dev/types/**/*.ts"
|
|
32
|
+
],
|
|
33
|
+
"exclude": [
|
|
34
|
+
"node_modules"
|
|
35
|
+
]
|
|
36
|
+
}
|