Skip to content

Commit e8a5feb

Browse files
authored
Nillion x Monadic Copy and LLM fixes (#31)
* Removed all Gwasifier references. * Fixed a nilAI usage bug.
1 parent 770c8d2 commit e8a5feb

14 files changed

Lines changed: 29 additions & 25 deletions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ npm run dev
9898
**Security Note:**
9999
- Dev mode ONLY activates when `NODE_ENV==='development'` AND `hostname==='localhost'`
100100
- Password stored in plain text in IndexedDB (local only, never sent to server)
101-
- Clear dev data: `indexedDB.deleteDatabase('gwasifier_dev_mode')` in browser console
101+
- Clear dev data: `indexedDB.deleteDatabase('monaidc_dna_explorer_dev_mode')` in browser console
102102

103103
**Enable Full Auto-Load in Brave:**
104104
1. Open `brave://settings/`
@@ -378,7 +378,7 @@ WHERE accessed_at < NOW() - INTERVAL '90 days'
378378

379379
## Premium Features & Payments
380380

381-
GWASifier offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports.
381+
Monadic DNA Explorer offers premium features including LLM-powered genetic analysis chat, Run All analysis, and comprehensive reports.
382382

383383
### Dual Payment System
384384

STABLECOIN_PAYMENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Overview
44

5-
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.
5+
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.
66

77
## How It Works
88

app/components/DisclaimerModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis
3131
// More generous threshold for reaching bottom
3232
const threshold = 30;
3333
const isAtBottom = scrollTop + clientHeight >= scrollHeight - threshold;
34-
34+
3535
// Also check if content is shorter than container (no scrolling needed)
3636
const needsScrolling = scrollHeight > clientHeight;
37-
37+
3838
if (isAtBottom || !needsScrolling) {
3939
setHasScrolledToBottom(true);
4040
}
@@ -64,7 +64,7 @@ export default function DisclaimerModal({ isOpen, onClose, type, onAccept }: Dis
6464
<div className="disclaimer-text" onScroll={handleScroll}>
6565
<p><strong>This is an entertainment and educational application only.</strong></p>
6666

67-
<p>GWASifier is designed for entertainment, curiosity, and educational purposes. It is <strong>NOT</strong> a medical device, diagnostic tool, or healthcare application.</p>
67+
<p>Monadic DNA Explorer is designed for entertainment, curiosity, and educational purposes. It is <strong>NOT</strong> a medical device, diagnostic tool, or healthcare application.</p>
6868

6969
<h3>Critical Understanding:</h3>
7070
<ul>

app/components/LLMChatInline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@ Remember: You have plenty of space. Use ALL of it to provide a complete, thoroug
852852
</div>
853853
${chatContent}
854854
<div style="margin-top: 3rem; padding-top: 1rem; border-top: 2px solid #ddd; color: #666; font-size: 0.9rem; text-align: center;">
855-
Generated by GWASifier • For Educational Purposes Only
855+
Generated by Monadic DNA Explorer • For Educational Purposes Only
856856
</div>
857857
</body>
858858
</html>

app/components/NillionModal.tsx

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ export default function NillionModal({ isOpen, onClose }: NillionModalProps) {
190190
setProcessingSteps([
191191
{ step: 'Searching genetic database for risk-related traits', status: 'active' },
192192
{ step: 'Matching studies with your genetic profile', status: 'pending' },
193-
{ step: 'Analyzing genetic risk factors with AI', status: 'pending' },
193+
{ step: 'Analyzing genetic risk factors with nilAI', status: 'pending' },
194194
{ step: 'Storing results securely in nilDB', status: 'pending' },
195195
{ step: 'Generating your degen score', status: 'pending' }
196196
]);
@@ -269,15 +269,15 @@ Provide:
269269
2. Brief, balanced trading behavior advice (1-2 sentences) considering this genetic profile
270270
271271
Respond ONLY with JSON:
272-
{"geneticScore": 7.5, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`;
272+
{"geneticScore": x, "reasoning": "detailed explanation", "tradingAdvice": "brief advice"}`;
273273

274274
const llmResponse = await callLLM([
275275
{ role: 'system', content: 'You are a genetics specialist.' },
276276
{ role: 'user', content: prompt }
277277
], {
278-
maxTokens: 500,
278+
maxTokens: 10000,
279279
temperature: 0.7,
280-
reasoningEffort: 'low'
280+
reasoningEffort: 'high'
281281
});
282282

283283
// Parse LLM response
@@ -401,7 +401,11 @@ Respond ONLY with JSON:
401401
</p>
402402
<p>
403403
Answer a few questions about your trading behavior, then we'll calculate
404-
your degen score based on your genetic traits related to risk appetite.
404+
your degen score using nilAI based on your genetic traits related to risk appetite.
405+
</p>
406+
<p>
407+
Your responses will be stored securely in nilDB and we'll publish an analysis
408+
of the delta between self-reported and genetically-derived degen scores.
405409
</p>
406410
</div>
407411

app/components/OverviewReportModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ export default function OverviewReportModal({ isOpen, onClose }: OverviewReportM
764764
fontSize: '0.9rem',
765765
textAlign: 'center'
766766
}}>
767-
Generated by GWASifier • For Educational Purposes Only
767+
Generated by Monadic DNA Explorer • For Educational Purposes Only
768768
</div>
769769
</div>
770770
) : (

app/components/TermsAcceptanceModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export default function TermsAcceptanceModal({ isOpen, onAccept }: TermsAcceptan
4747
<p>
4848
Please read our full{" "}
4949
<a
50-
href="https://github.com/Monadic-DNA/GWASifier/blob/main/terms_and_conditions.md"
50+
href="https://github.com/Monadic-DNA/Explorer/blob/main/terms_and_conditions.md"
5151
target="_blank"
5252
rel="noopener noreferrer"
5353
className="terms-link"
@@ -56,7 +56,7 @@ export default function TermsAcceptanceModal({ isOpen, onAccept }: TermsAcceptan
5656
</a>
5757
{" "}and{" "}
5858
<a
59-
href="https://github.com/Monadic-DNA/GWASifier/blob/main/privacy_policy.md"
59+
href="https://github.com/Monadic-DNA/Explorer/blob/main/privacy_policy.md"
6060
target="_blank"
6161
rel="noopener noreferrer"
6262
className="terms-link"

lib/dev-mode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* This should NEVER be enabled in production.
1313
*/
1414

15-
const DB_NAME = 'gwasifier_dev_mode';
15+
const DB_NAME = 'monadic_dna_explorer_dev_mode';
1616
const DB_VERSION = 1;
1717
const STORE_NAME = 'file_handles';
1818
const GENOTYPE_HANDLE_KEY = 'genotype_file_handle';

lib/llm-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export interface LLMConfig {
1616
huggingfaceApiKey?: string;
1717
}
1818

19-
const STORAGE_KEY = 'gwasifier_llm_config';
19+
const STORAGE_KEY = 'monadic_dna_explorer_llm_config';
2020

2121
const DEFAULT_CONFIG: LLMConfig = {
2222
provider: 'nilai',

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)