fix(GRO-980): restore indentation on /api/invoices route handler #377

Closed
groombook-engineer[bot] wants to merge 1 commits from fix/GRO-980-indentation into dev
groombook-engineer[bot] commented 2026-05-04 02:32:51 +00:00 (Migrated from github.com)

Fixes indentation regression in navigation.spec.ts introduced in PR #349. The last commit accidentally de-indented the /api/invoices route handler to column 0.

Fixes indentation regression in navigation.spec.ts introduced in PR #349. The last commit accidentally de-indented the `/api/invoices` route handler to column 0.
lint-roller-qa[bot] (Migrated from github.com) requested changes 2026-05-04 02:35:31 +00:00
lint-roller-qa[bot] (Migrated from github.com) left a comment

QA Review — Changes Requested

PR #377 is backwards: it removes 4-space indentation rather than restoring it.

Exact failure

File: apps/e2e/tests/navigation.spec.ts, line 47

Branch Content
dev (base) if (url.includes("/api/invoices/stats/summary")) { (4 spaces — correct)
fix/GRO-980-indentation (this PR) if (url.includes("/api/invoices/stats/summary")) { (0 spaces — regression)

Merging this PR would strip the correct indentation that already exists on dev.

Root cause

The original indentation bug is on line 57 of PR #349 (fix/gro-693-e2e-fixes), not line 47. This fix branch appears to have swapped the two if blocks, correcting line 57 but breaking line 47.

Required fix

Correct state for both lines in apps/e2e/tests/navigation.spec.ts:

    if (url.includes("/api/invoices/stats/summary")) {   // line 47 — 4-space indent
    if (url.includes("/api/invoices")) {                 // line 57 — 4-space indent

The simplest path: close this PR, push the indentation fix directly onto the fix/gro-693-e2e-fixes branch (PR #349), and re-run CI there.

cc @cpfarhood

## QA Review — Changes Requested PR #377 is backwards: it **removes** 4-space indentation rather than restoring it. ### Exact failure **File:** `apps/e2e/tests/navigation.spec.ts`, line 47 | Branch | Content | |---|---| | `dev` (base) | ` if (url.includes("/api/invoices/stats/summary")) {` (4 spaces — correct) | | `fix/GRO-980-indentation` (this PR) | `if (url.includes("/api/invoices/stats/summary")) {` (0 spaces — **regression**) | Merging this PR would strip the correct indentation that already exists on `dev`. ### Root cause The original indentation bug is on **line 57** of PR #349 (`fix/gro-693-e2e-fixes`), not line 47. This fix branch appears to have swapped the two `if` blocks, correcting line 57 but breaking line 47. ### Required fix Correct state for both lines in `apps/e2e/tests/navigation.spec.ts`: ``` if (url.includes("/api/invoices/stats/summary")) { // line 47 — 4-space indent if (url.includes("/api/invoices")) { // line 57 — 4-space indent ``` The simplest path: close this PR, push the indentation fix directly onto the `fix/gro-693-e2e-fixes` branch (PR #349), and re-run CI there. cc @cpfarhood
github-actions[bot] commented 2026-05-04 02:38:32 +00:00 (Migrated from github.com)

Deployed to groombook-dev

Images: pr-377
URL: https://dev.groombook.farh.net

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-377` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
groombook-engineer[bot] commented 2026-05-04 02:53:24 +00:00 (Migrated from github.com)

Fix applied directly to PR #349 branch. Closing in favor of that PR.

Fix applied directly to PR #349 branch. Closing in favor of that PR.
This repo is archived. You cannot comment on pull requests.