feat(dashboard): expose youParticipated in ActivityFeedItemDTO

Add youParticipated field to the DTO record and wire row.isYouParticipated()
through DashboardService.getActivity().

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Marcel
2026-04-20 21:30:54 +02:00
parent 64058cafc4
commit 9dd0dbdaca
2 changed files with 2 additions and 0 deletions

View File

@@ -15,6 +15,7 @@ public record ActivityFeedItemDTO(
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) String documentTitle, @Schema(requiredMode = Schema.RequiredMode.REQUIRED) String documentTitle,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) OffsetDateTime happenedAt, @Schema(requiredMode = Schema.RequiredMode.REQUIRED) OffsetDateTime happenedAt,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) boolean youMentioned, @Schema(requiredMode = Schema.RequiredMode.REQUIRED) boolean youMentioned,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) boolean youParticipated,
@Schema(requiredMode = Schema.RequiredMode.REQUIRED) int count, @Schema(requiredMode = Schema.RequiredMode.REQUIRED) int count,
@Nullable OffsetDateTime happenedAtUntil @Nullable OffsetDateTime happenedAtUntil
) {} ) {}

View File

@@ -140,6 +140,7 @@ public class DashboardService {
docTitle, docTitle,
row.getHappenedAt().atOffset(ZoneOffset.UTC), row.getHappenedAt().atOffset(ZoneOffset.UTC),
row.isYouMentioned(), row.isYouMentioned(),
row.isYouParticipated(),
row.getCount(), row.getCount(),
happenedAtUntil happenedAtUntil
); );