- Nx 22.7 monorepo (pnpm 11.1, TypeScript 5.9, Node 24) - apps/api: NestJS 11 (CJS conforme CODING-RULES.md PGD-DB-004) - apps/web: React 19 + Vite 8 (ESM) - libs/shared/api-interface: Zod contract base - Docker Compose dev: Postgres 18, Valkey 8, MinIO, Mailpit - WDS artifacts: - design-artifacts/A-Product-Brief/ (5 docs canônicos + 16 dialogs) - design-artifacts/B-Trigger-Map/ (hub + 4 personas + feature impact) - Stack canon: STACK.md v2.2 + CODING-RULES.md v2.0 + brand.md - AGENTS.md + README.md como entrada para devs/agentes Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
131 lines
2.6 KiB
Markdown
131 lines
2.6 KiB
Markdown
# Page Process Workshop Templates
|
||
|
||
Templates for comparison output and change detection displays.
|
||
|
||
---
|
||
|
||
## Change Detection Output Template
|
||
|
||
```handlebars
|
||
{{#if has_changes}}
|
||
🔍 **Changes detected:**
|
||
|
||
{{#if unchanged_sections.length > 0}}
|
||
✅ **Unchanged sections** ({{unchanged_sections.length}}):
|
||
{{#each section in unchanged_sections}}
|
||
- {{section.name}}
|
||
{{/each}}
|
||
{{/if}}
|
||
|
||
{{#if modified_sections.length > 0}}
|
||
✏️ **Modified sections** ({{modified_sections.length}}):
|
||
{{#each section in modified_sections}}
|
||
- {{section.name}}: {{section.change_description}}
|
||
{{/each}}
|
||
{{/if}}
|
||
|
||
{{#if new_sections.length > 0}}
|
||
➕ **New sections added** ({{new_sections.length}}):
|
||
{{#each section in new_sections}}
|
||
- {{section.name}}: {{section.description}}
|
||
{{/each}}
|
||
{{/if}}
|
||
|
||
{{#if completed_sections.length > 0}}
|
||
✨ **TBD sections now complete** ({{completed_sections.length}}):
|
||
{{#each section in completed_sections}}
|
||
- {{section.name}}: Ready to specify
|
||
{{/each}}
|
||
{{/if}}
|
||
|
||
{{#if removed_sections.length > 0}}
|
||
⚠️ **Sections removed** ({{removed_sections.length}}):
|
||
{{#each section in removed_sections}}
|
||
- {{section.name}}
|
||
{{/each}}
|
||
{{/if}}
|
||
|
||
{{else}}
|
||
✅ **No changes detected**
|
||
|
||
This sketch appears identical to the existing specification.
|
||
{{/if}}
|
||
```
|
||
|
||
---
|
||
|
||
## Detailed Comparison Template
|
||
|
||
```handlebars
|
||
**Detailed Section-by-Section Comparison:**
|
||
|
||
{{#each section in modified_sections}}
|
||
|
||
---
|
||
|
||
### {{section.name}}
|
||
|
||
**Current specification:**
|
||
{{section.current_spec_summary}}
|
||
|
||
**New sketch shows:**
|
||
{{section.new_sketch_summary}}
|
||
|
||
**Detected changes:**
|
||
{{#each change in section.changes}}
|
||
- {{change.description}}
|
||
{{/each}}
|
||
|
||
**Confidence:** {{section.confidence}}%
|
||
|
||
---
|
||
{{/each}}
|
||
```
|
||
|
||
---
|
||
|
||
## Update Summary Template
|
||
|
||
```handlebars
|
||
✅ **Page specification updated!**
|
||
|
||
**Summary:**
|
||
{{#if updated_count > 0}}
|
||
- {{updated_count}} sections updated
|
||
{{/if}}
|
||
{{#if added_count > 0}}
|
||
- {{added_count}} sections added
|
||
{{/if}}
|
||
{{#if preserved_count > 0}}
|
||
- {{preserved_count}} sections preserved (unchanged)
|
||
{{/if}}
|
||
{{#if removed_count > 0}}
|
||
- {{removed_count}} sections removed
|
||
{{/if}}
|
||
|
||
**Updated file:** `{{page_spec_path}}`
|
||
|
||
**Sketch saved to:** `{{sketch_path}}`
|
||
```
|
||
|
||
---
|
||
|
||
## Menu Options
|
||
|
||
**Update Strategy Menu (with changes):**
|
||
- [A] Update all changed/new/completed sections
|
||
- [B] Pick specific sections to update
|
||
- [C] Show me detailed comparison first
|
||
- [D] Actually, this is the same - cancel
|
||
|
||
**Update Strategy Menu (only removals):**
|
||
- [A] Remove deleted sections from spec
|
||
- [B] Keep them marked as "removed from design"
|
||
- [C] Cancel - I'll fix the sketch
|
||
|
||
**Completion Menu:**
|
||
- [A] Generate HTML prototype
|
||
- [B] Add another page
|
||
- [C] Update another section
|
||
- [D] Done with this page
|