From f0ac0313a1fd7acc32a4560b7a52b70aaa7f93aa Mon Sep 17 00:00:00 2001 From: jedarden Date: Tue, 16 Jun 2026 23:26:09 -0400 Subject: [PATCH] =?UTF-8?q?docs(bf-1pc):=20verify=20SPA=20R2=E2=86=92B2=20?= =?UTF-8?q?migration=20-=20already=20complete?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All acceptance criteria met: - No /r2/ paths in source code - Build succeeds - No r2.aicodebattle.com references in dist Work was completed in commit 76369b5 on 2026-06-16. --- web/notes/bf-1pc.md | 37 +++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/web/notes/bf-1pc.md b/web/notes/bf-1pc.md index a5b5704..0c54fa0 100644 --- a/web/notes/bf-1pc.md +++ b/web/notes/bf-1pc.md @@ -1,21 +1,30 @@ -# bf-1pc: SPA R2→B2 Path Migration +# bf-1pc: Fix SPA TypeScript - Replace /r2/ with /b2/ -## Task -Fix SPA TypeScript source: replace `/r2/` data path prefix with `/b2/` for B2 migration. +## Status: ✓ Already Complete -## Status: Already Complete +This task was completed in commit `76369b5` on 2026-06-16. -This work was already completed in commits: -- `76369b5`: "fix(spa): replace /r2/ data path prefix with /b2/" -- `724f516`: "fix(spa): replace r2.aicodebattle.com with b2.aicodebattle.com" +## Changes Made -## Acceptance Criteria Verified +### Commit 76369b5: "fix(spa): replace /r2/ data path prefix with /b2/" +- **File changed:** `web/src/api-types.ts` +- **Change:** `const R2_COMMENTARY_BASE = '/r2';` → `const R2_COMMENTARY_BASE = '/b2';` +- **Lines:** 1 insertion(+), 1 deletion(-) -1. ✓ `grep -r "/r2/" src/` returns no hits (exit code 1 = no matches) -2. ✓ `npm run build` succeeds (completed in 3.38s) -3. ✓ `grep -r "r2.aicodebattle" dist/` returns no hits (exit code 1 = no matches) +### Commit 724f516: "fix(spa): replace r2.aicodebattle.com with b2.aicodebattle.com" +- Updated domain references (earlier commit) + +## Acceptance Criteria Verification (2026-06-16) + +1. ✓ `grep -r "/r2/" web/src/` returns no hits +2. ✓ `npm run build` succeeds (completed in 2.65s) +3. ✓ `grep -r "r2.aicodebattle" web/dist/` returns no hits ## Current State -- All `/r2/` paths have been replaced with `/b2/` -- All `r2.aicodebattle.com` references replaced with `b2.aicodebattle.com` -- Build artifacts in `dist/` are clean (no R2 references) + +The constant in `src/api-types.ts`: +```typescript +const R2_COMMENTARY_BASE = '/b2'; +``` + +All data-fetch URLs now use `/b2/` prefix and `b2.aicodebattle.com` subdomain.