2026-07-23 09:18:16 +08:00
|
|
|
{
|
|
|
|
|
"id": "savings-minimal",
|
|
|
|
|
"planType": "savings",
|
|
|
|
|
"stylePreset": "minimal",
|
|
|
|
|
"sourceTemplateAssetId": "minimal",
|
|
|
|
|
"cloneReady": true,
|
|
|
|
|
"cloneRenderer": "savings-minimal-v1",
|
|
|
|
|
"displayName": "储蓄险简洁风",
|
|
|
|
|
"maxDisplayPolicyYear": 80,
|
|
|
|
|
"tableIntervalYears": 10,
|
feat(ppt): upgrade renderer from 5 fixed slides to 10+ configurable pages
Rewrite fast_pptx_renderer.py to read requiredPageTypes from template
config instead of hardcoding 5 slides. Add 10 slide builder functions
(cover, company, narrative, chart, timeline, table, compare, synergy,
conclusion, closing) with python-pptx native charts.
Key changes:
- Renderer reads templateConfig.requiredPageTypes and slidesConfig
from DeckContract to determine slide sequence and per-slide metadata
- routes.py loads PptTemplate and PptCompany from DB, normalizes all
PDF extractions (not just the first), passes full context to renderer
- renderer.py injects templateConfig, company info, and multi-product
data into DeckContract
- Add slides_config_json column to PptTemplate (migrate_017) for
per-slide title/narrative/chartType configuration via admin UI
- Admin template editor now supports drag-reorder slides, per-slide
title/narrative hint, chart/table type selection
- Add requiredPageTypes to savings/ink, savings/minimal, savings/business
templates (were missing, causing fallback to defaults)
- Fix IUL normalizer: add payYears and totalPremium to policy dict
- Fix CI/IUL normalizer: add totalSurrenderValue alias to benefitRows
so charts render correctly for all product types
- Port calculation functions from baodanppt: decade_rows, paid_premium,
simple_return, compound_return, find_payback_year
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-24 17:49:09 +08:00
|
|
|
"requiredPageTypes": [
|
|
|
|
|
"cover", "company", "narrative", "chart", "chart",
|
|
|
|
|
"timeline", "timeline", "table", "table", "conclusion", "closing"
|
|
|
|
|
],
|
2026-07-23 09:18:16 +08:00
|
|
|
"qualityRules": {
|
|
|
|
|
"forbidPlaceholderImages": true,
|
|
|
|
|
"forbidSyntheticOfficialValues": true,
|
|
|
|
|
"requirePdfHash": true,
|
|
|
|
|
"requireSourcePagesForOfficialTables": true
|
|
|
|
|
}
|
|
|
|
|
}
|