Spaces:
Sleeping
Sleeping
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 |
-
["
|
| 47 |
).length || 0;
|
| 48 |
|
| 49 |
const okCountFromState = Object.values(stepStatus).filter(s => s === "ok").length;
|
| 50 |
-
const allConfigured = configured >=
|
| 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 >=
|
| 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 <
|
| 202 |
<div className="text-center text-xs text-muted-foreground">
|
| 203 |
-
{okCount}/
|
| 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>
|