Skip to content

feat: random wallet name + dice button in WalletConfig - #246

Merged
Gaubee merged 3 commits into
mainfrom
feat/dice-button-random-wallet-name
Jan 16, 2026
Merged

Gaubee merged 3 commits into
mainfrom
feat/dice-button-random-wallet-name

Conversation

@Gaubee

@Gaubee Gaubee commented Jan 16, 2026

Copy link
Copy Markdown
Contributor

Summary

功能改进

  1. 恢复钱包使用随机名称 - recover.tsx 现在使用 generateWalletName 生成随机钱包名
  2. 骰子按钮 - WalletConfig 钱包名称输入框右侧添加骰子按钮 🎲
    • 点击可随机生成新名称(如 爱钱包、Apple Wallet)
    • 使用 InputGroup/InputGroupButton (shadcn/ui 最佳实践)

文件变更

  • src/pages/onboarding/recover.tsx - 使用 generateWalletName
  • src/components/wallet/wallet-config.tsx - 添加骰子按钮
  • src/i18n/locales/*.json - 添加 randomName 翻译
  • src/components/wallet/wallet-config.test.tsx - 更新测试 mock

测试

✅ 20/20 wallet-config tests pass

- Use InputGroup/InputGroupButton pattern from shadcn/ui
- Add randomName i18n key to wallet.json (zh-CN, en, zh-TW, ar)
- Button uses generateWalletName for locale-aware random names
@Gaubee
Gaubee merged commit 6ce6da5 into main Jan 16, 2026
5 checks passed
@Gaubee
Gaubee deleted the feat/dice-button-random-wallet-name branch January 16, 2026 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant