Commit Graph

28 Commits

Author SHA1 Message Date
Daniel D’Aquino 692d29942b zaps: Implement single-tap zap on profile action sheet and fix zap fallthrough on default settings
This commit implements a single-tap zap on the profile action sheet and fixes an issue where zapping would silently fail on default settings if the user had no lightning wallet installed in their system.

Testing
-------

Configurations:
- iPhone 13 Mini (physical device) on iOS 17.0.2 with NWC wallet attached
- iPhone 15 Pro (simulator) on iOS 17.0.1 with no lightning wallet nor NWC

Damus: This commit

Coverage:
- Zapping using NWC connected wallet: PASS (Zaps and shows UX feedback of the completed action)
- Zapping under default settings and no lightning wallet: PASS (Shows the wallet selector invoice view)
- Long press on zap button brings custom zap view

Regression testing
------------------

Preconditions: iPhone 15 Pro (simulator) on iOS 17.0.1 with no lightning wallet nor NWC

Coverage:
- Zapping user on their full profile shows wallet selector. PASS
- On-post invoice shows wallet selector. PASS

Closes: https://github.com/damus-io/damus/issues/1634
Changelog-Changed: Zap button on profile action sheet now zaps with a single click, while a long press brings custom zap view
Changelog-Fixed: Fixed an issue where zapping would silently fail on default settings if the user does not have a lightning wallet preinstalled on their device.
Signed-off-by: Daniel D’Aquino <daniel@daquino.me>
Reviewed-by: William Casarin <jb55@jb55.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-10-24 12:18:20 +08:00
William Casarin 69c7acea76 tests: add ndb support to tests
stops it from crashing
2023-09-21 09:10:06 -04:00
William Casarin 7040235605 refactor: add Pubkey, Privkey, NoteId string aliases
This is a non-behavioral change in preparation for the actual switchover
from Strings to Ids. The purpose of this kit is to reduce the size of
the switchover commit which is going to be very large.
2023-07-31 05:38:19 -07:00
William Casarin b40c595a7c notify: switch over to new typesafe notifications 2023-07-30 11:02:44 -07:00
William Casarin f090596067 nozaps: switch to global sheet when zapping
This fixes many popping bugs

Changelog-Fixed: Fix zap sheet popping
2023-06-23 20:46:27 +02:00
Ben Weeks 973e9fe714 Custom iconography added for other areas of the app.
Changelog-Added: Custom iconography added for other areas of the app.
2023-05-29 14:47:05 -07:00
Bryan Montz 9847f12c95 Remove unused code
Closes: #1105
2023-05-08 11:01:04 -07:00
William Casarin 055b13c1cd Fix buggy zap amounts and wallet selector settings
Changelog-Fixed: Fix buggy zap amounts and wallet selector settings
2023-04-22 12:10:10 -07:00
William Casarin eabf37e35c Refactor damus color references 2023-03-27 12:39:38 -04:00
Joel Klabo ac1a5d237e Add Copy Invoice Button
Changelog-Added: Copy invoice button
Closes: #469
2023-02-04 12:52:57 -08:00
William Casarin 006f8d79e0 Lightning Zaps
Added initial lightning zaps/tipping integration

Changelog-Added: Receive Lightning Zaps
2023-02-02 15:51:57 -08:00
tyiu 4fbc9882ce Add LibreTranslate integration for machine translating notes from other languages 2023-01-30 16:46:06 -05:00
tyiu 887eb902bf Add comments to localized strings 2023-01-08 21:57:28 -05:00
William Casarin 4adb26e784 wallet: refactor a few things 2023-01-02 08:39:39 -08:00
William Casarin cf615b82b2 bolt11: fix any amount invoices 2023-01-01 11:02:44 -08:00
William Casarin 6e709058c0 wallet: refactor, make it work with ln tip button
Changelog-Added: Added option to choose default wallet
2022-12-31 09:41:10 -08:00
Suhail Saqan dfbeda5e36 Revert "@bhakes: Bh updates to improve wallet selector" (#6) 2022-12-29 23:39:16 -08:00
Suhail Saqan 403a22125a Revert "Bh updates to improve wallet selector" 2022-12-29 23:30:56 -08:00
Benjamin Hakes f32c4947e1 make invoice view observed object 2022-12-29 16:25:48 -06:00
Benjamin Hakes 429a765d42 finish updates to wallet selector improvements 2022-12-29 14:51:36 -06:00
Suhail Saqan d10ee72fec add show toggle and default wallet selector 2022-12-29 06:04:58 -06:00
William Casarin 1a28f8ca94 fix pay button
Changelog-Fixed: Fix pay button
2022-12-28 14:40:06 -08:00
William Casarin 3405742350 Wallet Selector
Closes: #107
Changelog-Added: lightning wallet selector
2022-12-28 13:10:54 -08:00
Thomas 15f6c5bfc2 "Pay" click : Temporary solution 2022-12-28 08:59:42 +01:00
Sam DuBois 33802a0fa3 Cleaned up the way we show images, changed the pay button for invoices, and added a new link view to make links appear a bit more friendly (need to work on this more) 2022-12-27 12:38:52 -07:00
Suhail Saqan dd50ffd555 allow opening wallet selector for profile LN button 2022-12-24 20:44:10 -06:00
Suhail Saqan bb6d1b2522 add wallet modal 2022-12-22 04:20:37 -06:00
William Casarin c6ab1de639 Add bolt11 parser and Invoice View
Changelog-Added: Display bolt11 invoice widgets on posts
2022-10-19 07:46:05 -07:00