Skip to content

Problem Report Triage Verification

Date: 2026-06-25

Scope: EP7-T2, admin problem report triage.

Result

EP7-T2 is verified on integration.

Support can list problem reports, filter by status, open detail, see reporter/topic/created/status, view the attached photo asset, download the report photo through a report-scoped endpoint, and persist status changes from web-admin.

Backend Changes

  • Added report-scoped admin photo download:
  • GET /v1/admin/problem-reports/{reportId}/photo
  • Exposed photoAssetId on admin problem report detail responses only.
  • Kept broad admin asset reveal removed. POST /v1/admin/assets/{assetId}/reveal remains disabled.
  • Regenerated openapi.json.

Web-Admin Changes

  • Added downloadProblemReportPhoto API helper.
  • Added problem report detail attachment section.
  • Added Open photo action using bearer-auth fetch and a browser object URL.
  • Updated tests for attachment display and download behavior.

Verification

Local backend:

  • mvn -q -Dtest=ProblemReportsIntegrationTest#adminCanListViewUpdateStatusAndDownloadReportPhoto -Djacoco.skip=true test
  • mvn -q -Dtest=ProblemReportsIntegrationTest,AdminPrivacyRevealIntegrationTest -Djacoco.skip=true test
  • mvn -q test

Local web-admin:

  • pnpm test -- src/__tests__/api.test.ts src/__tests__/App.test.tsx
  • pnpm test
  • pnpm build

Integration pipelines:

  • Backend integration commit 3fade7c, pipeline 2628402576: success.
  • Web-admin integration commit 96e0ea9, pipeline 2628402534: success.

Integration smoke:

  • Created disposable admin and tenant Cognito users.
  • Added tenant email to the access allowlist.
  • Initialized tenant, accepted legal documents, uploaded a private photo asset, and submitted a problem report.
  • Confirmed admin API list/detail/photo download:
  • GET /v1/admin/problem-reports?status=OPEN&page=0&size=20 returned the test report.
  • GET /v1/admin/problem-reports/{reportId} returned message and photoAssetId.
  • GET /v1/admin/problem-reports/{reportId}/photo returned 200 with X-Content-Type-Options: nosniff.
  • Verified in https://admin-integration.mamnajem.pl/#problem-reports with agent-browser:
  • Open filter showed the submitted report.
  • Detail opened and displayed message, reporter, topic, created date, status, and photo asset ID.
  • Open photo fetched /v1/admin/problem-reports/{reportId}/photo with status 200.
  • Status update to IN_PROGRESS sent PATCH /v1/admin/problem-reports/{reportId}/status with status 200.
  • In-progress filter sent GET /v1/admin/problem-reports?status=IN_PROGRESS&page=0&size=20 and included the test report.
  • Final status update to RESOLVED persisted; resolved filter returned the test report as RESOLVED.
  • Revoked the disposable allowlist entry and deleted disposable Cognito users.

Notes

The smoke report remains resolved in integration as evidence. The disposable user-pool accounts were deleted.