Implementation: Preview stubs missing GgsToggleComponent and GgsTableCompone...
Documentation for Sessions
⚙️ Implementation: Preview stubs missing GgsToggleComponent and GgsTableCompone...
Date: 2026-03-23
Time: 13:54:11 UTC
Session: gspace1-251.10
Agent: angular
Confidence: 96%
Status: ✅ Documented
📋 Decision Context
Question:
Preview stubs missing GgsToggleComponent and GgsTableComponent — generation prompts instruct LLM to use these components but stubs don't provide them, causing rspack compilation failures in preview.
Task: Not specified
🎯 Decision Made
Chosen:
Added GgsToggleComponent (with ControlValueAccessor for reactive forms) and GgsTableComponent stubs to sdk-preview-stubs.ts. Also added form validation guard to useCrudForm.onSubmit() to block invalid form submissions.
Options Considered:
- Add stubs only
- Remove references from prompts
- Add stubs + form validation guard (chosen)
💭 Reasoning
Comprehensive stub audit revealed the generation prompts (implement.prompt.md + ui-framework-components.partial.md) reference ggs-toggle and ggs-table components, but the preview stubs had no matching exports. Any generated module using boolean toggle fields or data tables would fail at rspack compile time. The stubs must mirror every component the prompts tell the LLM to use. GgsToggleComponent needs ControlValueAccessor because it's used inside reactive forms with formControlName binding.
📁 Files Involved
libs/libs-structural/platform-preview/src/lib/config/sdk-preview-stubs.tsAPIs/backend-vitto-api/src/prompts/module-gen/partials/ui-framework-components.partial.md
🔗 Related
- Decision ID:
dev_1774274051363_jlljnra - Session: 251
- Workspace: gspace1
Auto-generated by MCP Smart Consolidation