The current Day One import system needs enhancements to better support incremental updates and link resolution, particularly for alternate usage between Day One and plain text journals.
Proposed Changes
1. Remove export_source from IndexedEntry
Replace with original_journal_name to store the Day One journal name
Handle Unicode journal names (including emoji) without modification
Add validation for proper UTF-8 encoding
2. Add Index Last Modified Timestamp
Add last_modified timestamp to track when the index was last updated
Background
The current Day One import system needs enhancements to better support incremental updates and link resolution, particularly for alternate usage between Day One and plain text journals.
Proposed Changes
1. Remove
export_source
fromIndexedEntry
original_journal_name
to store the Day One journal name2. Add Index Last Modified Timestamp
last_modified
timestamp to track when the index was last updated__getitem__
accessor to look inentries
3. Update Index Structure
last_modified
field4. Add Index Status Check
Implementation Notes
File Structure
Required Changes:
Update
DayOneIndex
classlast_modified
timestampUpdate
DayOneJSONImporter
Add utility functions:
extract_journal_name(export_path: Path) -> str
Add new messages:
Testing Requirements
Future Considerations
--diagnostic
output (includinglast_modified
)Tasks
last_modified
to indexThis enhancement improves the Day One integration by: