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
William Casarin
92ce718e8b
side_panel: return more detailed side panel responses
...
We should be treating all ui widgets as pure functions that do not
mutate anything. This will make testing easier, as well as avoiding
shared mutable references.
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-28 15:09:19 -07:00
William Casarin
31b2b5c950
initial refactor in preparation for routing
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-28 15:09:01 -07:00
William Casarin
2af44641db
cap size of remote filter limits
...
I noticed the responses are a bit slow without this. Local query limits
are not capped.
Fixes: https://github.com/damus-io/notedeck/issues/98
Changelog-Changed: Restrict remote filter sizes to 250 (for now)
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 11:50:45 -07:00
William Casarin
c1cf7ea324
bump timeline filter limit
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 11:50:09 -07:00
kernelkind
df0377cb89
Pfp integration to side panel
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
7ebd694f11
refactor account switcher & management previews
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
22264e70f5
Integrate account switcher to side panel
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
c0b1a01b5d
Account switcher
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
f489ed3b9e
Migrate to new AccountManagementView conception
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
2ca47edf4d
AccountManager: add ability to make a selection
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
bdf6156fff
Move preview controller out of account_manager.rs
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
11b3effa51
Add AccountManager to app
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
748d9d2358
Integrate global popup into app
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
kernelkind
f071d59dae
Rename PersistState -> StateInMemory
...
also use IdTypeMap::insert_temp instead of insert_persisted.
The whole conception of using egui memory to share state is probably
going to be changed to a more robust solution in the future.
Signed-off-by: kernelkind <kernelkind@gmail.com>
2024-05-27 10:48:28 -07:00
William Casarin
194f41d39c
integrate sidebar into main view
...
buttons don't do anything yet
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
William Casarin
66ce42a302
remove context from DesktopSidePanel
...
we can just get this from the egui::Ui when rendering
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
kernelkind
fd943e5f9f
account_management: refactor
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
kernelkind
88a3a2d088
move test account creation & apply to global popup
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
kernelkind
17d0c97c78
Create side panel & global popup
...
Create a side panel UI element for desktop with three buttons for:
adding a column, settings, and account management. The account
management button is temporary pending a better design. It is the only
one that is interactable at the moment. When the user clicks it, the
global popup window will be shown and the AccountManagementView will be
presented on the window. The user can click on the X on the top right of
the window to close it.
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
kernelkind
1dc832baea
app: add accounts to Damus & mock
...
Signed-off-by: kernelkind <kernelkind@gmail.com>
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-27 10:48:28 -07:00
William Casarin
5630f93b71
debug: add some debug logs for keyboard note selection
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:43:31 -07:00
William Casarin
9e5048d4f2
input: fix deadlock on resize
...
weird egui Context quirk
Fixes: https://github.com/damus-io/notedeck/issues/97
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:42:57 -07:00
William Casarin
2bef02106a
mobile: use my timeline for testing again
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:21:37 -07:00
William Casarin
c5cc2f923c
mobile: a tad more padding at the top
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:21:22 -07:00
William Casarin
56e1e2fa09
update slow timeline query
...
relays have trouble with large limits?
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:21:02 -07:00
William Casarin
739e9f87f2
nip10: fetch unknown replied-to notes
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-24 13:20:33 -07:00
William Casarin
135a5c99ae
Revert "deps: using tracing instead of log"
...
This reverts commit af92e326f6
.
2024-05-23 16:10:07 -07:00
William Casarin
c421a49912
Merge MacOS key storage
...
kernelkind (3):
Add MacOS key storage
Conditionally compile MacOS key storage code
macos_key_storage: runner ignore tests
2024-05-23 16:00:18 -07:00
William Casarin
83100d7f50
tabs: select notes & replies by default
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-23 15:50:06 -07:00
William Casarin
6fc5eb27fc
working notes + notes&replies
...
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-23 15:31:24 -07:00
William Casarin
232ba0e3aa
list: switch from arc mutext to rc refcell
...
we don't have any multithreaded stuff yet
Signed-off-by: William Casarin <jb55@jb55.com>
2024-05-23 15:27:37 -07:00