William Casarin
41053dd5a5
ui/carousel: refactor to use indices
...
This refactors our carousel control a bit, it was getting
messy
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-10 12:09:30 -07:00
kernelkind
dca9d3eeab
send contact list event on account creation
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:47:32 -04:00
kernelkind
7b9db55a05
add UI for (un)follow
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
Co-authored-by: Jakub Gladysz <jakub.gladysz@protonmail.com >
Co-authored-by: William Casarin <jb55@jb55.com >
2025-07-10 13:47:30 -04:00
kernelkind
a883ac8c34
add actions for follow/unfollow
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
Co-authored-by: Jakub Gladysz <jakub.gladysz@protonmail.com >
Co-authored-by: William Casarin <jb55@jb55.com >
2025-07-10 13:47:28 -04:00
kernelkind
00d6651533
send kind 3 event
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
Co-authored-by: Jakub Gladysz <jakub.gladysz@protonmail.com >
Co-authored-by: William Casarin <jb55@jb55.com >
2025-07-10 13:47:25 -04:00
kernelkind
6741ea8a01
construct NoteBuilder from existing note
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:47:23 -04:00
Jakub Gladysz
cc541cd4ff
ui: add follow button
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
Co-authored-by: Jakub Gladysz <jakub.gladysz@protonmail.com >
Co-authored-by: William Casarin <jb55@jb55.com >
2025-07-10 13:47:21 -04:00
kernelkind
8a77ba5f8f
move styled_button_toggleable to notedeck_ui
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:47:19 -04:00
kernelkind
9940537897
Unify sub for contacts in accounts & timeline
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:47:07 -04:00
kernelkind
497c102af1
expose AccountSubs
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:42 -04:00
kernelkind
1100e28233
use Contacts in AccountData
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:39 -04:00
kernelkind
9b7033e208
add Contacts
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:27 -04:00
kernelkind
4014d122c9
add constructor for AccountData
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:23 -04:00
kernelkind
c99b99ed52
AccountData: decouple query from constructor
...
the ndb query must be as close to the subscription as possible to
avoid events falling through the cracks
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:20 -04:00
kernelkind
6c951d1a29
move polling responsibility to AccountData
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-10 13:45:13 -04:00
William Casarin
e97574fcdc
Merge remote-tracking branch 'github/pr/916'
2025-07-10 09:16:17 -07:00
William Casarin
298fab6471
ui/narrow: restore padding
...
This is a bit too tight
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-10 09:12:08 -07:00
William Casarin
22cfaaf64a
Merge remote-tracking branch 'github/pr/928'
2025-07-10 09:10:28 -07:00
William Casarin
e4e8d7fcf3
note/action: add ScrollInfo
...
I might need this... lets add it just in case
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-10 09:03:39 -07:00
William Casarin
13021afa58
Revert "feat(note-actionbar): refine icons"
...
icons are too blurry, lets fix that
This reverts commit e1bd1d3e8b .
2025-07-09 11:18:04 -07:00
Fernando López Guevara
ec25413433
feat(mobile): improve layout and behavior on narrow screens
2025-07-08 16:20:51 -07:00
William Casarin
f25735f89e
debug: add memory debug window
...
enable with:
$ cargo build --release --features memory
and then click the memory widget on the chrome sidepanel
currently doesn't track C allocations... we should fix that
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-08 13:27:37 -07:00
William Casarin
738b5e71da
android: default app to columns
...
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-08 12:12:03 -07:00
William Casarin
559086bc10
Merge remote-tracking branches 'pr/9{29,30}' into master
2025-07-08 08:41:01 -07:00
Fernando López Guevara
157e114124
fix(add_column): add vertical scroll
2025-07-08 11:03:05 -03:00
Fernando López Guevara
e1bd1d3e8b
feat(note-actionbar): refine icons
2025-07-07 23:28:08 -03:00
Fernando López Guevara
14421da16d
feat(image_carousel): navigate media with arrow left/right keys
2025-07-02 20:25:49 -03:00
kernelkind
b41f4c3359
decouple RelayView UI from state mutation
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:46:09 -04:00
kernelkind
10c4ac80a1
Revert "tmp: temporary AccountCache"
...
This reverts commit 726da7dabf5bf089a463309c41be3f6e11d0c43d.
2025-07-02 15:46:05 -04:00
kernelkind
a73596df48
Clarify & enforce selected-only behavior in Accounts subscription
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:46:01 -04:00
kernelkind
f0158f71b2
don't expose mutable access to UserAccount
...
it's not preferable that the full mutable access is available to
`ZapWallet`, but this PR is becoming too big already
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:57 -04:00
kernelkind
61e47323ab
move modify_advertised_relays into accounts/relay.rs
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:54 -04:00
kernelkind
03c7d11351
move update_relay_configuration to account/relay.rs
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:51 -04:00
kernelkind
11edde45f4
split AccountStorage into reader & writer
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:47 -04:00
kernelkind
329385bd90
move AcountData into UserAccount
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:44 -04:00
kernelkind
a962d67536
tmp: temporary AccountCache
...
will be removed before PR ends
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:37 -04:00
kernelkind
f357935cca
move (de)serialization of wallets & accounts to own structs
...
for easy cloning
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 15:45:31 -04:00
kernelkind
10d6d740b8
migrate accounts to be referenced through pks instead of indices
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:33 -04:00
kernelkind
d092f5c23e
move switching related actions from notedeck -> columns
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:29 -04:00
kernelkind
b9cfe87974
wallet: remove unnecessary mut
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:26 -04:00
kernelkind
84026824b2
enostr: add equivalence between Pubkey & bytes
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:20 -04:00
kernelkind
8e92a97a57
make selected accounts non optional
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:17 -04:00
kernelkind
9cacb6bb69
add AccountCache
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:13 -04:00
kernelkind
f318bbb19a
remove unnecessary method
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:10 -04:00
kernelkind
2fb2940d56
accounts: make fallback pk non optional
...
Note: this commit alone is *incorrect* and will cause crashes.
It is part of a greater plan to upgrade accounts. It was done this
way to break commits to smaller, more digestable chunks
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:06 -04:00
kernelkind
4914c637ce
move FALLBACK_PUBKEY
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:03 -04:00
kernelkind
320dedc8bd
add RelayDefaults
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:41:00 -04:00
kernelkind
41e141d9a9
move aux code to bottom
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:40:56 -04:00
kernelkind
e8d833bf89
accounts: move mute stuff to own module
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:40:52 -04:00
kernelkind
10ed593b6d
accounts: move relay stuff to own file
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:40:44 -04:00