1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00
Commit Graph

515 Commits

Author SHA1 Message Date
William Casarin
69922b1d77 Remove LoadMoreButton
Was an old unused thing
2023-07-12 08:21:44 -07:00
William Casarin
7f9371d85f v1.6 (3) 2023-07-11 12:58:15 -07:00
William Casarin
031c7823ae refactor: move hashtag tests to their own file 2023-07-11 07:21:16 -07:00
William Casarin
45d9121ed7 fix project issues 2023-07-10 20:56:52 -07:00
William Casarin
374610a21a artifacts: allow unseparated note artifacts
This is needed for longform events. Right now we treat unseparated note
artifacts as a list of blocks, but we will likely need to render these
blocks into lists of attributed texts with image blocks inbetween.
2023-07-10 18:24:43 -07:00
William Casarin
4d995fd04c Longform Notes 2023-07-10 17:39:13 -07:00
William Casarin
518886912c refactor: carve out TextEvent body into EventShell
We'll need this for other event types
2023-07-10 17:39:13 -07:00
Joel Klabo
bf95a8b328 Banner Image Upload
Changelog-Added: Enable banner image editing
2023-07-10 17:27:42 -07:00
William Casarin
15d633a42f project: update to recommend settings 2023-07-10 11:08:20 -07:00
Terry Yiu
140c3505ba
Update translations 2023-07-09 15:36:35 -04:00
Bryan Montz
51d71f11c1 replace RelayMetadatas with RelayModelCache in DamusState
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-09 07:40:39 -07:00
Bryan Montz
f619fef410 add RelayModel and RelayModelCache classes
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-09 07:40:39 -07:00
Bryan Montz
ef4aeb40e0 add RelayLog class
Signed-off-by: Bryan Montz <bryanmontz@me.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-09 07:40:39 -07:00
Bryan Montz
ebcfe3c25f add developer mode view and setting
Signed-off-by: Bryan Montz <bryanmontz@me.com>
2023-07-07 09:02:52 -07:00
William Casarin
3451e7d88f v1.6 2023-07-04 12:18:33 -07:00
William Casarin
a04a401292 nscript: load script view
This allows you to open and run scripts for testing purposes, but only
from external links such as nostr:nscript...
2023-07-04 11:48:27 -07:00
William Casarin
30e33a01c1 nostrscript: add a helper function 2023-07-03 16:59:50 -07:00
William Casarin
97f10e865f NostrScript
NostrScript is a WebAssembly implementation that interacts with Damus.
It enables dynamic scripting that can be used to power custom list views,
enabling pluggable algorithms.

The web has JavaScript, Damus has NostrScript. NostrScripts can be
written in any language that compiles to WASM.

This commit adds a WASM interpreter I've written as a mostly-single C
file for portability and embeddability. In the future we could
JIT-compile these for optimal performance if NostrScripts get large and
complicated. For now an interpreter is simple enough for algorithm list
view plugins.

