gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

fix: display logo image instead of initials in custom template (#222)

Open sivamurugan90428 opened this issue 1 month ago • 0 comments

Summary

This PR fixes issue #222 — in custom presentation templates, the logo was previously displaying a fallback "i" even after replacing the logo URL.

Now, dynamicSlideLayout.tsx renders the logo as an element when a valid image_url is provided, and falls back to initials only if no image exists.

Changes

  • Added dynamicSlideLayout.tsx under servers/nextjs/presentation-templates/custom/
  • Updated README.md with instructions for updating logos in custom templates
  • Ensured proper rendering of left and right brand logos in the header section
  • Maintained decorative waves at the bottom

Testing

  • Verified locally using npm run dev
  • Confirmed that providing a valid image_url renders the logo image instead of "i"
  • Confirmed fallback to initials still works when no image URL is provided

Notes

This update allows template creators to easily replace placeholder logos with custom images and ensures consistent display across templates.


[!IMPORTANT] Fixes logo rendering in custom templates and adds installation scripts to resolve pyperclip compatibility issues.

  • Behavior:
    • dynamicSlideLayout.tsx now renders logo as <img> when image_url is valid, falls back to initials if not.
  • Files Added:
    • Added dynamicSlideLayout.tsx under servers/nextjs/presentation-templates/custom/.
  • Documentation:
    • Updated README.md with logo update instructions and troubleshooting section for installation errors.
  • Scripts:
    • Added install_fixed.ps1 and install_fixed.sh to fix pyperclip installation issue by setting compatible setuptools and pyperclip versions.

This description was created by Ellipsis for 86d820cf59185ef8e944839cfceeef51f5ad7424. You can customize this summary. It will automatically update as commits are pushed.

sivamurugan90428 avatar Oct 09 '25 13:10 sivamurugan90428