fix: guard short trader ID, i18n setup page, simplify onboarding UX

- main.go: prevent panic when trader ID < 8 chars
- SetupPage: add zh/en i18n labels
- BeginnerOnboardingPage: show private key by default, simplify code
This commit is contained in:
shinchan-zhai
2026-03-28 14:14:20 +08:00
parent 27d0a1074b
commit a0d1d143bc
3 changed files with 253 additions and 209 deletions

View File

@@ -118,8 +118,12 @@ func main() {
if t.IsRunning {
status = "✅ Running"
}
logger.Infof(" • %s [%s] %s - AI Model: %s, Exchange: %s",
t.Name, t.ID[:8], status, t.AIModelID, t.ExchangeID)
idShort := t.ID
if len(idShort) > 8 {
idShort = idShort[:8]
}
logger.Infof(" • %s [%s] %s - AI Model: %s, Exchange: %s",
t.Name, idShort, status, t.AIModelID, t.ExchangeID)
}
}