Mati83moni commited on
Commit
a8f8dac
·
verified ·
1 Parent(s): cf74fa9

Fix: remove Anthropic from onboarding, require 3/3 credentials

Browse files
nexus/client/src/components/onboarding-modal.tsx CHANGED
@@ -43,11 +43,11 @@ export default function OnboardingModal() {
43
 
44
  // Count configured settings
45
  const configured = settings?.filter(s =>
46
- ["ANTHROPIC_API_KEY", "HF_TOKEN", "KAGGLE_KEY", "SUPABASE_ANON_KEY"].includes(s.key) && s.configured
47
  ).length || 0;
48
 
49
  const okCountFromState = Object.values(stepStatus).filter(s => s === "ok").length;
50
- const allConfigured = configured >= 4 || okCountFromState >= 4;
51
  const open = !allConfigured && !dismissed;
52
 
53
  const setValue = (key: string, value: string) => {
@@ -189,7 +189,7 @@ export default function OnboardingModal() {
189
  })}
190
  </div>
191
 
192
- {okCount >= 4 && (
193
  <Button
194
  className="w-full bg-indigo-600 hover:bg-indigo-700 text-white"
195
  onClick={() => setDismissed(true)}
@@ -198,9 +198,9 @@ export default function OnboardingModal() {
198
  Launch NEXUS
199
  </Button>
200
  )}
201
- {okCount < 4 && (
202
  <div className="text-center text-xs text-muted-foreground">
203
- {okCount}/4 credentials configured — complete all above to continue
204
  </div>
205
  )}
206
  </DialogContent>
 
43
 
44
  // Count configured settings
45
  const configured = settings?.filter(s =>
46
+ ["HF_TOKEN", "KAGGLE_KEY", "SUPABASE_ANON_KEY"].includes(s.key) && s.configured
47
  ).length || 0;
48
 
49
  const okCountFromState = Object.values(stepStatus).filter(s => s === "ok").length;
50
+ const allConfigured = configured >= 3 || okCountFromState >= 3;
51
  const open = !allConfigured && !dismissed;
52
 
53
  const setValue = (key: string, value: string) => {
 
189
  })}
190
  </div>
191
 
192
+ {okCount >= 3 && (
193
  <Button
194
  className="w-full bg-indigo-600 hover:bg-indigo-700 text-white"
195
  onClick={() => setDismissed(true)}
 
198
  Launch NEXUS
199
  </Button>
200
  )}
201
+ {okCount < 3 && (
202
  <div className="text-center text-xs text-muted-foreground">
203
+ {okCount}/3 credentials configured — complete all above to continue
204
  </div>
205
  )}
206
  </DialogContent>