Skip to content

feat(transfer): AddressInput 聚焦自动展开联系人建议 #93

Closed

Description

@Gaubee

需求

当前行为

  • 输入 2+ 字符后才显示联系人建议
  • 无法直接浏览联系人列表

期望行为

  1. 聚焦即展开:聚焦输入框时自动展开自动完成面板
  2. 默认显示:即使无输入,显示最近使用 + 所有联系人地址
  3. 链类型过滤:根据当前选择的链类型正确过滤地址
  4. 联系人入口:面板底部添加"查看全部联系人"按钮,跳转到 ContactPickerActivity

UI 设计

┌──────────────────────────────────────────────┐
│ [输入地址...]                    [扫描] [粘贴] │
├──────────────────────────────────────────────┤
│ 👤 Alice                                      │
│    b7ADmv... (BFMeta)                        │
├──────────────────────────────────────────────┤
│ 👤 Bob                                        │
│    0x742d... (Ethereum)                       │
├──────────────────────────────────────────────┤
│ [👥 查看全部联系人...]                         │
└──────────────────────────────────────────────┘

技术要点

  • 修改 suggestContacts 支持空查询返回所有联系人
  • 添加最近使用地址排序逻辑
  • 创建 ContactPickerActivity 用于完整联系人浏览选择

关联

Activity

  1. added 3 commits that reference this issue on Dec 23, 2025
    73bd904
    135d635
    050d921
  2. added a commit that references this issue on Dec 23, 2025
    c183564
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions