Everything That Can Happen

Release Notes - Version v0.6.1

Release notes for version v0.6.1

Release Notes - Version 0.6.1

Release Date: 2025-06-10
Type: Patch Release
Previous Version: 0.6.0

๐ŸŽฏ Release Highlights

Version 0.6.1 introduces a critical fix to the Story Node Settings system, resolving significant UX issues with the โ€œUse Custom Settingsโ€ checkbox functionality. This patch release includes a new database field, enhanced settings inheritance behavior, and comprehensive documentation updates.


๐Ÿ”ง Major Fixes & Improvements

Story Node Settings System Overhaul

Problem Resolved

The โ€œUse Custom Settingsโ€ checkbox had incorrect behavior:

  • โŒ New story nodes always had checkbox checked (should be unchecked)
  • โŒ Unchecking the checkbox had no effect (page refreshed but remained checked)
  • โŒ No explicit field to track custom vs inherited settings intent
  • โŒ Settings UUID missing from image generation TOKEN logs

Solution Implemented

  • โœ… New Database Field: Added useCustomSettings boolean field to explicitly track custom vs inherited settings
  • โœ… Correct Checkbox Behavior: New nodes start unchecked, checking/unchecking works properly
  • โœ… Settings Inheritance Fix: Fixed node targeting to use current node instead of non-existent next node
  • โœ… Complete TOKEN Logging: Added settingsUUID to all image generation logs for cost tracking
  • โœ… Proper Service Integration: Updated both story generation and image generation workflows

๐Ÿ—„๏ธ Database Schema Changes

Story Node Schema

interface StoryNode {
	// ... existing fields
	storyNodeSettingsUUID?: string; // Existing field
	useCustomSettings?: boolean; // ๐Ÿ†• NEW FIELD (default: false)
}

Migration Notes

  • Backward Compatible: Existing nodes default to useCustomSettings = false
  • No Data Loss: All existing settings UUIDs are preserved
  • Automatic Application: New field applied automatically during story generation

๐Ÿ”„ Settings Inheritance Hierarchy

Correct Behavior (v0.6.1)

  1. Custom Node Settings (useCustomSettings = true) - Highest Priority
  2. Parent Node Settings (inherited from parent) - Medium Priority
  3. Story Default Settings (story-wide configuration) - Low Priority
  4. System Default Settings (fallback) - Lowest Priority

User Experience

  • New Nodes: Start with useCustomSettings = false (checkbox unchecked)
  • Enable Custom: Checking box creates new settings record, sets useCustomSettings = true
  • Disable Custom: Unchecking box removes custom settings, sets useCustomSettings = false, reverts to inheritance

๐Ÿ› ๏ธ Technical Implementation

Backend Services Updated

  • story-node.service.ts: Fixed settings retrieval to use current node instead of next node
  • story-node-settings.service.ts: Updated all CRUD operations to properly handle useCustomSettings field
  • multi-layer-image.service.ts: Added settings UUID retrieval and passing to image generation
  • All TOKEN logs: Now include settingsUUID for complete traceability

API Endpoints Enhanced

  • GET /api/v1/stories/nodes/{nodeId}/settings: Now correctly returns hasCustomSettings based on useCustomSettings field
  • POST /api/v1/stories/nodes/{nodeId}/settings/custom: Sets useCustomSettings = true when creating custom settings
  • DELETE /api/v1/stories/nodes/{nodeId}/settings/custom: Sets useCustomSettings = false when removing custom settings

Frontend Integration

  • Checkbox State: Now properly reflects hasCustomSettings value from API
  • Form Behavior: Checking/unchecking triggers appropriate API calls
  • State Management: Consistent state between frontend and backend

๐Ÿ“Š Testing & Quality Assurance

Test Coverage

  • โœ… 286/286 Backend Tests Passing (100% success rate)
  • โœ… 106/106 Frontend Tests Passing (100% success rate)
  • โœ… Total: 392/392 Tests Passing across entire codebase

Updated Test Cases

  • story-node-settings.service.spec.ts: Updated to test new useCustomSettings field behavior
  • Integration Tests: Verified complete checkbox workflow functionality
  • TOKEN Log Tests: Confirmed settingsUUID inclusion in all scenarios

๐Ÿ“š Documentation Updates

Comprehensive Documentation Overhaul

