- 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>
16 lines
546 B
C#
16 lines
546 B
C#
namespace Journal.Core.Repositories;
|
|
|
|
public interface IEntryFileRepository
|
|
{
|
|
IReadOnlyList<string> ListMarkdownFiles(string dataDirectory);
|
|
string ReadFile(string filePath);
|
|
void WriteFile(string filePath, string content);
|
|
void AppendFile(string filePath, string content);
|
|
bool FileExists(string filePath);
|
|
string GetFullPath(string filePath);
|
|
string GetFileName(string filePath);
|
|
string GetFileNameWithoutExtension(string filePath);
|
|
void EnsureDirectory(string path);
|
|
void DeleteFile(string filePath);
|
|
}
|