Skip to content

feat: expand Pretext layouts and fix quote/mini-tile composition - #45

Merged
gregmeyer merged 1 commit into
mainfrom
feat/pretext-expansion
Mar 30, 2026
Merged

feat: expand Pretext layouts and fix quote/mini-tile composition#45
gregmeyer merged 1 commit into
mainfrom
feat/pretext-expansion

Conversation

@gregmeyer

Copy link
Copy Markdown
Owner

Summary

Expands Pretext rendering across multiple diagrams and fixes the overlapping quote/mini-tile composition issues.

Key changes

  • Open hero insight callout now uses Pretext (icon stacking + slot width alignment).
  • Story mini-tile: when Pretext is enabled, reserved heights are increased to prevent clipping.
  • : robust font parsing (italic/oblique/bold and numeric font-weight) for correct SVG attributes.
  • Docs: added a Pretext composition section to .
  • Added a small refinement demo + smoke test.

Testing

docker run --rm --ipc=host --init -v /Users/grmeyer/playground/writing/utils/modern-graphics:/app -w /app --entrypoint /bin/bash modern-graphics -c "pip install pytest -q && pytest -q tests/smoke/test_overhaul_phase1_smoke.py tests/smoke/test_layout_strategy_smoke.py tests/smoke/test_create_cli_phase3_smoke.py tests/smoke/test_create_story_regression_phase7_smoke.py tests/smoke/test_story_tile_pretext_smoke.py tests/smoke/test_export_phase4_smoke.py tests/smoke/test_cli_migration_phase5_smoke.py tests/smoke/test_export_presets_phase6_smoke.py"
.................... [100%]
20 passed in 0.18s (smoke suite)

Made with Cursor

Apply pretext_slot across comparison, funnel, grid, insight story, slide cards, and timeline. Open hero gains insight callout Pretext, shared width constants, and callout CSS for icon stacking and slot width.

pretext_utils: parse italic/oblique/bold and numeric font-weight for valid SVG font attributes; clip inner SVG safely.

Story mini-tile: taller foreignObject bands when Pretext so multi-line text is not clipped; optional legacy layout for demos. Add refinement demo script and smoke tests; wire tests into Makefile.

Document Pretext vs freeform wireframe and foreignObject in SVG_COMPOSITION; README acknowledgments; gitignore docs/plans for local notes.

Made-with: Cursor
@gregmeyer
gregmeyer merged commit ca3b0a7 into main Mar 30, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant