Initial sync of shared/playground-design-system/ into plugins/ms-ai-architect/playground/vendor/playground-design-system/ via scripts/sync-design-system.mjs. Source commit: f1fecf39b8fc20e86f6ec3c737f0dfda8403712e Files: 25 (7 CSS + 11 fonts/licenses + 3 schemas + README + MANIFEST) Vendored copy keeps the plugin standalone — playground will load CSS from ./vendor/ regardless of where the plugin is installed. Also adds .gitleaks.toml at repo root with a path allowlist for vendored MANIFEST.json files (SHA-256 file hashes are not secrets). Docs updated together with the playground HTML refactor that actually consumes the vendored CSS (next commit). This commit is internal-only.
78 lines
2.8 KiB
JSON
78 lines
2.8 KiB
JSON
{
|
||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||
"$id": "https://playground-ds.no/schemas/okr-set.json",
|
||
"title": "OKR-sett",
|
||
"description": "Et OKR-sett: ett mål (Objective) med 1–6 nøkkelresultater (KR). Brukes av OKR live-writer.",
|
||
"type": "object",
|
||
"required": ["id", "objective", "key_results", "owner", "period"],
|
||
"properties": {
|
||
"id": { "type": "string" },
|
||
"owner": {
|
||
"type": "object",
|
||
"required": ["name", "unit"],
|
||
"properties": {
|
||
"name": { "type": "string" },
|
||
"unit": { "type": "string", "description": "Avdeling/seksjon" },
|
||
"org": { "type": "string", "description": "Kommune/etat" }
|
||
}
|
||
},
|
||
"period": {
|
||
"type": "object",
|
||
"required": ["kind", "label", "start", "end"],
|
||
"properties": {
|
||
"kind": { "enum": ["tertial", "kvartal", "halvår", "år"] },
|
||
"label": { "type": "string", "description": "f.eks. 'T2 2026'" },
|
||
"start": { "type": "string", "format": "date" },
|
||
"end": { "type": "string", "format": "date" }
|
||
}
|
||
},
|
||
"objective": {
|
||
"type": "object",
|
||
"required": ["text"],
|
||
"properties": {
|
||
"text": { "type": "string", "minLength": 10, "maxLength": 240 },
|
||
"rationale": { "type": "string" }
|
||
}
|
||
},
|
||
"key_results": {
|
||
"type": "array", "minItems": 1, "maxItems": 6,
|
||
"items": {
|
||
"type": "object",
|
||
"required": ["id", "text"],
|
||
"properties": {
|
||
"id": { "type": "string", "pattern": "^KR[0-9]+$" },
|
||
"text": { "type": "string" },
|
||
"metric": {
|
||
"type": "object",
|
||
"properties": {
|
||
"name": { "type": "string" },
|
||
"unit": { "type": "string", "description": "%, dager, kr, antall, …" },
|
||
"baseline": { "type": "number" },
|
||
"target": { "type": "number" },
|
||
"stretch": { "type": "number" },
|
||
"source": { "type": "string", "description": "KPI-katalog ref / Tableau-sett / etc." }
|
||
}
|
||
},
|
||
"deadline": { "type": "string", "format": "date" }
|
||
}
|
||
}
|
||
},
|
||
"score": {
|
||
"type": "object",
|
||
"description": "Generert av OKR-writer ved kvalitetsanalyse",
|
||
"properties": {
|
||
"overall": { "type": "number", "minimum": 0, "maximum": 100 },
|
||
"measurability": { "type": "number" },
|
||
"specificity": { "type": "number" },
|
||
"ambition": { "type": "number" },
|
||
"actionability": { "type": "number" }
|
||
}
|
||
},
|
||
"critiques": {
|
||
"type": "array",
|
||
"items": { "$ref": "https://playground-ds.no/schemas/finding.json" }
|
||
},
|
||
"version": { "type": "string", "description": "Semver eller utkast 0.4-stil" },
|
||
"status": { "enum": ["draft", "in-review", "approved", "active", "closed"], "default": "draft" }
|
||
}
|
||
}
|