The editor was reachable from one button that only appeared in My Day, which is how it got forgotten. It is now a permanent sidebar entry next to My Day and Planned, and it fills the tasks island rather than the details pane, because a note list is content. Inside, the date picker is gone: today sits at the top with the capture box, older days follow as dated groups. Enter in a note saves it and opens the next one, Shift+Enter breaks the line so notes can be several, Backspace on an empty note deletes it and steps back up. Deleting also has a visible hover button instead of only "clear the text and hope". Agent-written notes carry a marker. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
15 lines
745 B
C#
15 lines
745 B
C#
using ClaudeDo.Ui.Services.Interfaces;
|
|
|
|
namespace ClaudeDo.Ui.Services;
|
|
|
|
public sealed class WorkerNotesApi : INotesApi
|
|
{
|
|
private readonly IWorkerClient _client;
|
|
public WorkerNotesApi(IWorkerClient client) => _client = client;
|
|
public Task<List<DailyNoteDto>> ListAsync(DateOnly day) => _client.GetDailyNotesAsync(day);
|
|
public Task<List<DailyNoteDto>> ListBetweenAsync(DateOnly start, DateOnly end) => _client.GetDailyNotesBetweenAsync(start, end);
|
|
public Task<DailyNoteDto?> AddAsync(DateOnly day, string text) => _client.AddDailyNoteAsync(day, text);
|
|
public Task UpdateAsync(string id, string text) => _client.UpdateDailyNoteAsync(id, text);
|
|
public Task DeleteAsync(string id) => _client.DeleteDailyNoteAsync(id);
|
|
}
|