- Add edit/delete icon buttons to SidePanel items for entries, todos, lists, and fragments - Move fragment edit/delete controls from FragmentEditor main panel to SidePanel - Add externalEditRequested prop to FragmentEditor for parent-controlled edit mode - Add fragment delete handling in +page.svelte performDelete flow - Support custom entry filenames via FileName parameter in EntrySavePayload - Fix vault persistence for custom-named entries (non-date-formatted .md files) - Add VaultStorageService SaveCustomEntries helper for _custom_entries.vault - Add entries.delete backend command and wire through EntryFileService - Remove Write/Preview toggle from MarkdownEditor (previewOnly controlled by parent) - Add smoke tests for vault custom entry roundtrip and entry save with custom filename Co-Authored-By: Oz <oz-agent@warp.dev>
12 lines
348 B
C#
12 lines
348 B
C#
using Journal.Core.Dtos;
|
|
|
|
namespace Journal.Core.Services.Entries;
|
|
|
|
public interface IEntryFileService
|
|
{
|
|
IReadOnlyList<EntryListItem> ListEntries(string dataDirectory);
|
|
EntryLoadResult LoadEntry(string filePath);
|
|
EntrySaveResult SaveEntry(EntrySavePayload payload, string defaultDataDirectory);
|
|
bool DeleteEntry(string filePath);
|
|
}
|