Enhance interview configuration and rendering for WP-26 integration
Node.js build / build (20.x) (push) Waiting to run
Node.js build / build (22.x) (push) Waiting to run

- Expanded the interview configuration YAML to include new profiles for experience and insight, with detailed steps for capturing user input.
- Updated the parsing logic to support new input types, including select options, enhancing user interaction during interviews.
- Improved the rendering logic to ensure correct handling of section edges and types, aligning with the updated configuration structure.
- Enhanced tests to validate the new configurations and rendering behavior, ensuring robustness in the interview process.
This commit is contained in:
Lars committed 2026-01-30 18:27:38 +01:00
1 parent 8186ca5ce0
commit 054cfcf82d
7 files changed
+783 -266

No files matched your search

+3 -3
View File
@@ -285,9 +285,9 @@ 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[\s\S]*?Einsicht-Text\n\n(> \[!edge\][\s\S]*)/)?.[1];
// Prüfe, dass Edges am Ende der Einsicht-Sektion stehen (nach dem Text; Abstract-Wrapper nutzt >>)
const insightSection = result.match(/## Einsicht[\s\S]*?Einsicht-Text\n\n([\s\S]*?\[!edge\][\s\S]*)/)?.[1];
expect(insightSection).toBeDefined();
expect(insightSection).toMatch(/> \[!edge\]/);
expect(insightSection).toMatch(/>+ \[!edge\]/);
});
});