Back to Changelog
    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_elements JSONB column to brand_kit_core.
    • Unified the industry save path so the full hierarchy is written to brand_kits.industry_details and the deepest selected node is mirrored to brand_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_id reflects the deepest previously-selected node.

    How to Verify

    1. Open a brand kit → Overview → select Industry → Subindustry → Sector → Save.
    2. Navigate to another tab and back — all three levels should remain selected.
    3. Open the Brand Story card, add storytelling content, and confirm it saves without error.