Improvement
April 17, 20262 min read
Industry & Brand Story Persistence Fix
Brand Kit Core
✨ What''s Improved
Two persistence issues in the Brand Kit editor have been resolved.
The Problem
- Industry hierarchy: Selecting an Industry, Subindustry, and Sector appeared to save successfully, but only the top-level Industry was actually persisted. Subindustry and Sector reverted on navigation.
- Brand Story: Saving content on the Brand Story card failed with
Could not find the 'storytelling_elements' column of 'brand_kit_core' in the schema cache.
The Fix
- Added the missing
storytelling_elementsJSONB column tobrand_kit_core. - Unified the industry save path so the full hierarchy is written to
brand_kits.industry_detailsand the deepest selected node is mirrored tobrand_kit_core.industry_classification_id. - Added
refetch()after save so the editor no longer rehydrates stale data on navigation. - Updated completion logic to recognize industry data from either storage location.
- Backfilled existing brand kits so
industry_classification_idreflects the deepest previously-selected node.
How to Verify
- Open a brand kit → Overview → select Industry → Subindustry → Sector → Save.
- Navigate to another tab and back — all three levels should remain selected.
- Open the Brand Story card, add storytelling content, and confirm it saves without error.