chore: initial commit of TaskTracker project
Existing ASP.NET API with vanilla JS SPA, WindowWatcher, Chrome extension, and MCP server. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
13
TaskTracker.Core/Interfaces/IAppMappingRepository.cs
Normal file
13
TaskTracker.Core/Interfaces/IAppMappingRepository.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using TaskTracker.Core.Entities;
|
||||
|
||||
namespace TaskTracker.Core.Interfaces;
|
||||
|
||||
public interface IAppMappingRepository
|
||||
{
|
||||
Task<List<AppMapping>> GetAllAsync();
|
||||
Task<AppMapping?> GetByIdAsync(int id);
|
||||
Task<AppMapping> CreateAsync(AppMapping mapping);
|
||||
Task UpdateAsync(AppMapping mapping);
|
||||
Task DeleteAsync(int id);
|
||||
Task<AppMapping?> FindMatchAsync(string appName, string windowTitle, string? url);
|
||||
}
|
||||
10
TaskTracker.Core/Interfaces/IContextEventRepository.cs
Normal file
10
TaskTracker.Core/Interfaces/IContextEventRepository.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using TaskTracker.Core.Entities;
|
||||
|
||||
namespace TaskTracker.Core.Interfaces;
|
||||
|
||||
public interface IContextEventRepository
|
||||
{
|
||||
Task<ContextEvent> CreateAsync(ContextEvent contextEvent);
|
||||
Task<List<ContextEvent>> GetRecentAsync(int minutes = 30);
|
||||
Task<List<ContextEvent>> GetByTaskIdAsync(int taskId);
|
||||
}
|
||||
15
TaskTracker.Core/Interfaces/ITaskRepository.cs
Normal file
15
TaskTracker.Core/Interfaces/ITaskRepository.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using TaskTracker.Core.Entities;
|
||||
using TaskTracker.Core.Enums;
|
||||
|
||||
namespace TaskTracker.Core.Interfaces;
|
||||
|
||||
public interface ITaskRepository
|
||||
{
|
||||
Task<List<WorkTask>> GetAllAsync(WorkTaskStatus? status = null, int? parentId = null, bool includeSubTasks = false);
|
||||
Task<WorkTask?> GetByIdAsync(int id);
|
||||
Task<WorkTask?> GetActiveTaskAsync();
|
||||
Task<List<WorkTask>> GetSubTasksAsync(int parentId);
|
||||
Task<WorkTask> CreateAsync(WorkTask task);
|
||||
Task UpdateAsync(WorkTask task);
|
||||
Task DeleteAsync(int id);
|
||||
}
|
||||
Reference in New Issue
Block a user