Skip to content

[Enhancement] Update dialog when sending coins #914

@dev-adamant-im

Description

@dev-adamant-im

Summary

Replace the permanent/global “No available nodes” popup with a contextual dialog that appears only when the user taps Send. Unify copy, use tickers (BTC, ADM, etc.), and match the visual style of the existing “No connection” popup.

Motivation

Unified smooth UI.

Detailed description

Current Behavior

  • A permanent popup appears:

    “Нет доступных Bitcoin/ADAMANT Messenger нод. Посмотрите список узлов”

  • Uses full coin/service names (e.g., “Bitcoin”, “ADAMANT Messenger”).

Desired Behavior

  • No permanent popup.
  • Check availability only on Send tap.
  • Use Ticker instead of full name (e.g., BTC, ADM).
  • Same styling as the “No connection” popup.

UX Logic (per send attempt)

  1. Sending ADM

    • If no active ADM nodes → show:
      • EN: No active ADM nodes. Review the node list.
      • RU: Нет доступных нод ADM. Посмотрите список узлов.
    • CTA: Review nodes (navigates to ADM node list), Close
  2. Sending other coins (e.g., BTC) from chat

    • If no active {COIN} nodes → show:
      • EN: No active {TICKER} nodes. Review the node list.
      • RU: Нет доступных нод {TICKER}. Посмотрите список узлов.
    • If ADM nodes are inactive (messaging transport needed) → show different message:
      • EN: No active messaging nodes. Review ADM node list.
      • RU: Нет доступных нод ADM, чтобы отправить сообщение. Посмотрите список узлов.
    • CTA: Review nodes (opens respective node list), Close

Note: For other coins, evaluate both {COIN} nodes (to send the tx) and ADM nodes (to send the message wrapper). Show the first blocking error encountered (prioritize ADM transport error if message cannot be delivered at all).

Rules

  • Use ticker in user-facing strings (Bitcoin → BTC, ADAMANT Messenger → ADM, etc.).
  • Keep messages concise and aligned with “No connection” popup tone.
  • Reuse the same copy for modal title/body where applicable.

Strings

  • No active {TICKER} nodes. Review the node list.
  • No active ADM nodes. Review the node list.
  • No active messaging nodes. Review ADM node list.

Russian variants

  • Нет доступных нод {TICKER}. Посмотрите список узлов.
  • Нет доступных нод ADM. Посмотрите список узлов.
  • Нет доступных нод ADM, чтобы отправить сообщение. Посмотрите список узлов.

Screenshots or videos

Image

Checklist (mark after testing)

  • 1. Merge the two permanent “No available nodes” messages into one consistent flow.
  • 2. Update the text of the message:
    • Кошелек получателя еще не инициирован → refined wording.
  • 3. Update TransferScene.TransferSuccessMessage popup:
    • Expected: Done! (EN) | Готово! (RU).
  • 4. Prevent starting a chat with a non-initialized account.
  • 5. Update popup text:
    • Не удалось получить адрес {crypto}-кошелька пользователя → refined wording.
  • 6. Update popup text:
    • У получателя нет публичного {crypto}-кошелька → refined wording.
  • 7. When sending ADM, check whether the recipient’s account is initialized.

Metadata

Metadata

Assignees

Labels

SwiftiOS-specific code and features in SwiftUX/UIUser interface and experience improvementsenhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions