Skip to content

Commit 51965d8

Browse files
mechramcclaude
andcommitted
fix: restore Ingest as default route, fix trigger IDs to match engine
- Ingest back at / (default landing), Globe stays at /globe - WisdomChat trigger map now uses actual engine trigger IDs (descendant-struggling-silently, descendant-first-failure, etc.) - Fix View Globe link back to /globe Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent 33bbec1 commit 51965d8

3 files changed

Lines changed: 18 additions & 18 deletions

File tree

dashboard/src/App.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import AuditLog from './screens/AuditLog'
77
import PassportExport from './screens/PassportExport'
88

99
const NAV_ITEMS = [
10-
{ to: '/', label: 'Globe', icon: GlobeIcon },
11-
{ to: '/ingest', label: 'Ingest', icon: UploadIcon },
10+
{ to: '/', label: 'Ingest', icon: UploadIcon },
1211
{ to: '/memories', label: 'Memories', icon: BrainIcon },
1312
{ to: '/consent', label: 'Consent', icon: ShieldIcon },
13+
{ to: '/globe', label: 'Globe', icon: GlobeIcon },
1414
{ to: '/audit', label: 'Audit Log', icon: ListIcon },
1515
{ to: '/export', label: 'Export', icon: DownloadIcon },
1616
]
@@ -51,10 +51,10 @@ export default function App() {
5151
{/* Main content */}
5252
<main className="flex-1 overflow-y-auto">
5353
<Routes>
54-
<Route path="/" element={<GlobeExperience />} />
55-
<Route path="/ingest" element={<IngestTrigger />} />
54+
<Route path="/" element={<IngestTrigger />} />
5655
<Route path="/memories" element={<MemoryApproval />} />
5756
<Route path="/consent" element={<ConsentGrant />} />
57+
<Route path="/globe" element={<GlobeExperience />} />
5858
<Route path="/audit" element={<AuditLog />} />
5959
<Route path="/export" element={<PassportExport />} />
6060
</Routes>

dashboard/src/components/globe/WisdomChat.jsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,26 +11,26 @@ import { useVault } from '../../hooks/useVault'
1111
import { useTokenStore } from '../../hooks/useTokenStore'
1212

1313
const FEELING_TRIGGER_MAP = [
14-
{ keywords: ['anxious', 'anxiety', 'worried', 'nervous', 'scared', 'fear', 'panic'], trigger: 'anxiety-overwhelm' },
15-
{ keywords: ['lost', 'confused', 'direction', 'purpose', 'meaning', 'path'], trigger: 'loss-of-direction' },
16-
{ keywords: ['fail', 'failure', 'mistake', 'wrong', 'messed up', 'regret'], trigger: 'failure-shame' },
17-
{ keywords: ['lonely', 'alone', 'isolated', 'miss', 'missing'], trigger: 'loneliness' },
18-
{ keywords: ['angry', 'anger', 'frustrated', 'unfair', 'injustice'], trigger: 'anger-injustice' },
19-
{ keywords: ['change', 'moving', 'transition', 'new', 'different', 'leaving'], trigger: 'major-life-change' },
20-
{ keywords: ['proud', 'success', 'achieved', 'accomplish', 'milestone', 'celebrate'], trigger: 'milestone-celebration' },
21-
{ keywords: ['grief', 'loss', 'died', 'death', 'gone', 'mourning'], trigger: 'grief' },
22-
{ keywords: ['decide', 'decision', 'choice', 'choose', 'crossroads', 'torn'], trigger: 'difficult-decision' },
23-
{ keywords: ['love', 'relationship', 'partner', 'heart', 'romantic'], trigger: 'relationship-crossroads' },
24-
{ keywords: ['identity', 'who am i', 'belong', 'culture', 'heritage', 'roots'], trigger: 'identity-belonging' },
25-
{ keywords: ['grateful', 'thankful', 'blessed', 'appreciate', 'gratitude'], trigger: 'gratitude-reflection' },
14+
{ keywords: ['anxious', 'anxiety', 'worried', 'nervous', 'scared', 'fear', 'panic', 'struggling', 'hard time'], trigger: 'descendant-struggling-silently' },
15+
{ keywords: ['quit', 'give up', 'giving up', 'stop trying', 'done with', 'considering quitting'], trigger: 'descendant-considering-quitting' },
16+
{ keywords: ['fail', 'failure', 'mistake', 'wrong', 'messed up', 'regret', 'first time'], trigger: 'descendant-first-failure' },
17+
{ keywords: ['leaving', 'moving', 'move away', 'leaving home', 'new city', 'transition', 'change'], trigger: 'descendant-leaving-home' },
18+
{ keywords: ['parent', 'baby', 'child', 'pregnant', 'father', 'mother', 'becoming a parent'], trigger: 'descendant-becoming-parent' },
19+
{ keywords: ['grief', 'loss', 'died', 'death', 'gone', 'mourning', 'passed away', 'miss'], trigger: 'descendant-losing-someone' },
20+
{ keywords: ['angry', 'anger', 'frustrated', 'unfair', 'injustice', 'discrimination', 'racism'], trigger: 'descendant-facing-injustice' },
21+
{ keywords: ['proud', 'success', 'achieved', 'accomplish', 'milestone', 'celebrate', 'graduated', 'promotion'], trigger: 'descendant-celebrating-milestone' },
22+
{ keywords: ['lonely', 'alone', 'isolated', 'disconnected', 'no one', 'nobody'], trigger: 'descendant-feeling-alone' },
23+
{ keywords: ['identity', 'who am i', 'belong', 'culture', 'heritage', 'roots', 'questioning'], trigger: 'descendant-questioning-identity' },
24+
{ keywords: ['sacrifice', 'giving up something', 'selfless', 'for someone else', 'let go'], trigger: 'descendant-making-sacrifice' },
25+
{ keywords: ['lost', 'confused', 'direction', 'purpose', 'meaning', 'path', 'seeking', 'what should i'], trigger: 'descendant-seeking-purpose' },
2626
]
2727

2828
function detectTrigger(text) {
2929
const lower = text.toLowerCase()
3030
for (const entry of FEELING_TRIGGER_MAP) {
3131
if (entry.keywords.some((k) => lower.includes(k))) return entry.trigger
3232
}
33-
return 'anxiety-overwhelm'
33+
return 'descendant-struggling-silently'
3434
}
3535

3636
export default function WisdomChat({ passportId, passportInfo, onMemoryHighlight }) {

dashboard/src/screens/IngestTrigger.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ export default function IngestTrigger() {
335335
Review Memories
336336
</Link>
337337
<Link
338-
to="/"
338+
to="/globe"
339339
className="px-4 py-2 text-sm font-medium rounded-lg bg-slate-100 text-slate-700 hover:bg-slate-200 transition-colors"
340340
>
341341
View Globe

0 commit comments

Comments
 (0)