From 6325ee99851f25c30c128e4c3d91f38c0f02eb99 Mon Sep 17 00:00:00 2001 From: Csaba Fabian Date: Tue, 3 Mar 2026 23:36:40 +0000 Subject: [PATCH] feat: migrate goal data to hierarchy block format Replace goals-hierarchy.jsonc (type: goals) with hierarchy marker (type: hierarchy). Add level, subtitle, labels, availableLabels fields to goal .md blocks. Update feinziele grobzielId references from g2/g3/g4 to goals-grobziel-1/2/3. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- 070-goalSetting/02-goals-hierarchy.jsonc | 44 ++----------------- 070-goalSetting/04-goals-fernziel.md | 2 + 070-goalSetting/05-goals-grobziel-1.md | 9 ++-- 070-goalSetting/06-goals-grobziel-2.md | 9 ++-- 070-goalSetting/07-goals-grobziel-3.md | 7 ++- .../08-planning-feinziele.jsonc | 11 ++--- 6 files changed, 29 insertions(+), 53 deletions(-) diff --git a/070-goalSetting/02-goals-hierarchy.jsonc b/070-goalSetting/02-goals-hierarchy.jsonc index a992ed7..1bc4000 100644 --- a/070-goalSetting/02-goals-hierarchy.jsonc +++ b/070-goalSetting/02-goals-hierarchy.jsonc @@ -1,43 +1,7 @@ -// Goal hierarchy (long-term and mid-term goals) +// Goal hierarchy marker — defines nesting levels for subsequent blocks { - "id": "goals-hierarchy", - "type": "goals", + "id": "goal-hierarchy", + "type": "hierarchy", "title": "Zielhierarchie", - "hint": "Definieren Sie ein Fernziel (Teilhabe-orientiert) und funktionale Grobziele (konkrete Meilensteine). Unterscheiden Sie zwischen Bildungs- und Unterstützungszielen auf Grobzielebene.", - "goals": [ - { - "id": "g1", - "type": "long-term", - "title": "Fernziel", - "description": "", - "status": "draft", - "category": "education" - }, - { - "id": "g2", - "type": "mid-term", - "parentId": "g1", - "category": "education", - "title": "Grobziel 1 [BZ]", - "description": "", - "status": "draft" - }, - { - "id": "g3", - "type": "mid-term", - "parentId": "g1", - "category": "support", - "title": "Grobziel 2 [UZ]", - "description": "", - "status": "draft" - }, - { - "id": "g4", - "type": "mid-term", - "parentId": "g1", - "title": "Grobziel 3", - "description": "", - "status": "draft" - } - ] + "levels": ["fernziel", "grobziel"] } diff --git a/070-goalSetting/04-goals-fernziel.md b/070-goalSetting/04-goals-fernziel.md index bcf3506..46616fb 100644 --- a/070-goalSetting/04-goals-fernziel.md +++ b/070-goalSetting/04-goals-fernziel.md @@ -2,6 +2,8 @@ id: "goals-fernziel" type: "markdown" title: "Fernziel" +subtitle: "" +level: "fernziel" hint: "Teilhabe-orientiertes Fernziel mit fachlicher Begründung." --- ***Fernziel*** diff --git a/070-goalSetting/05-goals-grobziel-1.md b/070-goalSetting/05-goals-grobziel-1.md index f977434..d2fb100 100644 --- a/070-goalSetting/05-goals-grobziel-1.md +++ b/070-goalSetting/05-goals-grobziel-1.md @@ -1,12 +1,15 @@ --- id: "goals-grobziel-1" type: "markdown" -title: "Grobziel 1 [BZ]" +title: "Grobziel 1" +subtitle: "" +level: "grobziel" +availableLabels: ["BZ", "UZ"] +labels: ["BZ"] hint: "BZ = Bildungsziel. Formuliere ein konkretes Grobziel mit fachlicher Begründung." -tag: "UZ" --- ***Grobziel*** ***Fachliche Begründung*** -***Bedeutsamkeit (Kopf, Herz, Hand)*** \ No newline at end of file +***Bedeutsamkeit (Kopf, Herz, Hand)*** diff --git a/070-goalSetting/06-goals-grobziel-2.md b/070-goalSetting/06-goals-grobziel-2.md index 8b30b7b..dd418fc 100644 --- a/070-goalSetting/06-goals-grobziel-2.md +++ b/070-goalSetting/06-goals-grobziel-2.md @@ -1,12 +1,15 @@ --- id: "goals-grobziel-2" type: "markdown" -title: "Grobziel 2 [UZ]" +title: "Grobziel 2" +subtitle: "" +level: "grobziel" +availableLabels: ["BZ", "UZ"] +labels: ["UZ"] hint: "UZ = Unterstützungsziel. Min. 1 BZ + 1 UZ erforderlich." -tag: "BZ" --- ***Grobziel*** ***Fachliche Begründung*** -***Bedeutsamkeit (Kopf, Herz, Hand)*** \ No newline at end of file +***Bedeutsamkeit (Kopf, Herz, Hand)*** diff --git a/070-goalSetting/07-goals-grobziel-3.md b/070-goalSetting/07-goals-grobziel-3.md index 594759c..fe71807 100644 --- a/070-goalSetting/07-goals-grobziel-3.md +++ b/070-goalSetting/07-goals-grobziel-3.md @@ -2,11 +2,14 @@ id: "goals-grobziel-3" type: "markdown" title: "Grobziel 3" +subtitle: "" +level: "grobziel" +availableLabels: ["BZ", "UZ"] +labels: [] hint: "Formuliere ein konkretes Grobziel mit fachlicher Begründung." -tag: "UZ" --- ***Grobziel*** ***Fachliche Begründung*** -***Bedeutsamkeit (Kopf, Herz, Hand)*** \ No newline at end of file +***Bedeutsamkeit (Kopf, Herz, Hand)*** diff --git a/080-interventionPlanning/08-planning-feinziele.jsonc b/080-interventionPlanning/08-planning-feinziele.jsonc index 6288e4d..2d63aac 100644 --- a/080-interventionPlanning/08-planning-feinziele.jsonc +++ b/080-interventionPlanning/08-planning-feinziele.jsonc @@ -1,3 +1,4 @@ +// Fine goals (Feinziele) — each linked to a parent Grobziel block ID { "id": "planning-feinziele", "type": "feinziele", @@ -6,12 +7,12 @@ "feinziele": [ { "id": "feinziel-3-1", - "grobzielId": "g4", + "grobzielId": "goals-grobziel-3", "text": "" }, { "id": "feinziel-2-1", - "grobzielId": "g3", + "grobzielId": "goals-grobziel-2", "text": "", "smartCheck": { "s": false, @@ -23,7 +24,7 @@ }, { "id": "feinziel-1-1", - "grobzielId": "g2", + "grobzielId": "goals-grobziel-1", "text": "Lehrnen", "smartCheck": { "s": true, @@ -35,8 +36,8 @@ }, { "id": "feinziel-1-2", - "grobzielId": "g2", + "grobzielId": "goals-grobziel-1", "text": "" } ] -} \ No newline at end of file +}