Bug generating diagrams
Alberto Molina
Bug Report: Infographic element not rendering in existing cards
Issue: The Gamma infographic element (<infographic>) consistently renders as a blank/empty image box when added to a card via the AI editor (editCardById), even when a valid prompt is provided.
Steps to reproduce:
Open an existing card and use the AI to add an infographic element with a detailed prompt and layout="swimlanes"
The infographic saves with an empty prompt (prompt="") — the prompt is not being persisted correctly
The card displays a blank image placeholder with no content
What works: Infographics created via createCard (new card creation) do save the prompt correctly and render — as seen on slide 3 of this deck.
What doesn't work: Adding or replacing an infographic on an existing card via editCardById — the prompt is dropped.
Workaround used: Replaced with a structured HTML table swimlane, which renders reliably.
Deck for reference: The affected card is slide 4 ("End-to-End PS Billing Flow") in the current session.
Nik Payne (Gamma design)
Thanks for the super detailed writeup, this is really helpful. We’ll pass this along to the team.
Quick couple things that would help us pin it down:
1) When you call editCardById, can you share the exact <infographic> snippet you’re sending (including prompt + layout) and what comes back in the response payload?
2) Does the prompt get dropped immediately in the saved card data, or does it look correct until a refresh/reopen? If you can also share the app context (API vs in-product editor) and any request/response IDs from that session, that’d be awesome.