Enhance interview configuration and documentation for WP-26 integration
- Added the `Interview_Config_Guide.md` for comprehensive instructions on creating interview profiles and utilizing various note types. - Updated `00_Dokumentations_Index.md` to include links to the new guide and improved navigation for WP-26 related resources. - Enhanced `06_Konfigurationsdateien_Referenz.md` with references to the new guide and clarified YAML structure for interview configurations. - Introduced `audit_geburtsdatei.md` for detailed analysis of section connections and edge types, highlighting critical issues and recommendations for improvement. - Improved renderer tests to ensure proper handling of section types and edge generation, aligning with the new WP-26 features.
This commit is contained in:
1 parent
b99416b67d
commit
8186ca5ce0
13 files changed
+2805
-282
No files matched your search
@@ -46,8 +46,6 @@ describe("WP-26 Interview Renderer", () => {
|
||||
|
||||
it("sollte keine Selbstreferenz bei automatischen Edges generieren", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -80,7 +78,7 @@ describe("WP-26 Interview Renderer", () => {
|
||||
const result = renderProfileToMarkdown(profile, answers, mockOptions);
|
||||
|
||||
// Prüfe, dass keine Selbstreferenz vorhanden ist
|
||||
const contextSection = result.match(/## Kontext.*?## Einsicht/s)?.[0];
|
||||
const contextSection = result.match(/## Kontext[\s\S]*?## Einsicht/)?.[0];
|
||||
expect(contextSection).toBeDefined();
|
||||
|
||||
// Prüfe, dass keine Edge auf sich selbst zeigt
|
||||
@@ -94,8 +92,6 @@ describe("WP-26 Interview Renderer", () => {
|
||||
|
||||
it("sollte Edge-Types aus graph_schema verwenden", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -150,8 +146,6 @@ describe("WP-26 Interview Renderer", () => {
|
||||
|
||||
it("sollte Backlinks automatisch generieren", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -193,8 +187,6 @@ describe("WP-26 Interview Renderer", () => {
|
||||
|
||||
it("sollte keine Selbstreferenz bei expliziten Referenzen erlauben", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -232,8 +224,6 @@ describe("WP-26 Interview Renderer", () => {
|
||||
|
||||
it("sollte Section-Type-Callout direkt nach Heading platzieren", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -258,14 +248,12 @@ describe("WP-26 Interview Renderer", () => {
|
||||
const result = renderProfileToMarkdown(profile, answers, mockOptions);
|
||||
|
||||
// Prüfe, dass Section-Type-Callout direkt nach Heading steht
|
||||
const sectionPattern = /## Kontext.*?\n> \[!section\] experience/s;
|
||||
const sectionPattern = /## Kontext[\s\S]*?\n> \[!section\] experience/;
|
||||
expect(result).toMatch(sectionPattern);
|
||||
});
|
||||
|
||||
it("sollte Edges am Ende der Sektion platzieren", () => {
|
||||
const profile: InterviewProfile = {
|
||||
version: "2.0",
|
||||
frontmatterWhitelist: [],
|
||||
key: "test",
|
||||
label: "Test",
|
||||
note_type: "experience",
|
||||
@@ -298,7 +286,7 @@ describe("WP-26 Interview Renderer", () => {
|
||||
const result = renderProfileToMarkdown(profile, answers, mockOptions);
|
||||
|
||||
// Prüfe, dass Edges am Ende der Einsicht-Sektion stehen (nach dem Text)
|
||||
const insightSection = result.match(/## Einsicht.*?Einsicht-Text\n\n(> \[!edge\].*)/s)?.[1];
|
||||
const insightSection = result.match(/## Einsicht[\s\S]*?Einsicht-Text\n\n(> \[!edge\][\s\S]*)/)?.[1];
|
||||
expect(insightSection).toBeDefined();
|
||||
expect(insightSection).toMatch(/> \[!edge\]/);
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user