- Set JOURNAL_PROJECT_ROOT and CWD when spawning sidecar so data
lands at repo root instead of under src-tauri/ (fixes dev watcher
hot-reload loop triggered by schema file writes)
- Add backend client layer (auth.ts, client.ts, fragments.ts, types.ts)
- Wire vault unlock flow with password prompt modal on locked DB
- Update fragments store with full sidecar CRUD integration
- Update EditorPanel and AppModal for fragment editing support
- Gitignore runtime journal/ and logs/ directories
Co-Authored-By: Oz <oz-agent@warp.dev>
- add and expand feature stores for entries, fragments, todos, lists, settings
- move CRUD logic into store helpers and simplify component state handling
- update SidePanel + button to create section-specific items
- switch fragment UX to view-first with edit/create modes
- add and update docs for store-based state management
- remove deprecated account route
- Add Debug.WriteLine to VaultStorageService empty catch blocks for diagnostics
- Replace .ToList() with collection expressions [..] in fragment repositories
- Remove redundant comments in DatabaseSessionService and VaultStorageService
Co-Authored-By: Oz <oz-agent@warp.dev>
- Convert HtmlSanitizer to partial class with [GeneratedRegex] attributes
- Replace 11 runtime Regex.Replace/Matches calls with generated methods
- Eliminates regex compilation overhead for HTML sanitization operations
- Update REFACTORING_SUMMARY.md to document the optimization
Co-Authored-By: Oz <oz-agent@warp.dev>
- Delete unused FileFragmentRepository.cs
- DatabaseSessionService delegates to JournalDatabaseService for
OpenEncryptedConnection/EnsureSchema instead of duplicating logic
- Make IJournalDatabaseService expose OpenEncryptedConnection and
EnsureSchema as public
- Convert entire fragment chain from fake async (Task.FromResult
wrappers) to synchronous: IFragmentRepository, SqliteFragmentRepository,
InMemoryFragmentRepository, IFragmentService, FragmentService,
Entry.cs dispatch, and SmokeTests
Co-Authored-By: Warp <agent@warp.dev>
- Slim Entry.cs from ~550 to ~330 lines (thin dispatcher only)
- Extract HtmlSanitizer, CommandLogger, EntryFileService from Entry.cs
- Extract PythonSidecarClient from duplicated sidecar plumbing
- Add IEntryFileRepository + DiskEntryFileRepository (mirrors Fragment pattern)
- Move payload records to Dtos/CommandDtos.cs
- Move database result records to Dtos/DatabaseDtos.cs
- Register new services and repository in DI
- All 70/70 smoke tests pass, no behavior changes
Co-Authored-By: Warp <agent@warp.dev>
- Fragment model with validation, DTOs (immutable records), repository, service
- Sidecar stdin/stdout JSON protocol for Tauri integration
- DI wiring via ServiceCollectionExtensions
- Scaffolded Journal.Api (not yet wired)
Co-Authored-By: Warp <agent@warp.dev>