Changelog-Added: Add initial NostrScript implementation
Signed-off-by: William Casarin <jb55@jb55.com>
2023-07-03 14:31:38 -07:00
Terry Yiu
6e964f71ff Add trie-based user search cache to replace non-performant linear scans
Changelog-Added: Speed up user search
Tested-by: William Casarin <jb55@jb55.com>
Fixes: #1219
Closes: #1342
2023-07-03 12:06:01 -07:00
Bryan Montz
7cd3aef157 Updated test target to deployment target of iOS 16.0
Changelog-Updated: Bumped minimum verison to iOS 16.0
Signed-off-by: Bryan Montz <bryanmontz@me.com>
2023-07-02 13:03:13 -07:00
Scott Penrose
f0b0eade37 Convert to NavigationStack
- Fixes linking issues on SideMenu and tab switching issues
- I currently bumped to iOS 16+ to get iterate and get this working.
2023-06-30 06:42:56 -07:00
William Casarin
82c53e43e5 v1.5 (8) 2023-06-27 06:30:50 +02:00
William Casarin
1e2326cccf v1.5 (7)
rip zap button
2023-06-27 05:35:53 +02:00
Terry Yiu
422167f7aa Add indication of followers you know in a profile
Changelog-Added: Add indication of followers you know in a profile
2023-06-25 09:38:57 +02:00
William Casarin
b70bf1f647 v1.5-6 2023-06-25 09:38:46 +02:00
William Casarin
a641f972ff v1.5-5 2023-06-24 08:38:02 +02:00
William Casarin
337c4de337 reduce ContentView redraws
Remove observability from the home model, and use inner models for
updating specific parts of the UI, such as notification dots on the tab
bar.
2023-06-23 11:51:51 +02:00
William Casarin
e885f38c54 refactor: switch CustomizeZapView to use a model
Changelog-Fixed: Fix CustomizeZapView from randomly disappearing
2023-06-23 11:51:51 +02:00
William Casarin
4d43e590e0 view: Add ZapUserView
This will be used to make it clear that we are zapping a user
2023-06-22 10:23:56 +02:00
William Casarin
6ec533b0cd view: Add AboutView
This will be used by different views for the user's about section
2023-06-20 17:00:48 +02:00
Bryan Montz
296d96d6df rename RelayStatus to RelayStatusView 2023-06-20 10:18:34 +02:00
William Casarin
bcdd0b4e23 Revert "Add Inter font"
This reverts commit 271e3ad54a.
2023-06-12 11:25:27 +02:00
Ben Weeks
271e3ad54a Add Inter font
ChangeLog-Changed: Switch to new font (Inter)
2023-06-10 12:38:13 +02:00
William Casarin
043eb5b436 Show zap comments in threads and show top zap
Changelog-Added: Top zaps
Changelog-Added: Show zap comments in threads
2023-06-09 10:11:25 +02:00
Terry Yiu
8ca377bec9
Add max length truncation to displayed profile attributes to mitigate spam
Changelog-Fixed: Add max length truncation to displayed profile attributes to mitigate spam
Fixes: #1237
2023-06-04 17:50:52 -04:00
Terry Yiu
952d6746d5 Add profile zaps
Refactor profile zaps to reuse same BOLT11 Lightning invoice logic as
note zaps, which fixes profile zaps from Cash App and Muun wallets

Changelog-Added: Add profile zaps
Changelog-Fixed: Fix profile zapping for Muun and Strike wallets
Closes: #1236
Fixes: #1067
2023-06-04 10:56:43 -07:00
William Casarin
809a08ef63 v1.5 (3) 2023-05-30 19:40:37 -07:00
William Casarin
57e6f083b8 Revert "Updated UI to use custom font"
This reverts commit 020a00bf7e.
2023-05-30 19:35:21 -07:00
William Casarin
6aa28fce6c v1.5-2 2023-05-30 18:04:21 -07:00
William Casarin
88b04fde09 xcode: remove .git ext from package 2023-05-30 17:58:48 -07:00
William Casarin
6214ab8d8f video: add DamusVideoPlayer view 2023-05-29 17:11:14 -07:00
William Casarin
4d95d36a1e Add GSPlayer + VideoPlayer 2023-05-29 17:10:14 -07:00
Ben Weeks
06ba0f7387 Add ability to show multiple posts per user in Universe
ChangeLog-Added: Add ability to show multiple posts per user in Universe
Closes: #1198
Fixes: #1189
2023-05-29 15:35:29 -07:00
ericholguin
90c22fdabd components: added reusable gradient button style 2023-05-29 14:38:24 -07:00
ericholguin
dfd1032cd8 gradients: add pink gradient 2023-05-29 14:38:24 -07:00
ericholguin
a0e1e16f17 gradients: add damus logo gradient 2023-05-29 14:38:24 -07:00
Ben Weeks
020a00bf7e Updated UI to use custom font
Changelog-Changed: Updated UI to use custom font
2023-05-29 14:38:24 -07:00
Bryan Montz
ea73c5252d Merge branch 'master' into user-cache 2023-05-26 06:46:47 -05:00
Bryan Montz
812213ff2b Add Damus splash screen
Changelog-Updated: Add Damus splash screen
2023-05-24 15:17:08 -07:00
William Casarin
bffa42a13a Supporter Badges 2023-05-15 11:57:37 -07:00
William Casarin
af912b1a0e v1.5-1 2023-05-15 09:59:22 -07:00
William Casarin
1313880574 Add release Damus build scheme 2023-05-14 10:49:54 -07:00
Bryan Montz
32431096f5 add tests for ProfileDatabase 2023-05-13 09:20:01 -05:00
Bryan Montz
4646f0e23c add ProfileDatabase class to read and write profiles to disk 2023-05-12 07:21:25 -05:00
Bryan Montz
76c57af548 add managed object class to match new Profile CoreData model 2023-05-12 07:18:12 -05:00
Bryan Montz
7983157c38 add CoreData model for Profile 2023-05-12 07:15:30 -05:00
William Casarin
dafa1ba4de test: add nwc and ephemeral relay test
This ensures that when paying with nwc, we get an ephemeral relay added
and a request queued in the postbox.
2023-05-10 16:24:02 -07:00
William Casarin
370a5feb4e ui: add Nostr Wallet Connect views 2023-05-10 14:07:24 -07:00
William Casarin
d0216bbce6 nwc: Add WalletModel
This model will be used for controlling the logic in the Wallet views
2023-05-10 14:07:24 -07:00
William Casarin
1db425fd69 ui: add AlbyButton
This will be used for alby's nostr wallet connect implementation
2023-05-09 18:57:04 -07:00
William Casarin
a13efb7832 ui: move gradient components to their own group 2023-05-09 18:57:04 -07:00
William Casarin
e3b3c9dedd ui: add QR CodeScanner helpers 2023-05-09 18:57:04 -07:00
William Casarin
ccd76066d1 switch to v1.5 2023-05-08 12:38:08 -07:00
William Casarin
f95498a6fa v1.4.3 - AppStore release 2023-05-08 11:47:19 -07:00
Bryan Montz
9847f12c95 Remove unused code
Closes: #1105
2023-05-08 11:01:04 -07:00
William Casarin
0da10eb716 build 23 2023-05-08 10:56:35 -07:00
William Casarin
a4d4ad72e6 build 22 2023-05-07 11:28:33 -07:00
William Casarin
86687b6289 v1.4.3-21 2023-05-07 10:38:21 -07:00
William Casarin
0f5e1dfb81 Properly scroll DM view when keyboard is open
Less DM jank!