All project documentation updated to reflect new behavior:

  1. Implementation Status (docs/implementation-status.md)

    • Added Story Node Settings System to completed features
    • Updated latest progress with v0.6.1 changes
  2. Schema Definitions (docs/schema-definitions.md)

    • Added complete Story Node Settings schema
    • Documented useCustomSettings field and inheritance hierarchy
  3. Technical Architecture (docs/technical-architecture.md)

    • Enhanced service architecture documentation
    • Added StoryNodeSettingsService to specialized services
  4. API Documentation (docs/api-documentation.md)

    • Added complete Story Node Settings API endpoints
    • Documented request/response examples with correct behavior
  5. User Guide (docs/user-guide.md)

    • Added comprehensive โ€œUnderstanding the Use Custom Settings Checkboxโ€ section
    • Explained settings hierarchy and inheritance rules for storytellers

๐Ÿ—๏ธ Development Workflow Improvements

Dev Journal Documentation

Created detailed development journals documenting:

  • 01-endpoint-naming-consistency-fix.md: API endpoint standardization
  • 02-story-node-settings-fix.md: Settings retrieval and UUID fixes
  • 03-use-custom-settings-checkbox-fix.md: Complete checkbox behavior solution

Code Quality

  • DRY Principles: Removed duplicate logic and consolidated settings handling
  • Error Handling: Enhanced error logging and debugging capabilities
  • Type Safety: Improved TypeScript interfaces and validation

๐Ÿš€ Performance & Monitoring

Enhanced Logging

  • TOKEN Logs: All image generation now includes settingsUUID for cost tracking
  • Debug Endpoint: Enhanced /api/v1/logs/debug-recent with settings context
  • Error Tracking: Improved error context for settings-related issues

Cost Transparency

  • Settings Traceability: Every AI generation call now traceable to specific settings UUID
  • Budget Monitoring: Better cost tracking for custom settings usage
  • Administrative Visibility: Complete audit trail for settings changes

โšก Breaking Changes

None

This release is fully backward compatible:

  • โœ… Existing story nodes continue to work without modification
  • โœ… All existing APIs maintain backward compatibility
  • โœ… Database migrations are automatic and non-destructive
  • โœ… Frontend interfaces remain unchanged (only behavior improved)

๐Ÿ”ฎ Looking Forward

Foundation for Future Features

This release establishes a solid foundation for:

  • Advanced Settings Management: More granular control over AI behavior
  • Settings Templates: Reusable settings configurations
  • Collaborative Settings: Shared settings between storytellers
  • Settings Analytics: Usage patterns and effectiveness tracking

Next Release Preview

Upcoming features planned for v0.7.0:

  • Node-Based Story Editor: Visual story editing with React Flow
  • Enhanced Visual Themes: More comprehensive theme system
  • Advanced Analytics: Deeper insights into story performance

๐Ÿ’ก Developer Notes

Migration Required

  • None: All changes are automatic and backward compatible

Environment Variables

  • No Changes: All existing configuration remains valid

Deployment Notes

  • Database: Automatic schema updates during application startup
  • Redis/Caching: No cache invalidation required
  • CDN: No asset changes require cache busting

๐ŸŽ‰ Acknowledgments

This release represents a significant improvement in user experience and system reliability. Special recognition for:

  • Critical Issue Identification: User feedback identified the checkbox behavior problem
  • Comprehensive Testing: 392/392 tests ensure release stability
  • Documentation Excellence: Complete documentation overhaul for clarity
  • Backward Compatibility: Zero-downtime deployment with full compatibility

๐Ÿ“ Full Changelog

Added

  • ๐Ÿ†• useCustomSettings boolean field to Story Node schema
  • ๐Ÿ†• Settings UUID inclusion in all TOKEN logs
  • ๐Ÿ†• Comprehensive Story Node Settings API documentation
  • ๐Ÿ†• Enhanced user guide with checkbox behavior explanation

Fixed

  • ๐Ÿ”ง โ€œUse Custom Settingsโ€ checkbox now starts unchecked for new nodes
  • ๐Ÿ”ง Checkbox checking/unchecking now works correctly
  • ๐Ÿ”ง Settings inheritance uses correct node targeting
  • ๐Ÿ”ง Image generation TOKEN logs include settings UUID
  • ๐Ÿ”ง Multi-layer image service properly passes settings context

Changed

  • ๐Ÿ“ Updated all documentation to reflect correct behavior
  • ๐Ÿ“ Enhanced API responses with proper settings metadata
  • ๐Ÿ“ Improved error messages and logging context

Technical

  • โš™๏ธ Updated 6 backend service files with enhanced logic
  • โš™๏ธ Modified database schema with new field (backward compatible)
  • โš™๏ธ Enhanced 286 backend tests for new behavior
  • โš™๏ธ Improved TypeScript interfaces and validation

Download: Release v0.6.1
Issues: Report Issues
Documentation: Complete Documentation


Everything Happens Team - Making Interactive Storytelling Better ๐Ÿš€