From 71e623c4ae297deb18966e93c0b044b046fed02e Mon Sep 17 00:00:00 2001 From: Vishakh Date: Fri, 19 Dec 2025 15:01:11 -0500 Subject: [PATCH 1/2] Removed all Gwasifier references. --- README.md | 4 ++-- STABLECOIN_PAYMENTS.md | 2 +- app/components/DisclaimerModal.tsx | 6 +++--- app/components/LLMChatInline.tsx | 2 +- app/components/OverviewReportModal.tsx | 2 +- app/components/TermsAcceptanceModal.tsx | 4 ++-- lib/dev-mode.ts | 2 +- lib/llm-config.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- sql/README.md | 6 +++--- sql/postgres_indexes.sql | 2 +- sql/postgres_schema.sql | 2 +- 13 files changed, 20 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index 8513417..15ea6ba 100644 --- a/README.md +++ b/README.md @@ -98,7 +98,7 @@ npm run dev **Security Note:** - Dev mode ONLY activates when `NODE_ENV==='development'` AND `hostname==='localhost'` - Password stored in plain text in IndexedDB (local only, never sent to server) -- Clear dev data: `indexedDB.deleteDatabase('gwasifier_dev_mode')` in browser console +- Clear dev data: `indexedDB.deleteDatabase('monaidc_dna_explorer_dev_mode')` in browser console **Enable Full Auto-Load in Brave:** 1. Open `brave://settings/` @@ -378,7 +378,7 @@ WHERE accessed_at < NOW() - INTERVAL '90 days' ## Premium Features & Payments -GWASifier offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports. +Monadic DNA Explorer offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports. ### Dual Payment System diff --git a/STABLECOIN_PAYMENTS.md b/STABLECOIN_PAYMENTS.md index c57d9af..fe04bc1 100644 --- a/STABLECOIN_PAYMENTS.md +++ b/STABLECOIN_PAYMENTS.md @@ -2,7 +2,7 @@ ## Overview -GWASifier Premium now uses a **database-free, stablecoin-based payment system**. Users pay with stablecoins (USDC, USDT, or DAI) from their connected wallet, and subscription status is verified on-chain using Alchemy's indexer API. +Monadic DNA Explorer Premium now uses a **database-free, stablecoin-based payment system**. Users pay with stablecoins (USDC, USDT, or DAI) from their connected wallet, and subscription status is verified on-chain using Alchemy's indexer API. ## How It Works diff --git a/app/components/DisclaimerModal.tsx b/app/components/DisclaimerModal.tsx index 722b8fd..78af679 100644 --- a/app/components/DisclaimerModal.tsx +++ b/app/components/DisclaimerModal.tsx @@ -31,10 +31,10 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis // More generous threshold for reaching bottom const threshold = 30; const isAtBottom = scrollTop + clientHeight >= scrollHeight - threshold; - + // Also check if content is shorter than container (no scrolling needed) const needsScrolling = scrollHeight > clientHeight; - + if (isAtBottom || !needsScrolling) { setHasScrolledToBottom(true); } @@ -64,7 +64,7 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis

This is an entertainment and educational application only.

-

GWASifier is designed for entertainment, curiosity, and educational purposes. It is NOT a medical device, diagnostic tool, or healthcare application.

+

Monadic DNA Explorer is designed for entertainment, curiosity, and educational purposes. It is NOT a medical device, diagnostic tool, or healthcare application.

Critical Understanding:

${chatContent}
- Generated by GWASifier • For Educational Purposes Only + Generated by Monadic DNA Explorer • For Educational Purposes Only
diff --git a/app/components/OverviewReportModal.tsx b/app/components/OverviewReportModal.tsx index 1137184..8f32952 100644 --- a/app/components/OverviewReportModal.tsx +++ b/app/components/OverviewReportModal.tsx @@ -764,7 +764,7 @@ export default function OverviewReportModal({ isOpen, onClose }: OverviewReportM fontSize: '0.9rem', textAlign: 'center' }}> - Generated by GWASifier • For Educational Purposes Only + Generated by Monadic DNA Explorer • For Educational Purposes Only ) : ( diff --git a/app/components/TermsAcceptanceModal.tsx b/app/components/TermsAcceptanceModal.tsx index 61ac5b9..3d6601c 100644 --- a/app/components/TermsAcceptanceModal.tsx +++ b/app/components/TermsAcceptanceModal.tsx @@ -47,7 +47,7 @@ export default function TermsAcceptanceModal({ isOpen, onAccept }: TermsAcceptan

Please read our full{" "} {" "}and{" "} Date: Fri, 19 Dec 2025 15:29:03 -0500 Subject: [PATCH 2/2] Fixed a nilAI usage bug. --- app/components/NillionModal.tsx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/app/components/NillionModal.tsx b/app/components/NillionModal.tsx index 8199e61..0b25803 100644 --- a/app/components/NillionModal.tsx +++ b/app/components/NillionModal.tsx @@ -190,7 +190,7 @@ export default function NillionModal({ isOpen, onClose }: NillionModalProps) { setProcessingSteps([ { step: 'Searching genetic database for risk-related traits', status: 'active' }, { step: 'Matching studies with your genetic profile', status: 'pending' }, - { step: 'Analyzing genetic risk factors with AI', status: 'pending' }, + { step: 'Analyzing genetic risk factors with nilAI', status: 'pending' }, { step: 'Storing results securely in nilDB', status: 'pending' }, { step: 'Generating your degen score', status: 'pending' } ]); @@ -269,15 +269,15 @@ Provide: 2. Brief, balanced trading behavior advice (1-2 sentences) considering this genetic profile Respond ONLY with JSON: -{"geneticScore": 7.5, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`; +{"geneticScore": x, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`; const llmResponse = await callLLM([ { role: 'system', content: 'You are a genetics specialist.' }, { role: 'user', content: prompt } ], { - maxTokens: 500, + maxTokens: 10000, temperature: 0.7, - reasoningEffort: 'low' + reasoningEffort: 'high' }); // Parse LLM response @@ -401,7 +401,11 @@ Respond ONLY with JSON:

Answer a few questions about your trading behavior, then we'll calculate - your degen score based on your genetic traits related to risk appetite. + your degen score using nilAI based on your genetic traits related to risk appetite. +

+

+ Your responses will be stored securely in nilDB and we'll publish an analysis + of the delta between self-reported and genetically-derived degen scores.