[FEAT]: Tappable links in messages, with a confirmation before opening

Đang mở
#130 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
dart, flutter
Lĩnh vực
mobile

Hướng nghiên cứu

The payload names no files, so start by finding where message text is rendered in the Flutter client and whether a link-handling package is already a dependency. Make links in messages tappable, and show a confirmation dialog before opening any external URL, proceeding only if the user confirms. Done when a tapped link shows the prompt and opens only after confirmation, and this is covered by a widget test.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: mobile enhancement good first issue

Context

URLs in messages are shown as plain text.

What to do

  • Detect http(s):// links in message text and make them tappable.
  • On tap, show a dialog with the full URL ("Open this link?" + Open / Cancel) before opening it in the browser. This protects against misleading link text.
  • Long-press on a link copies it.

Where to look

mobile/lib/widgets/chat_page_widgets.dart. Messages render through MarkdownBody, which has an onTapLink callback. url_launcher is already used in mobile/lib/pages/settings/help_about.dart.

Ngôn ngữ chính
Dart
Star
9
Fork
5
Merge trung bình
49 phút
Pull request đã merge (30 ngày)
34

Chuẩn bị môi trường

  • Có Dockerfile hoặc tệp Docker Compose
  • Không có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của CommandLineCoding/Elephant

Tất cả issue của CommandLineCoding/Elephant

Issue tương tự

Thêm issue về Dart

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.