Bug Fixes and Security Improvements
✨ What's Improved
This update addresses several bugs and security enhancements across the platform.
PDF Preview in Knowledge Files
PDF files now display directly in the preview dialog using an embedded viewer instead of showing "Preview not available."
How to Use:
- Go to Knowledge Files in your Brand Kit
- Upload or select a PDF file
- Click to preview - the PDF renders inline
Community Analysis Card Data Handling
Fixed errors when viewing community analysis data with varying formats:
- Engagement patterns now support both structured objects and string arrays
- Added support for topThemes as an alternative to commonTopics
- Added null checks for sentiment breakdown and engagement counts
Governance Page Stability
Fixed a crash (TypeError: Cannot read properties of undefined) on the Governance page when working with negative directory terms.
The Fix: Added null-safe checks when processing terms in the Enhanced Negative Directory card.
Blog Navigation Improvements
Problem: Clicking header navigation links (Features, FAQ, Testimonials, Pricing) from blog pages did nothing.
Fix: Navigation now redirects to the homepage and smoothly scrolls to the target section.
Blog URL Cleanup
Problem: Blog post URLs contained a double slash (/blogs//slug).
Fix: Corrected the URL prefix to produce clean URLs (/blogs/slug).
Instagram Analysis Security
Enhanced the Instagram analysis edge function with:
- User authentication - Only authenticated users can access the endpoint
- URL validation - Prevents SSRF attacks by validating Instagram URLs