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:
@@ -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
|
||||||
) {}
|
) {}
|
||||||
|
|||||||
@@ -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
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user