Save current BZZZ config-ui state before CHORUS branding update
🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -32,6 +32,32 @@ export default function TestingValidation({
|
||||
})
|
||||
}
|
||||
|
||||
const getClusterDashboardUrl = () => {
|
||||
// Get the WebUI port from config, default to 9090
|
||||
const webuiPort = configData?.network?.ports?.webui || 9090
|
||||
return `http://localhost:${webuiPort}/dashboard`
|
||||
}
|
||||
|
||||
const handleGoToDashboard = () => {
|
||||
const dashboardUrl = getClusterDashboardUrl()
|
||||
|
||||
// Clear setup state since we're done
|
||||
localStorage.removeItem('bzzz-setup-state')
|
||||
|
||||
// Open cluster dashboard in new tab
|
||||
window.open(dashboardUrl, '_blank')
|
||||
|
||||
// Show completion message and suggest closing this tab
|
||||
const shouldClose = window.confirm(
|
||||
'Setup complete! The cluster dashboard has opened in a new tab.\n\n' +
|
||||
'You can now close this setup tab. Click OK to close automatically, or Cancel to keep it open.'
|
||||
)
|
||||
|
||||
if (shouldClose) {
|
||||
window.close()
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="space-y-6">
|
||||
<div className="text-center py-12">
|
||||
@@ -65,14 +91,22 @@ export default function TestingValidation({
|
||||
🎉 Setup Complete!
|
||||
</h4>
|
||||
<p className="text-green-700 mb-4">
|
||||
Your BZZZ cluster has been successfully configured and validated.
|
||||
Your CHORUS:agents cluster has been successfully configured and deployed.
|
||||
</p>
|
||||
<div className="space-y-2 text-sm text-green-600">
|
||||
<div className="space-y-2 text-sm text-green-600 mb-4">
|
||||
<div>✓ System configuration validated</div>
|
||||
<div>✓ Network connectivity tested</div>
|
||||
<div>✓ AI services configured</div>
|
||||
<div>✓ Services deployed to all nodes</div>
|
||||
<div>✓ Cluster formation completed</div>
|
||||
</div>
|
||||
<div className="bg-blue-50 border border-blue-200 rounded-lg p-4">
|
||||
<p className="text-sm text-blue-800">
|
||||
<strong>Cluster Dashboard:</strong> <code>{getClusterDashboardUrl()}</code>
|
||||
</p>
|
||||
<p className="text-xs text-blue-600 mt-1">
|
||||
The setup process will be terminated and you'll be redirected to your operational cluster.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
@@ -87,9 +121,9 @@ export default function TestingValidation({
|
||||
</div>
|
||||
|
||||
{isCompleted && (
|
||||
<a href="/dashboard" className="btn-primary">
|
||||
Go to Dashboard
|
||||
</a>
|
||||
<button onClick={handleGoToDashboard} className="btn-primary">
|
||||
Go to Cluster Dashboard
|
||||
</button>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user