Changelog-Fixed: Properly scroll DM view when keyboard is open
2023-05-05 16:13:17 -07:00
Joshua Jiang
c439100a86 Fix parse mention without space in content
Changelog-Fixed: Fix parse mention without space in content
Closes: #936
Fixes: #992
2023-05-05 11:20:20 -07:00
Terry Yiu
34970b38bb Fix plurality on sats 2023-05-05 09:00:02 -07:00
Bryan Montz
e4860f3ba8 Replace Vault dependency with @KeychainStorage property wrapper
Changelog-Changed: replace Vault dependency with @KeychainStorage property wrapper
Closes: #1076
2023-05-04 15:57:02 -07:00
William Casarin
e6b4b2a437 v1.4.3-20 2023-05-04 09:05:59 -07:00
William Casarin
91fc0039eb build 19 2023-05-02 08:23:58 -07:00
William Casarin
da99130b78 build 18 2023-05-02 07:51:29 -07:00
Bryan Montz
03931ef70e Save keys when logging in and when creating new keypair
Changelog-Added: Save keys when logging in and when creating new keypair
Closes: #1042
2023-05-02 06:47:29 -07:00
William Casarin
5b97906138 build 17 2023-04-30 22:30:25 -07:00
William Casarin
df6911f9cb cache note language 2023-04-30 21:40:11 -07:00
William Casarin
c87f19b479 v1.4.3-15 changelog 2023-04-29 08:46:43 -07:00
William Casarin
3eb544e40d build 13 2023-04-28 13:00:44 -07:00
William Casarin
3b50f82094 Add image metadata to image uploads
Adds blurhash and image dimensions. This is an alternative and backwards
compatible version of NIP94 for images in kind1 notes.

