Commit Graph

55 Commits

Author SHA1 Message Date
Bryan Montz
9847f12c95 Remove unused code
Closes: #1105
2023-05-08 11:01:04 -07:00
William Casarin
d0a6c2e2e4 Thread Caching
Changelog-Added: Threads now load instantly and are cached
2023-03-04 17:40:22 -05:00
5cd4c2d75e Fix localization issues, add tests, import translations, and add zh-CN and zh-TW
Closes: #689
2023-02-24 12:44:54 -08:00
OlegAba
d547dade04 Use top anchor for scroll to top event
Changelog-Fixed: Scroll to top of events instead of the bottom
Closes: #570
2023-02-16 08:29:25 -08:00
98a1b95d12 Use Text(verbatim:) to indicate non-translatable strings 2023-02-16 10:15:38 -05:00
355cd1283c Wrap non-translatable strings so that they do not get exported 2023-02-15 10:44:44 -05:00
William Casarin
10596ddb09 Relay Filters
wip
2023-02-09 14:23:18 -08:00
William Casarin
552bd9cae5 Implement NIP-21 URI handling
Changelog-Added: Added nostr: uri handling
2023-01-28 08:31:11 -08:00
William Casarin
5edb7df5c4 Mute events in threads
Changlog-Added: Mute events in threads
2023-01-27 12:11:57 -08:00
William Casarin
8df5bf04ae refactor: Break EventView into 3 separate views
SelectedEventView
EmbeddedEventView
EventView
2023-01-23 12:13:58 -08:00
887eb902bf Add comments to localized strings 2023-01-08 21:57:28 -05:00
William Casarin
6079b2f620 remove old comment 2022-12-23 15:24:55 -08:00
Jacob Davis
2c44366ca5 Fix padding and other minor UI improvements 2022-12-17 17:03:16 -08:00
William Casarin
a47645929e Inline image loading
Changelog-Added: Added inline image loading
Signed-off-by: William Casarin <jb55@jb55.com>
2022-10-16 16:11:27 -07:00
William Casarin
66eefa0ff2 a few fixes
Signed-off-by: William Casarin <jb55@jb55.com>
2022-10-16 12:26:49 -07:00
William Casarin
7bdd8048b0 better channels
Signed-off-by: William Casarin <jb55@jb55.com>
2022-09-13 17:23:56 -07:00
William Casarin
faaf77d9e5 scroll to bottom instead.
It's a bit less jarring

Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-12 11:07:09 -07:00
William Casarin
65710eeb5e clicking chat quotes now just expands thems
jumping to them is kind of annoying

Changelog-Changed: Clicking a chatroom quote reply will now expand it instead of jumping to it
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-09 16:49:41 -07:00
William Casarin
22cad4b072 wot: show friend icons is some views
easier to detect if someone is trying to fake us out

Changelog-Added: Friend icons next to names on some views. Check is friend. Arrows are friend-of-friends
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-09 16:48:47 -07:00
William Casarin
1ab42b4c5c Fix chatroom cruft
Changelog-Fixed: Fixed various issues with chatroom view
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-09 16:09:12 -07:00
William Casarin
eec8763733 scroll: more consistent scrolling behavior
Scrolling will always anchor the active note to the top of the screen

This is less confusing overall

Changelog-Changed: Clicking on a note will now always scroll it to the top
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-09 09:32:22 -07:00
William Casarin
cd9bd1b892 less animation in chat
Changelog-Changed: Don't animate scroll in chat view
Signed-off-by: William Casarin <jb55@jb55.com>
2022-08-06 19:29:31 -07:00
William Casarin
c122035851 Implement NIP04: Encrypted Direct Messages
Closes #5

This adds encrypted direct message support to damus

Changelog-Added: Implement NIP04: Encrypted Direct Messages
Signed-off-by: William Casarin <jb55@jb55.com>
2022-07-02 12:14:36 -07:00
William Casarin
6ac4214be7 insert sort, profile updates revamp
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-09 10:33:03 -07:00
William Casarin
045aaaf59b trigger resub on clicked events
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-08 11:09:04 -07:00
William Casarin
8896d19f40 initial reply revamp
It now understands mentions

Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-08 10:25:50 -07:00
William Casarin
4db06b015c event mentions working
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-07 17:48:00 -07:00
William Casarin
f42bc2e91e likes, mention parsing, lots of stuff
Signed-off-by: William Casarin <jb55@jb55.com>
2022-05-04 16:26:10 -07:00
William Casarin
d574e572d4 old style navigation
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-30 11:46:56 -07:00
William Casarin
ce989450f4 many updates
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-25 08:28:07 -07:00
William Casarin
4de2ce402e fix broken nagivation
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-23 12:41:36 -07:00
William Casarin
78c5b47f11 chatroom
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-19 19:46:30 -07:00
William Casarin
b100e9887b lazy vstack ftw
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-19 12:06:24 -07:00
William Casarin
8568d4abc7 fix up many things
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-19 09:26:29 -07:00
William Casarin
5bb46c5d10 reply bug fixes
still need to revamp this logic for mentions

Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 17:31:39 -07:00
William Casarin
fd4aa2bb3d simplify collapsed calculation
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 16:35:28 -07:00
William Casarin
f2265153fa determine highlight from reply map
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 14:53:10 -07:00
William Casarin
b3588b9d61 slower animation on appear
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 14:52:54 -07:00
William Casarin
b72047237a don't collapse if we don't need to
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 14:31:36 -07:00
William Casarin
9b79b46601 better reply descriptions
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 13:17:34 -07:00
William Casarin
8cc3edf195 use direct references on root events
references to root should be treated slightly differently, otherwise the
entire thread will be shown when you select the root event.

Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 12:32:55 -07:00
William Casarin
c53b9d2ce6 expand collapsed sections
currently only expands all sections

Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 11:35:19 -07:00
William Casarin
6ce5484d74 calculate ancestor reply path
This works really well going back in time because no branching, assuming
the last referenced event id is the only note they are replying to...

Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-18 10:31:54 -07:00
William Casarin
89cb063015 show hidden notes at the end as well
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 14:25:07 -07:00
William Casarin
c9d3ed361f collapse the thread when a note is selected
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 14:24:51 -07:00
William Casarin
392af009f8 eventdetails: only add our events
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 14:24:41 -07:00
William Casarin
550f096808 make note of collapsed events
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 11:11:11 -07:00
William Casarin
d950ad75b8 better threads
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 08:05:45 -07:00
William Casarin
41911908e7 scroll to note in thread
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 06:03:37 -07:00
William Casarin
f2631bd086 make profiles and environment object
Signed-off-by: William Casarin <jb55@jb55.com>
2022-04-17 05:31:38 -07:00