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

Offen
#130 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
55/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
dart, flutter
Bereich
mobile

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
Dart
Sterne
9
Forks
5
Ø Merge
49 Min.
Gemergte PRs (30 T.)
34

Entwicklungsumgebung

  • Enthält ein Dockerfile oder eine Docker-Compose-Datei
  • Keine Pull-Request-Vorlage
  • Kein Beitragsleitfaden

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus CommandLineCoding/Elephant

Alle Issues in CommandLineCoding/Elephant

Ähnliche Issues

Weitere Issues zu Dart

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.