William Casarin
3ed09dadf0
damus: make relay pool public
...
we will be using this for our post view
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-01 06:39:39 -07:00
William Casarin
1810515ad2
account_manager: don't add the same pubkey more than once
...
If we are passing keys on the command line, let's make sure
we aren't adding duplicates when we integrate the keystore.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-01 06:39:16 -07:00
William Casarin
307b8af8f1
enostr: rename Event to Note
...
we will likely replace Note with nostrdb::Note in the future,
this just helps with that transition
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-01 06:38:08 -07:00
William Casarin
a16d5b3a05
env: allow private things like secret keys
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-07-01 06:33:22 -07:00
kernelkind
2a47a66bbb
impl linux credential storage
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-06-28 15:27:46 -04:00
William Casarin
26c4d90be3
initial postbox for testing
...
not sure if we want to put this here yet, but it matches the design
and will be useful for testing
Fixes: https://github.com/damus-io/notedeck/issues/110
Suggested-by: Rob
2024-06-25 14:08:56 -05:00
William Casarin
a6856867a9
Merge remote-tracking branch 'pr/107'
2024-06-25 13:20:56 -05:00
William Casarin
8ef6534981
fixed_window: fix clippy warning
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 17:12:24 -07:00
William Casarin
1228f83e50
refactor: move fixed_window to ui
...
This is a ui module
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 17:11:01 -07:00
William Casarin
b14a2bf254
popup: simplify borrow
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 17:09:07 -07:00
William Casarin
a66b467cb4
hide navigation title on global nav
...
Fixes: https://github.com/damus-io/notedeck/issues/109
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 16:47:35 -07:00
William Casarin
f8c8e48c26
postview: add vertical scroll
...
Suggested-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 16:19:06 -07:00
William Casarin
a9a07b3805
refactor: use map instead of explicit if let
...
We also use last instead of first, because the last route should be the
active one.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 14:55:43 -07:00
William Casarin
677c217ecd
popup: increase fixed window margin
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-24 14:55:22 -07:00
kernelkind
6afb618089
reintroduce account management
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-06-23 20:04:00 -04:00
William Casarin
b7188bac25
fix some clippy warnings
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 14:12:07 -07:00
William Casarin
0b3d6f7e37
initial post reply view
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 14:01:40 -07:00
William Casarin
ac0821db79
postbox: add focus shadow from figma
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 10:14:34 -07:00
William Casarin
86b0583221
use unique id for post/reply view
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 09:58:47 -07:00
William Casarin
b0c5d2a2c5
postbox: add focused state
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 09:01:14 -07:00
William Casarin
4c1936ff70
change selection color to purple
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-21 08:56:44 -07:00
William Casarin
18d5d95ef9
fix postbox design
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-20 13:44:35 -07:00
William Casarin
bb6c68e05c
clippy postbox cleanups
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-20 13:05:57 -07:00
William Casarin
395ff57edf
add vertical separators between timelines
...
Fixes: https://github.com/damus-io/notedeck/issues/52
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-20 13:02:18 -07:00
kernelkind
98a61c0aa7
reintroduce account switcher
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-06-18 19:16:11 -04:00
William Casarin
1458498131
initial post box view
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-17 16:21:46 -07:00
William Casarin
577aa76ac7
add --light lightmode flag to previews and notedeck
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-14 11:12:16 -07:00
William Casarin
d064987e45
fix lock
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-14 10:18:18 -07:00
William Casarin
fa50b68cb3
darker quote reposts for mobile
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-14 10:18:06 -07:00
William Casarin
7f37f1e9d3
perf: don't clone bytes via a more specialized function
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-13 12:49:22 -07:00
William Casarin
d17b5e0703
Add forward navigation animation
...
Also fix a few nav clipping bugs
From egui-nav:
William Casarin (5):
add forward nav support
fix body overlapping header
fix transition clipping when in a smaller container
fix forward nav clipping in small containers
fix background layer having the wrong UI id
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-13 11:59:08 -07:00
William Casarin
c4e0c710c9
actionbar: remove border on reply button, add expand animation
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-13 09:36:53 -07:00
William Casarin
db1642bc31
remove useless struct
...
we can just use tuples for compound ids
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-13 09:10:31 -07:00
William Casarin
eb294bb4d3
fix light borders for quote reposts
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-12 10:46:09 -07:00
William Casarin
b1a7547580
lighter gray for inline previews in white mode
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-11 18:48:05 -07:00
William Casarin
5100070b24
fix colors again
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-11 18:44:40 -07:00
William Casarin
24d400d5aa
small inline preview pfps
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-11 17:50:15 -07:00
William Casarin
0dd33c90e7
initial navigation
2024-06-11 17:50:09 -07:00
William Casarin
bff0f3f628
fix inline note preview colors
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-11 16:10:18 -07:00
William Casarin
afb375356b
add test queries for elsat
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-10 07:58:39 -07:00
William Casarin
a47f0ba1b2
args: allow filter files and raw filters on cli
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-10 07:52:51 -07:00
William Casarin
c5634dac91
set tooltip delay to 100ms
...
so that we don't accidently pop it up all the time
Signed-off-by: William Casarin <jb55@jb55.com>
2024-06-10 06:11:00 -07:00
William Casarin
d576082297
reset virtual list if notes are spliced into timeline
...
Calling egui_virtual_list's `items_inserted_at_start` is incorrect if we
insert notes inbetween other notes in the timeline. To prevent our list
getting confused, let's handle this case explicitly by calling 'reset'
when we splice notes in.
Ideally we would update egui_virtual_list to handle spliced-in items,
but we will leave that to a future update.
2024-06-09 08:53:10 -07:00
William Casarin
0eec8c8c2b
dont since-optimize when we don't have enough notes
...
If our limit says we're ok with many more notes than we have, then don't
since-optimize, otherwise we may be missing notes. This results in a
Changelog-Changed: Don't since-optimize if we don't have enough notes
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-31 09:25:54 +02:00
William Casarin
2d9f45603c
remote: use default_remote_limit instead of hardcoding
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-31 09:24:52 +02:00
William Casarin
ab08e678a9
filter: add default limit
...
This is just an opinionated default limit if we ever need it (we will)
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-31 09:24:52 +02:00
William Casarin
e6efad025f
timeline: don't hide on resize
...
It doesn't seem to flicker so why not
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-31 09:24:52 +02:00
William Casarin
6e69407224
cleanups
2024-05-31 01:08:45 -05:00
William Casarin
2305f1e50a
mobile: make mobile flag runtime-configurable
...
we need to pass a few more things around but it's not that bad. This
will allow you to launch damus with --mobile for mobile testing without
recompilation.
2024-05-31 01:05:53 -05:00
William Casarin
83eab71148
Merge remote-tracking branch 'pr/80'
2024-05-31 01:01:05 -05:00