Commit Graph

25 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
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
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
006f8d79e0 Lightning Zaps
Added initial lightning zaps/tipping integration

Changelog-Added: Receive Lightning Zaps
2023-02-02 15:51:57 -08:00
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
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
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
13516dbc0a Show images from yourself
Changelog-Fixed: Show images from yourself
2022-12-28 14:40:32 -08:00
Suhail Saqan
c76e1a39e7 add default wallet option and phoenix 2022-12-26 03:46:08 -06:00
Suhail Saqan
f74a7c620a cleanup and improve design 2022-12-24 23:05:06 -06:00
Suhail Saqan
dd50ffd555 allow opening wallet selector for profile LN button 2022-12-24 20:44:10 -06:00
Suhail Saqan
a8921dc24f add lnlink 2022-12-23 20:35:37 -06:00
Suhail Saqan
ed9e60ffb6 make wallet items a List 2022-12-22 16:15:34 -06:00
Suhail Saqan
21db49b6dd fixed alignment 2022-12-22 07:00:31 -06:00
Suhail Saqan
0de7b9dc94 added copy invoice and fixed alignment 2022-12-22 05:31:05 -06:00
Suhail Saqan
2f33a7f761 add title 2022-12-22 05:00:01 -06:00
Suhail Saqan
3a34fd5f46 add images for wallets 2022-12-22 04:34:26 -06:00
Suhail Saqan
bb6d1b2522 add wallet modal 2022-12-22 04:20:37 -06:00