William Casarin
908f1e4dfd
profiles: find missing profiles from mentions
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 20:24:54 -08:00
William Casarin
8f3ec342c4
note: render mentions
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 18:46:52 -08:00
William Casarin
377b1eb935
note: add render_note_contents stub
...
We will be using this for our note contents renderer
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 17:13:31 -08:00
William Casarin
5317341080
name: don't render display_name first if its empty
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 17:13:13 -08:00
William Casarin
3e96f815b1
apply cargo warning suggested fixes
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 16:19:31 -08:00
William Casarin
83571aaf88
note: show non-displayname if we have it
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 16:14:52 -08:00
William Casarin
b3d8ef373a
profiles: fetch missing profiles when receiving notes
2024-02-10 15:11:10 -08:00
William Casarin
adc74dd7c9
home: move subscriptions to timeline
2024-02-10 14:56:44 -08:00
William Casarin
3925012ad9
android: pass in internal data path for db
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-10 13:57:46 -08:00
William Casarin
4eaf17897e
restore top panel behavior
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-09 18:22:24 -08:00
William Casarin
f323fe7379
LOCAL RELAY MODEL IS WORKING
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-09 16:59:49 -08:00
William Casarin
f786d0568d
subs: switch to multiple-filter style
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-07 15:46:06 -08:00
William Casarin
74ce87049d
local nostrdb subscriptions working
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-07 15:18:23 -08:00
William Casarin
95c836b375
update to latest egui
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-02-07 12:06:28 -08:00
William Casarin
da3ee989fe
fonts: use gossip's font loading code for testing
2024-01-04 07:59:44 -08:00
William Casarin
548325c478
only add kind1 to timeline
2023-12-24 18:14:06 -08:00
William Casarin
5b67a53b61
render only 50 events for now until we have infinite scroll
2023-12-24 18:14:06 -08:00
William Casarin
f46797ea10
net: geometric backoff connection retries on disconnects
2023-12-24 14:24:22 -08:00
William Casarin
6dee4bbe7d
timeline: add new notes at the start
...
still need proper insert logic based on created date
2023-12-24 14:24:22 -08:00
William Casarin
b8357d840b
log: remove "woke up" log. it's annoying
2023-12-24 14:24:22 -08:00
William Casarin
17ec0c0a99
pool: process all events as soon as possible
...
before we were only processing one event per frame. This ensured that
not too much time is spent processing events in a single frame.
Unfortunately since we don't have persistent frame rendering, this is
not reliable.
We can look into limiting the number of events processed per frame if
message processing gets heavy.
2023-12-24 12:34:17 -08:00
William Casarin
09cd8ff379
pool: implement keepalive pinging
...
To prevent us from disconnecting, introduce keepalive pinging. In the
event loop we check if any relays need a refresh ping.
2023-12-24 12:34:17 -08:00
William Casarin
db68ae6280
log: chop some noisy logs
2023-12-24 12:34:17 -08:00
William Casarin
ab2633e038
ui: brighter timeline text
...
We still need to make the username bolder
2023-12-24 12:34:17 -08:00
William Casarin
de5d7c4088
viewport scroll rendering experiments
2023-12-24 12:34:17 -08:00
William Casarin
99e6d74fbc
ui: add initial post composition window
...
This is just for testing for now. This will be redesigned.
2023-11-26 16:40:21 -08:00
William Casarin
0400b94769
add padding to top panel on mobile
2023-07-09 14:21:01 -07:00
William Casarin
a618da3ed7
show fps on top panel
2023-07-09 14:20:50 -07:00
William Casarin
6232a8429e
timeline: add ui_abbrev_name
...
This is a simple and fast function for abbreviating usernames in the
timeline. If they are too large they make the timeline too wide. We'll
probably need to make this adjustable based on the timeline width, but
this is ok for now.
Changelog-Added: Abbreviate usernames in timelines
2023-07-09 11:13:01 -07:00
William Casarin
41ba6f657d
add default name placeholder
2023-07-06 19:37:25 -07:00
William Casarin
aaef51de47
make spinner the correct size
...
todo: refactor these
2023-07-06 19:37:06 -07:00
William Casarin
f95abc50b7
add puffin profiling
2023-07-06 19:36:54 -07:00
William Casarin
658f2fdf42
remove bg_color
2023-07-06 19:36:29 -07:00
William Casarin
672f95749a
Revert "json: deserialize note ids into bytes"
...
This reverts commit 1ba597fc0a .
2023-07-06 17:50:20 -07:00
William Casarin
1ba597fc0a
json: deserialize note ids into bytes
2023-07-06 17:09:39 -07:00
William Casarin
d46f6ec1eb
fix light mode
2023-07-06 14:38:15 -07:00
William Casarin
53c8ee0403
design: remove extra scrollbars, move toward design
2023-07-06 14:15:16 -07:00
William Casarin
5fec8bd079
resizable ui
2023-07-06 13:10:28 -07:00
William Casarin
12dbdf6043
upgrade to egui 0.22.0
2023-07-06 11:21:18 -07:00
William Casarin
f7c1429dd0
Revert "text: make content selectable"
...
Can't drag as easy with selectable timeline text
This reverts commit f5b7b0b1b8 .
2023-07-06 10:45:26 -07:00
William Casarin
f5b7b0b1b8
text: make content selectable
2023-07-06 10:11:04 -07:00
William Casarin
e17b73abab
Profile picture processing
...
This is still single-threaded, so perf is pretty bad. Will need to think
about how to do this more efficiently in a web context where we don't
have threading.
2023-07-06 08:40:50 -07:00
William Casarin
a99056edf2
fonts: change font to onest
2023-07-05 14:53:44 -07:00
William Casarin
44fd75167e
add From<&str> for Pubkey
2023-06-28 21:30:02 +02:00
William Casarin
9a3a01f405
contact name
2022-12-16 00:48:15 -08:00
William Casarin
2aa482344b
customize colors a bit
2022-12-16 00:16:20 -08:00
William Casarin
0138dc8d3d
default pfp
...
This will eventually be a local file. For now just load it remotely.
2022-12-12 14:51:57 -08:00
William Casarin
48af3dde9d
many improvements
2022-12-12 14:33:37 -08:00
William Casarin
e629402d11
initial real data rendering working
2022-12-11 18:56:41 -08:00
William Casarin
98adb82e56
receiving initial messages!
2022-12-11 18:34:43 -08:00