toga-ai 1.0.352 → 1.0.353

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,71 @@
1
+ ---
2
+ type: session
3
+ slug: bdr-build
4
+ title: BDR web funnel — first design-review adjustments (font, AutoBuild art, PLAN §9 items)
5
+ author: tcox
6
+ repos: [bdr, ai-bdr]
7
+ framework: "2.0"
8
+ client: shared
9
+ status: active
10
+ created: 2026-07-15
11
+ updated: 2026-07-15
12
+ ---
13
+
14
+ # Session: bdr-build
15
+ **Date:** 2026-07-15
16
+ **Project/Repo:** bdr (2.0) — local `C:\WWW\BDR`, GitHub `agilantsolutions/BDR`, branch `BDR-Development`
17
+ **Task:** Apply the first UI design-review adjustments to the BDR web funnel (post Phases 0-5): site font, AutoBuild agent art, and triage of Privacy/Terms, share button, connect-time, and timezone items.
18
+
19
+ ---
20
+
21
+ ## What WORKED
22
+ - **Site-wide font fixed (root cause found).** The mockup loaded Plus Jakarta Sans via a Google Fonts `<link>` in its `<head>` that was never ported — `studio.css` named the font but nothing loaded it, so the whole site silently fell back to `system-ui`. Fix: `next/font/google` `Plus_Jakarta_Sans` (weights 400/500/600/700/800, `display:swap`, self-hosted at build) exposed as `--font-jakarta` on `<html>` in `src/app/layout.tsx`; `studio.css` `--font-display`/`--font-body` now resolve `var(--font-jakarta)` first with the original stack as fallback. No `font-weight` rules touched. Evidence: tsc clean, eslint clean, `next build` succeeded with 4 `.woff2` bundled into `.next/static/media`, 67/67 vitest green.
23
+ - **AutoBuild flourish agents restored.** "Build my agent for me" showed only the final agent (Alex/human-02); Athena (owl-02) and Cogsworth (robot-02) rendered blank. Root cause: Phase 2 asset pruning (§5.8) kept only the campaign agent's art, but AutoBuild's FLOURISH cycle needs `Owl 1`/`Robot 1` art + talk videos — and the preloader tolerates missing files silently (resolves false, never blocks), masking the gap. Fix: copied `owl-02.png`, `owl-02-talk.mp4`, `robot-02.png`, `robot-02-talk.mp4` (~5.6MB) from `mockup/agents/` to `public/agents/`. No code change needed (asset resolver is a plain `/` prefix).
24
+ - **PLAN.md §9 extended with three design-review decisions** (§9.11 Privacy/Terms dead links — need real pages or togatech links; §9.12 share button is mock — needs email-send route + real call pipeline; §9.13 "Avg. connect time ~7 seconds" is curated bundle copy, never a computed metric anywhere — keep campaign-editable for launch).
25
+ - **Timezone request closed as already-done.** Schedule screen's tz IS calculated: `detectLocalTz()` in `src/lib/scheduleSlots.ts` (Intl short name) renders "All times in <tz>" + confirmation label; backend converts the picked slot to America/Chicago for Toga (`src/server/toga.ts`). Told design team; nothing built.
26
+ - **/capture published to team KB (PUSHED).** `web-funnel-app.md` updated (font-port gotcha, flourish-asset gotcha + corrected stale ~6.2MB prune note, Schedule-tz runtime fact) and `bdr-web-funnel-plan.md` §9 mirror updated with 9.11-9.13.
27
+
28
+ ## What did NOT work — DO NOT RETRY THESE
29
+ - *(Nothing failed this session. The list below is CARRIED FORWARD from the 2026-07-14 session — still valid, do not retry.)*
30
+ - **`sed`/`perl` in-place replacement of literal `\n` escapes through the Bash tool fails silently** (escaping mangled through the Windows Git Bash wrapper). Use the Edit tool with exact old/new strings. `mockup/styles.css` lines ~759/840 still contain the broken `\n`/`\"` artifacts on purpose; the fixed copy is `src/app/studio.css` — never re-copy those lines from the mockup.
31
+ - **`pkill` does not kill Windows processes from Git Bash** — a stale `next start` keeps port 3000 and serves an old build. Kill via PowerShell `Get-NetTCPConnection -LocalPort 3000` + `Stop-Process`, or `taskkill //PID <pid> //F`.
32
+ - **Bash tool cwd resets to `c:\WWW` between some calls** — `npm run <script>` then fails with "Missing script". Always `cd /c/WWW/BDR &&` first.
33
+ - **Pre-commit path scan regex missing `c:\WWW\...` single-backslash paths** — scan `[A-Za-z]:[\\/]` case-insensitively.
34
+ - **Letting ESLint lint `mockup/**`** — reference prototype, belongs in globalIgnores (already configured).
35
+ - **CLI push without GCM sign-in** — permanently resolved via `credential.helper manager`; do not fall back to GitHub Desktop.
36
+
37
+ ## Not tried yet (candidates for next session)
38
+ - **Commit this session's working-tree changes** to `BDR-Development` (font wiring, 4 restored assets, PLAN.md §9.11-9.13) — developer has not asked for the commit yet.
39
+ - **Remaining design-review items** — the team's list was being worked through interactively; more items may be pending beyond the 5 handled.
40
+ - **Privacy/Terms destinations** — decide mock-up pages vs. links to togatech pages, then 2-line content change in `src/content/default.ts` (schema already supports `[label](href)`; HubSpot can override per campaign).
41
+ - **Verify design team's tz observation** — if someone saw "CST" in July or a raw "GMT-5", that's a browser-specific quirk worth chasing (ask what value + which browser).
42
+ - **§9.10 HubSpot content-modeling decision** (gates Phase 6: hubspotProvider + campaign seeding), then Phase 6 second campaign, Phase 7 pixel-parity/GA4/accessibility, Phase 8 Amplify deploy.
43
+ - Success screen consuming `submitOk` (exposed by useAgentFlow, not surfaced in UI).
44
+
45
+ ## Current file state
46
+ | File | Status | Notes |
47
+ |------|--------|-------|
48
+ | `src/app/layout.tsx` | MODIFIED, uncommitted | next/font Plus Jakarta Sans, `--font-jakarta` variable on `<html>` |
49
+ | `src/app/studio.css` | MODIFIED, uncommitted | `--font-display`/`--font-body` resolve `var(--font-jakarta)` first |
50
+ | `public/agents/owl-02.png`, `owl-02-talk.mp4`, `robot-02.png`, `robot-02-talk.mp4` | ADDED, uncommitted | ~5.6MB, copied from `mockup/agents/` for AutoBuild flourish |
51
+ | `PLAN.md` | MODIFIED, uncommitted | §9.11 Privacy/Terms, §9.12 share mock, §9.13 connect-time copy |
52
+ | Repo otherwise | clean at `34a3910` on `BDR-Development` | Phases 0-5 committed previously; no PR yet |
53
+ | Team KB (`toga-tech`) | PUSHED | `web-funnel-app.md` + `bdr-web-funnel-plan.md` updated via /capture |
54
+
55
+ ## Decisions made
56
+ - **`next/font/google` over re-adding the mockup's Google Fonts `<link>`** — self-hosted at build (no runtime Google request, no FOUT), Next-idiomatic. Rejected: runtime `<link>` (external request, CSP/perf) and `next/font/local` (only needed if build-time font download is blocked; it wasn't).
57
+ - **Restore only the 4 flourish assets, not the full 54-file agent library** — AutoBuild needs exactly Owl 1 + Robot 1; keeps the §5.8 size discipline while unbreaking a shipped screen.
58
+ - **Connect time stays curated campaign copy for launch** — a live metric needs a definition, a Vapi/Toga call-record source, periodic computation, and enough call volume to be stable; small early samples are noisy. Rejected: wiring a live query now.
59
+ - **Privacy/Terms and share-button work deferred to PLAN §9** rather than built speculatively — both need decisions from outside engineering (legal/marketing URLs; real call pipeline).
60
+
61
+ ## Blockers
62
+ - **§9.10 HubSpot content mechanism undecided** — still gates Phase 6 (owner: HubSpot instance owner).
63
+ - **Privacy/Terms destination URLs** — need legal/marketing decision (mock pages vs. togatech links).
64
+ - **First-campaign direction/copy from leadership** still pending.
65
+ - **Real-call testing env values** (HUBSPOT_ACCESS_TOKEN + 4 TOGA_* vars) — deliberate action, hits live Toga.
66
+
67
+ ## Exact next step
68
+ > Commit the session's working-tree changes in `C:\WWW\BDR` to `BDR-Development` as two commits: `fix: load Plus Jakarta Sans via next/font` (layout.tsx + studio.css) and `fix: restore autobuild flourish agent assets` (public/agents/ + PLAN.md), then continue the design-review punch list with the team.
69
+
70
+ ---
71
+ _Saved by /session-save on 2026-07-15_
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toga-ai",
3
- "version": "1.0.352",
3
+ "version": "1.0.353",
4
4
  "description": "TOGA Technology Team Claude Knowledge System — shared AI coding harness with skills, knowledge base CLI, and project installer for Claude Code.",
5
5
  "keywords": [
6
6
  "claude",