Changelog-Added: Add image metadata to image uploads
2023-04-26 10:53:13 -07:00
William Casarin
46b53e1326 Add BinaryParser
Didn't end up using this, but might be useful in the future
2023-04-26 10:53:13 -07:00
William Casarin
225a028f3e build 12 2023-04-25 15:21:16 -07:00
William Casarin
d074d092a2 Fix crash when you have invalid relays in your relay list
Changelog-Fixed: Fix crash when you have invalid relays in your relay list
2023-04-25 15:06:09 -07:00
William Casarin
633fcd69a8 build 11 2023-04-25 14:31:13 -07:00
William Casarin
6f7d6d1933 build 10 2023-04-25 08:57:45 -07:00
Bryan Montz
0e94c48e26 Replace Starscream with URLSessionWebSocketTask
Changelog-Fixed: Fix slow reconnection issues
2023-04-24 18:11:07 -07:00
William Casarin
88db9de4ea Fix reposts on macos 2023-04-24 15:38:11 -07:00
William Casarin
c4f41220e5 refactor: extract ZapTypePicker into its own file 2023-04-23 09:54:38 -07:00
William Casarin
7940e6fd32 Fix tests 2023-04-23 04:36:16 -07:00
William Casarin
00aa897f05 build 8 2023-04-21 17:48:34 -07:00
William Casarin
aa559b2916 Refactor and Scope user settings to pubkey 2023-04-21 16:21:01 -07:00
William Casarin
9bf8349db6 Friends filter for notifications
Changelog-Added: Friends filter for notifications
2023-04-21 14:17:37 -07:00
William Casarin
aa5f8d19f7 build 7 2023-04-21 11:26:49 -07:00
William Casarin
191950a5aa Colorize friend icons
No reason why nip05 badges should have all the fun

Changelog-Added: Colorize friend icons
2023-04-20 14:30:27 -07:00
William Casarin
ac82f1bc09 Add OnlyZaps Mode
Changelog-Added: Add OnlyZaps mode: disable reactions, only zaps!
2023-04-20 13:41:05 -07:00
William Casarin
2ff12823f2 Don't nest embedded notes 2023-04-18 12:43:26 -07:00
William Casarin
300cd87fc2 Remove EmbeddedEventView
All embedded events are now just regular event views
2023-04-18 10:42:56 -07:00
William Casarin
1ae6a3d871 v1.4.3-2 2023-04-17 14:29:50 -07:00
Terry Yiu
ad7a79c2bb Fix typo on ParticipantsView.swift file name
Closes: #945
2023-04-17 10:27:47 -07:00
William Casarin
a4d40dbfa6 Revert "Changelog-Added: Banner Image Upload"
I didn't mean to commit this yet

This reverts commit 95041600dc.
2023-04-15 12:43:44 -07:00
William Casarin
247270f3d3 Introduce LocalNotification
This will be used for local notification data
2023-04-15 12:40:00 -07:00
Joel Klabo
95041600dc Changelog-Added: Banner Image Upload 2023-04-15 10:28:17 -07:00
Ryan Calder
41a462871c Enable Mac Catalyst
Closes: #926
2023-04-15 09:47:21 -07:00
William Casarin
a4d4954abd Fix relay signal indicator, properly show how many relays you are connected to
Changelog-Fixed: Fix relay signal indicator, properly show how many relays you are connected to
2023-04-14 11:46:55 -07:00
Terry Yiu
1ac9620242 Add thread muting
Changelog-Added: Add thread muting
Closes: #893
2023-04-14 09:43:36 -07:00
William Casarin
d82b69aac5 Merge remote-tracking branch 'github/translations' 2023-04-14 09:24:59 -07:00
William Casarin
29ab48287f start v1.4.3-1 build train 2023-04-14 09:20:10 -07:00
Terry Yiu
f6f2517fda
Merge French variant translations into general French translations 2023-04-13 18:33:58 +02:00
William Casarin
5f1132cbc8 v1.4.2-2 2023-04-12 20:11:08 -07:00
William Casarin
f56edd5547 switch to v1.4.2 train 2023-04-11 13:00:03 -07:00
William Casarin
f5942f5123 build 9 2023-04-11 10:23:34 -07:00
William Casarin
a74aea9d12 v1.4.1-8 2023-04-10 16:12:26 -07:00
William Casarin
13354b0eb5 Refactor NIP19 implementation and add tests
Closes: #837
2023-04-09 22:03:51 -07:00
William Casarin
8e78bf9e1a v1.4.1-7 2023-04-07 12:14:57 -07:00
William Casarin
6d4d218c28 v1.4.1-6 2023-04-06 17:39:41 -07:00
William Casarin
3d27e49e70 Add custom #nostr and #coffeechain hashtags
Changelog-Added: Custom hashtags for #nostr and #coffeechain
2023-04-06 17:09:50 -07:00
William Casarin
e9be227009 Add bitcoin icon to bitcoin hashtags
Changelog-Added: Add bitcoin icon to bitcoin hashtags
2023-04-06 16:04:16 -07:00
William Casarin
eed16449fe oops, we're on build 5 2023-04-06 12:10:31 -07:00
William Casarin
00548adc1f v1.4.1-4 2023-04-06 10:31:20 -07:00
William Casarin
d8a9efc6e2 v1.4.1-3 2023-04-05 11:15:51 -07:00
William Casarin
9c8391b33b Refactor settings into subsections 2023-04-05 10:23:07 -07:00
William Casarin
2ce0a771ea refactor: move notification settings to its own file 2023-04-05 08:49:15 -07:00
William Casarin
8c2c8e283f v1.4.1-2 2023-04-04 20:11:35 -07:00
William Casarin
bedf7e0648 Add reply counts
Changelog-Added: Reply counts
2023-04-04 12:03:56 -07:00
William Casarin
679779ab3e Get around CCP bootstrap relay banning by caching user's relays as their bootstrap relays
Changelog-Fixed: Get around CCP bootstrap relay banning by caching user's relays as their bootstrap relays
2023-04-04 10:12:29 -07:00
ericholguin
1701dbdfb9 Add an empty view when a tagged user isnt found
Changelog-Added: Show a custom view when tagged user isn't found
2023-04-03 16:23:04 -07:00
William Casarin
02c973fbb2 Replace Divider with ThiccDivider 2023-04-03 13:57:57 -07:00
William Casarin
b9d62e300b Restore missing reply description on selected events
Changelog-Fixed: Restore missing reply description on selected events
2023-04-03 10:21:11 -07:00
Joel Klabo
c9c51c6d4a Profile Picture Upload
Changelog-Added: Profile Picture Upload
Closes: #849
2023-04-03 09:37:10 -07:00
William Casarin
2596542cb6 Enable offline posting
You can now post, like, repost, reply offline

