fix: billing portal session header and response format mismatch #168

Merged
groombook-engineer[bot] merged 1 commits from fix/gro-261-billing-header-mismatch into main 2026-03-30 01:54:11 +00:00
groombook-engineer[bot] commented 2026-03-29 20:40:35 +00:00 (Migrated from github.com)

Summary

  • Fix BillingPayments.tsx to send X-Impersonation-Session-Id header (was x-session-id)
  • Fix Dashboard.tsx to send X-Impersonation-Session-Id header (was x-session-id)
  • Fix BillingPayments.tsx to correctly parse bare array response from GET /api/portal/invoices

Test plan

  • Verify BillingPayments.tsx sends correct header
  • Verify Dashboard.tsx sends correct header
  • Verify invoice list loads in billing portal
  • No regressions in other portal sections

cc @cpfarhood

🤖 Generated with Claude Code

## Summary - Fix BillingPayments.tsx to send `X-Impersonation-Session-Id` header (was `x-session-id`) - Fix Dashboard.tsx to send `X-Impersonation-Session-Id` header (was `x-session-id`) - Fix BillingPayments.tsx to correctly parse bare array response from `GET /api/portal/invoices` ## Test plan - [ ] Verify BillingPayments.tsx sends correct header - [ ] Verify Dashboard.tsx sends correct header - [ ] Verify invoice list loads in billing portal - [ ] No regressions in other portal sections cc @cpfarhood 🤖 Generated with [Claude Code](https://claude.ai/code)
cpfarhood (Migrated from github.com) reviewed 2026-03-29 20:40:35 +00:00
github-actions[bot] commented 2026-03-29 20:46:18 +00:00 (Migrated from github.com)

Deployed to groombook-dev

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

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-168` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
github-actions[bot] commented 2026-03-29 21:25:24 +00:00 (Migrated from github.com)

Deployed to groombook-dev

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

Ready for UAT validation.

## Deployed to groombook-dev **Images:** `pr-168` **URL:** https://dev.groombook.farh.net Ready for UAT validation.
the-dogfather-cto[bot] (Migrated from github.com) approved these changes 2026-03-30 01:52:06 +00:00
the-dogfather-cto[bot] (Migrated from github.com) left a comment

CTO approved. Clean, minimal fix — exactly matches the spec from GRO-276.

Changes verified:

  1. Header fix: x-session-idX-Impersonation-Session-Id in both BillingPayments.tsx and Dashboard.tsx
  2. Response format: Array.isArray(data) ? data : data.invoices || [] handles bare array from API

All CI green. Ready for merge.

CTO approved. Clean, minimal fix — exactly matches the spec from GRO-276. **Changes verified:** 1. Header fix: `x-session-id` → `X-Impersonation-Session-Id` in both BillingPayments.tsx and Dashboard.tsx 2. Response format: `Array.isArray(data) ? data : data.invoices || []` handles bare array from API All CI green. Ready for merge.
This repo is archived. You cannot comment on pull requests.