feat: Document recommendation UI in generator

New RecommendedDocuments component shown above the template library:
- Evaluates scope answers + compliance level (L1-L4)
- Groups templates into required/recommended/optional
- Shows profile label (Startup/KMU/Extended/Enterprise)
- Cards link to actual templates — click opens in generator
- Optional section collapsed by default
- Only visible when scope has been completed

Renders as purple gradient panel with grid cards, each showing
template name and availability status.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-05-01 11:06:56 +02:00
parent d942b21354
commit 9f4c4abb84
2 changed files with 137 additions and 0 deletions
@@ -14,6 +14,7 @@ import { CATEGORIES } from './_constants'
import { getGeneratorDefaults, getProfileLabel } from './scopeDefaults'
import TemplateLibrary from './_components/TemplateLibrary'
import GeneratorSection from './_components/GeneratorSection'
import RecommendedDocuments from './_components/RecommendedDocuments'
function DocumentGeneratorPageInner() {
const { state } = useSDK()
@@ -191,6 +192,12 @@ function DocumentGeneratorPageInner() {
</div>
</div>
{/* Recommended documents based on scope profile */}
<RecommendedDocuments
allTemplates={allTemplates}
onUseTemplate={handleUseTemplate}
/>
<TemplateLibrary
allTemplates={allTemplates}
filteredTemplates={filteredTemplates}