e4091eee80
- Backend: NEW AdminController with user CRUD (GET/POST/DELETE /api/v1/admin/users)
- Backend: NEW GET /api/dashboard/tasks/{id} single task endpoint
- Backend: NEW POST /api/dashboard/tasks/{id}/activity comment endpoint
- Backend: IUserRepository + UserRepository extended with GetAllAsync, DeleteAsync
- Backend: Admin DTOs (AdminUserInfo, AdminCreateUserRequest, AdminUpdateRoleRequest)
- Frontend: NEW TaskDetailView.vue — URL-based (/tasks/:id) Galaxy-themed task detail
with subtask create/edit/delete, activity with comments, property sidebar
- Frontend: LoginView.vue — полностью Galaxy theme redesign with GalaxyBackground,
glass-morphism card, password toggle, consistent brand
- Frontend: SettingsView.vue — Galaxy theme redesign with glass cards,
admin user management section (create/list users, visible only to owner role)
- Frontend: TaskBoardView.vue — added "Full View" link to URL-based detail page
- Frontend: Router — added /tasks/:id route for TaskDetailView
- Frontend: App.vue — added TaskDetail to standaloneViews whitelist
- Frontend: tasks store — stable
Auth: Admin creates accounts, users log in with existing /api/v1/auth/login.
Login/Settings deliver visible Galaxy-consistent design with nexus-tokens.css tokens.
158 lines
3.0 KiB
C#
158 lines
3.0 KiB
C#
namespace Nexus.Api.Models;
|
|
|
|
public sealed record DashboardAgentInfo(
|
|
string Id,
|
|
string Name,
|
|
string Role,
|
|
string Model,
|
|
bool IsActive,
|
|
string? CurrentTask,
|
|
string? Description,
|
|
string[] Tags,
|
|
int Progress = 0,
|
|
int Workload = 0,
|
|
string? Goal = null,
|
|
string RoleBadge = "badge-slate",
|
|
string StatusLabel = "Bereit",
|
|
string? Elapsed = null,
|
|
string? Think = null,
|
|
string? Next = null
|
|
);
|
|
|
|
public sealed record MessageEntry(
|
|
string Role,
|
|
string Content,
|
|
string Timestamp
|
|
);
|
|
|
|
public sealed record ChatRequest(
|
|
string Message,
|
|
string? AgentId
|
|
);
|
|
|
|
public sealed record ChatResponse(
|
|
bool Ok,
|
|
string? Reply,
|
|
string? Error
|
|
);
|
|
|
|
public sealed record FeedEntry(
|
|
string Agent,
|
|
string Action,
|
|
string Timestamp,
|
|
string Time,
|
|
string? AgentId = null,
|
|
string? Type = null
|
|
);
|
|
|
|
public sealed record DashboardStatus(
|
|
bool GatewayOk,
|
|
string IrisStatus,
|
|
int ActiveAgents,
|
|
int PendingTasks
|
|
);
|
|
|
|
public sealed record QueueItem(
|
|
string Id,
|
|
string Name,
|
|
string Status,
|
|
string Priority,
|
|
string Source,
|
|
string WaitTime
|
|
);
|
|
|
|
public sealed record AgentModelInfo(
|
|
string Model,
|
|
string Provider
|
|
);
|
|
|
|
public sealed record SetModelRequest(
|
|
string Model
|
|
);
|
|
|
|
public sealed record ModelOption(
|
|
string Id,
|
|
string Name,
|
|
string Provider
|
|
);
|
|
|
|
// ── Dashboard Task DTOs ──
|
|
|
|
public sealed record DashboardTaskDto(
|
|
Guid Id,
|
|
string Title,
|
|
string? Detail,
|
|
string Source,
|
|
string State,
|
|
string Priority,
|
|
string? AssignedTo,
|
|
Guid? ParentTaskId,
|
|
DateTimeOffset? DueDate,
|
|
DateTimeOffset CreatedAt,
|
|
DateTimeOffset UpdatedAt
|
|
);
|
|
|
|
public sealed record CreateDashboardTaskRequest(
|
|
string Title,
|
|
string? Detail,
|
|
string? Source,
|
|
string? Priority,
|
|
string? AssignedTo,
|
|
Guid? ParentTaskId = null
|
|
);
|
|
|
|
public sealed record UpdateDashboardTaskRequest(
|
|
string? Title,
|
|
string? Detail,
|
|
string? Source,
|
|
string? Priority,
|
|
string? AssignedTo,
|
|
DateTimeOffset? DueDate = null
|
|
);
|
|
|
|
public sealed record UpdateDashboardTaskStatusRequest(
|
|
string Status
|
|
);
|
|
|
|
public sealed record AgentActivityEntry(
|
|
string Time,
|
|
string Text
|
|
);
|
|
|
|
// ── Task Board DTOs ──
|
|
|
|
public sealed record TaskBoardResponse(
|
|
List<DashboardTaskDto> Offen,
|
|
List<DashboardTaskDto> InProgress,
|
|
List<DashboardTaskDto> Delegated,
|
|
List<DashboardTaskDto> Review,
|
|
List<DashboardTaskDto> Blocked,
|
|
List<DashboardTaskDto> Done
|
|
);
|
|
|
|
public sealed record MoveTaskRequest(
|
|
string State
|
|
);
|
|
|
|
public sealed record ResetStaleRequest(
|
|
int StaleHours = 2
|
|
);
|
|
|
|
public sealed record ResetStaleResponse(
|
|
int ResetCount
|
|
);
|
|
|
|
public sealed record PostActivityRequest(
|
|
string Message,
|
|
string? Type = null
|
|
);
|
|
|
|
// ── Notification DTOs ──
|
|
|
|
public sealed record NotificationDto(
|
|
Guid Id, string Type, string Title, string? Message,
|
|
string ForUser, Guid? TaskId, bool IsRead, DateTimeOffset CreatedAt
|
|
);
|
|
|
|
public sealed record UnreadCountDto(int Count);
|