c41e5063b7
Removed entire kbx-foundation-v36 directory as it's been replaced by the new KBX Foundation v4 patterns implemented in this session: - Registry-driven screen definitions - Density-aware UI adapter components - Feature module templates (ShadowRun, Models) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
13 lines
625 B
C#
13 lines
625 B
C#
using FastEndpoints;using Kbx.Shared.Telemetry;
|
|
namespace Kbx.Modules.Common.UxTelemetry.Metrics;
|
|
public sealed record Request(DateOnly From,DateOnly To,string? ScreenId);
|
|
public sealed class Endpoint(KbxUxMetricsQuery query):Endpoint<Request,KbxUxMetricsResponse>
|
|
{
|
|
public override void Configure(){Get("/api/kbx/ux/metrics");Permissions("common.ux.read");}
|
|
public override async Task HandleAsync(Request req,CancellationToken ct)
|
|
{
|
|
var tenantId=Kbx.Shared.Runtime.RuntimeIdentity.TenantId(User);
|
|
await Send.OkAsync(await query.ExecuteAsync(tenantId,req.From,req.To,req.ScreenId,ct),ct);
|
|
}
|
|
}
|