Skip to content

Commit 36c5774

Browse files
Ripwordsclaude
andcommitted
feat(dashboard): populate source and devicePlatform in report DTOs
Add source and devicePlatform fields to both ReportSummaryDTO construction sites: the detail endpoint and the list endpoint. Both fields are now selected from the reports table and included in the DTO responses, with devicePlatform coalesced to null for backward compatibility. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent f98d672 commit 36c5774

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.plan-progress/b2-dashboard-consumers.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

apps/dashboard/server/api/projects/[id]/reports/[reportId]/index.get.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ export default defineEventHandler(async (event): Promise<ReportSummaryDTO> => {
3030
status: reports.status,
3131
priority: reports.priority,
3232
tags: reports.tags,
33+
source: reports.source,
34+
devicePlatform: reports.devicePlatform,
3335
assigneeId: reports.assigneeId,
3436
assigneeName: userTable.name,
3537
assigneeEmail: userTable.email,
@@ -85,6 +87,8 @@ export default defineEventHandler(async (event): Promise<ReportSummaryDTO> => {
8587
status: row.status,
8688
priority: row.priority,
8789
tags: row.tags,
90+
source: row.source,
91+
devicePlatform: row.devicePlatform ?? null,
8892
githubIssueNumber: row.githubIssueNumber ?? null,
8993
githubIssueUrl: row.githubIssueUrl ?? null,
9094
assignee,

apps/dashboard/server/api/projects/[id]/reports/index.get.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ export default defineEventHandler(async (event) => {
8383
status: reports.status,
8484
priority: reports.priority,
8585
tags: reports.tags,
86+
source: reports.source,
87+
devicePlatform: reports.devicePlatform,
8688
assigneeId: reports.assigneeId,
8789
assigneeName: userTable.name,
8890
assigneeEmail: userTable.email,
@@ -166,6 +168,8 @@ export default defineEventHandler(async (event) => {
166168
status: r.status,
167169
priority: r.priority,
168170
tags: r.tags,
171+
source: r.source,
172+
devicePlatform: r.devicePlatform ?? null,
169173
githubIssueNumber: r.githubIssueNumber ?? null,
170174
githubIssueUrl: r.githubIssueUrl ?? null,
171175
assignee,

0 commit comments

Comments
 (0)