Changelog-Added: Enable offline posting
2023-03-31 15:14:55 -07:00
William Casarin
f2ce146e98 Revert "Refactor auto-translations and add caching"
There are quite a few issues with this and is causing crashing

This reverts commit ae82114a33.
2023-03-31 10:01:31 -07:00
Terry Yiu
ae82114a33 Refactor auto-translations and add caching
Changelog-Added: Add auto-translation caching to ruduce api usage
Closes: #843
2023-03-31 09:07:15 -07:00
OlegAba
72b51a81de Move and rename pfp image view 2023-03-30 12:37:33 -04:00
William Casarin
0a4e75bfec Add nip05 search
Changelog-Added: Added ability to lookup users by nip05 identifiers
2023-03-29 19:24:06 -04:00
William Casarin
9fef2f071a v1.4.0 2023-03-27 17:48:40 -04:00
William Casarin
c7a34379dd Merge remote-tracking branch 'github/translations' 2023-03-27 12:42:59 -04:00
William Casarin
7674f42596 Damus Colors Helper 2023-03-27 12:26:30 -04:00
William Casarin
754ee254e9 Revert "Revert "New Timeline""
This reverts commit f5ed9cd5d4.
2023-03-26 09:35:53 -06:00
William Casarin
f5ed9cd5d4 Revert "New Timeline"
This reverts commit f84d4516db.
2023-03-25 06:31:24 -06:00
Terry Yiu
fd596241a2
Fix localization issues, import translations, and add Spanish (Spain), Vietnamese, and Portuguese (Brazil) 2023-03-24 22:31:20 -06:00
William Casarin
f76563b354 v1.3.0-7 2023-03-24 07:59:58 -06:00
William Casarin
f84d4516db New Timeline
Switch to a new timeline style that has higher information density and
better image display
2023-03-23 19:03:54 -06:00
William Casarin
2e34230119 Clean up image views 2023-03-23 08:54:25 -06:00
William Casarin
a8ce39fc96 v1.3.0-6 2023-03-21 06:41:06 -06:00
William Casarin
4bda490010 v1.3.0-5 2023-03-20 09:27:13 -06:00
William Casarin
91cb6a6763 v1.3.0-4 2023-03-17 11:47:29 -06:00
William Casarin
b687006b64 v1.3.0-3 2023-03-17 08:33:32 -06:00
William Casarin
393809c7d7 Merge remote-tracking branch 'github/translations' 2023-03-17 08:01:43 -06:00
William Casarin
9091cb1aae Revert "Reduce battery usage by using exp backoff on connections"
This is causing pretty bad fail to reconnect issues

This reverts commit 252a77fd97, reversing
changes made to a611a5d252.
2023-03-17 07:54:29 -06:00