·
116 commits
to master
since this release
Context Fields Embedded in Events
This is the first stable baseline release of Truth Training, marking a significant milestone with the integration of context fields directly into events and the introduction of a comprehensive Context Template System.
Major Features
Context Fields Embedded
- Events now store context fields (
category_id,forma_id,cause_id,develop_id,effect_id) directly - Removed dependency on
context_idforeign key lookups - Improved query performance (no JOINs required for context information)
Context Template System
- New Context Editor UI screen for creating and managing reusable context templates
- Template selection auto-prefills event form fields, streamlining event entry
- NULL-aware duplicate detection (compares only non-NULL fields)
- NULL-aware template matching for display
API Enhancements
- Updated
POST /eventsaccepts embedded fields, rejectscontext_id - New
GET /contextsendpoint for listing templates - New
POST /contextsendpoint for creating templates with duplicate detection - New
GET /contexts/by-name/{name}endpoint - New
POST /contexts/matchendpoint for template matching - New
POST /contexts/from-eventendpoint for creating templates from events
Validation & Data Integrity
- Foreign key validation rejects invalid references immediately (400 error)
- Duplicate template detection prevents creation (409 Conflict)
- All FK references validated before persistence
UI Improvements
- Context template dropdown selector on NewEvent page
- Field prefilling from templates (modifiable before save)
- Context name display in event list when template matched
- New ContextEditor page for template creation and editing
Breaking Changes
- Removed
context_idforeign key fromtruth_eventstable - Added five embedded fields:
category_id,forma_id,cause_id,develop_id,effect_id - Existing events with
context_idmust be migrated manually - See
CHANGELOG.mdfor detailed migration notes
Version Bump
All crates and components bumped to v1.0.0:
core_lib: v1.0.0truth_core: v1.0.0app: v1.0.0truth-ui-desktop: v1.0.0
Full Changelog
See CHANGELOG.md for complete details.