view data fixes

This commit is contained in:
2026-01-23 15:30:23 +01:00
parent e22033be38
commit f8099f04bc
213 changed files with 3466 additions and 3003 deletions

View File

@@ -1,18 +1,13 @@
import type { RecordEngagementOutputDTO } from '@/lib/types/generated/RecordEngagementOutputDTO';
/**
* Record engagement output view model
* Represents the result of recording an engagement event for UI consumption
*/
import { ViewModel } from "../contracts/view-models/ViewModel";
export class RecordEngagementOutputViewModel extends ViewModel {
eventId: string;
engagementWeight: number;
constructor(dto: RecordEngagementOutputDTO) {
this.eventId = dto.eventId;
this.engagementWeight = dto.engagementWeight;
constructor(eventId: string, engagementWeight: number) {
super();
this.eventId = eventId;
this.engagementWeight = engagementWeight;
}
/** UI-specific: Formatted event ID for display */