Deduplicate reminder logic and add WhatsApp / Web Share / email

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

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

@Speedable2 đang làm issue này rồi.

Từ ngày 21/11/2026.

  • #170 của @Speedable2 — đang mở

Đánh giá

Issue này chưa được đánh giá.

Mô tả

difficulty: intermediate enhancement help wanted refactor Stellar Wave ux

Difficulty: Intermediate

Description

The reminder text is copy-pasted in three places (dashboard RemindersCard, History CopyReminderButton and InvoiceCard), with slightly different fallbacks. Clipboard failure currently navigates away from the page. Freelancers in the target market mostly share through WhatsApp.

Implementation suggestions

Create lib/reminders.ts (buildReminder(invoice, origin) plus share targets). Add a ShareMenu with Copy, WhatsApp (wa.me), Email (mailto:) and the native Web Share API where available. Handle clipboard failure with a visible fallback.

Acceptance criteria

  • One source of truth for the message text.
  • WhatsApp and email open pre-filled.
  • Clipboard failure never navigates away.
  • Unit tests cover message formatting.

Dependencies / related

Tests use #13. Pairs well with #21 (QR code) as another share path.

Ngôn ngữ chính
TypeScript
Star
0
Fork
4
Merge trung bình
54 phút
Pull request đã merge (30 ngày)
6

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

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 Yormee-103/PayLoop

Tất cả issue của Yormee-103/PayLoop

Issue tương tự

Thêm issue về TypeScript

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.