Commit cbca913
apps/box: replace Loyal Agent tab with top-level Blox AI tab
The bottom-tab "Loyal Agent" pointed at ChatAIScreen — a freeform
chat surface that posted to the container's chat endpoint with a
hardcoded 'deepseek-chat' model name (cosmetic only since the
container now runs Qwen) and short-circuited iOS users with
"iOS is not currently supported." Meanwhile the new structured Blox
AI flow (the marquee feature: verdict + tool-call + approve) was
buried under Settings then Diagnostics, hidden from anyone who didn't
know to look there.
Promote Diagnostics to a top-level tab and retire the freeform-chat
surface entirely:
- navigationConfig.ts:
- Add Routes.DiagnosticsTab = 'DiagnosticsTab' (follows *Tab
convention for top-level tabs).
- Remove Routes.ChatAI, Routes.ChatAITab, Routes.Diagnostics
(the SettingsStack child route, now unreachable since the tab
is the only entry).
- Add to MainTabsParamList, remove from RootStackParamList and
SettingsStackParamList.
- MainTabs.navigator.tsx:
- Replace the ChatAITab tab block with DiagnosticsTab pointing
at DiagnosticsScreen, label "Blox AI", icon FxSearchIcon
(magnifying glass — best fit for "diagnose / investigate" in the
existing palette).
- Drop the ChatAIScreen import and FxScanCodeIcon import.
- Remove the now-redundant SettingsStack.Screen for Diagnostics.
- Diagnostics.test.tsx:
- Update the route-registered assertion from Routes.Diagnostics
(== 'Diagnostics') to Routes.DiagnosticsTab (== 'DiagnosticsTab').
- Delete ChatAI.screen.tsx (434 lines, fully obsolete).
What this does NOT remove:
- The container's chat endpoint stays (kept per the plan as
backward-compat for any future freeform-chat surface). If we ever
re-add freeform chat, it should be cross-platform (the deleted
ChatAIScreen was Android-only) and not hardcode an old model name.
Test posture:
- 23 Diagnostics jest tests pass (including the updated route-id check).
- A pre-existing ApprovalModal.test.tsx module-resolve failure for
@functionland/component-library is unrelated (jest moduleNameMapper
infra issue; predates this work; ApprovalModal not touched here).
- Pre-existing tsc jest-typedef errors in components.test.tsx
also predate this work; not affected by these edits.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 6eab6d3 commit cbca913
4 files changed
Lines changed: 14 additions & 453 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
271 | | - | |
272 | | - | |
| 270 | + | |
| 271 | + | |
273 | 272 | | |
274 | 273 | | |
275 | | - | |
276 | | - | |
| 274 | + | |
| 275 | + | |
277 | 276 | | |
278 | 277 | | |
279 | 278 | | |
| |||
349 | 348 | | |
350 | 349 | | |
351 | 350 | | |
352 | | - | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | 351 | | |
357 | 352 | | |
358 | 353 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
| 33 | + | |
35 | 34 | | |
36 | 35 | | |
37 | 36 | | |
| |||
50 | 49 | | |
51 | 50 | | |
52 | 51 | | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
72 | 70 | | |
73 | 71 | | |
74 | 72 | | |
75 | | - | |
76 | 73 | | |
77 | 74 | | |
78 | 75 | | |
| |||
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | | - | |
| 84 | + | |
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
| |||
110 | 107 | | |
111 | 108 | | |
112 | 109 | | |
113 | | - | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
| |||
0 commit comments