Skip to content

fix(AF-566): open API request detail from the API Reviews queue#575

Merged
babltiga merged 1 commit into
mainfrom
fix/AF-566-api-review-queue-detail-link
Jul 3, 2026
Merged

fix(AF-566): open API request detail from the API Reviews queue#575
babltiga merged 1 commit into
mainfrom
fix/AF-566-api-review-queue-detail-link

Conversation

@babltiga

@babltiga babltiga commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What

Reviewers had no way to view an API request from the API Reviews page — the queue offered only blind Approve/Reject buttons. Rows on /api-reviews are now clickable and navigate to the request detail page (/api-requests/{id}), where the reviewer sees the full request context (verb, path, justification, AI summary/risk, decisions) plus the inline Approve/Reject decision block.

Why

Follow-up to #571 (AF-566), which fixed the backend so non-admin reviewers can fetch any API request detail — but the frontend never got the navigation affordance, so the detail page remained unreachable from the review queue.

How

  • ApiReviewQueuePage: added an onRow click handler (pointer cursor) navigating to the detail page, mirroring the SQL ReviewQueuePage pattern. The Approve/Reject buttons now call e.stopPropagation() so they keep opening the decision modal in place without triggering navigation.
  • New Playwright spec in e2e/tests/api-request-review.spec.ts: a reviewer opens /api-reviews, clicks a pending row, lands on /api-requests/{id}, and sees the Approve/Reject block.

Verification

  • eslint + tsc -b --noEmit clean on the frontend.
  • Full e2e stack (docker-compose.e2e.yml): api-request-review.spec.ts 3/3 passed (including the new spec), and the api-governance filter-bar spec (the other consumer of /api-reviews) still passes.

Note: cd e2e && npm run typecheck fails on clean main with a pre-existing null-safety error in query-list.spec.ts — unrelated to this change, will be fixed separately.

The API Reviews queue offered only blind Approve/Reject buttons — a
reviewer had no way to inspect the request before deciding. Rows now
navigate to /api-requests/{id} on click (same pattern as the SQL
review queue); the decision buttons stop propagation so they still
open the comment modal in place. Covered by a new Playwright spec.
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Frontend Test Results

1 133 tests   1 133 ✅  2m 53s ⏱️
  153 suites      0 💤
    1 files        0 ❌

Results for commit ebcd224.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Coverage Report for Frontend Coverage (frontend)

Status Category Percentage Covered / Total
🔵 Lines 94.18% (🎯 90%) 1994 / 2117
🔵 Statements 92.12% (🎯 90%) 2222 / 2412
🔵 Functions 91.47% (🎯 90%) 601 / 657
🔵 Branches 83.69% (🎯 80%) 1247 / 1490
File CoverageNo changed files found.
Generated in workflow #727 for commit ebcd224 by the Vitest Coverage Report Action

@babltiga babltiga merged commit 246690b into main Jul 3, 2026
14 checks passed
@babltiga babltiga deleted the fix/AF-566-api-review-queue-detail-link branch July 3, 2026 11:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant