Fernando López Guevara
cb5bd75236
refactor: use Margin:ZERO
2025-07-16 16:29:02 -03:00
kernelkind
142aa879c3
make Contacts::is_following use bytes instead of Pubkey
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 21:34:08 -04:00
kernelkind
397bfce817
add Accounts to NoteContext
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-14 21:34:02 -04:00
kernelkind
b5d56f7831
remove unnecessary FilterState::NeedsRemote filter
...
all NeedsRemote states are contact lists currently, which is
managed by `Accounts`
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-12 16:52:01 -04:00
kernelkind
46633d0513
use AccountSubs for timeline contact sub
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-12 16:48:20 -04:00
William Casarin
44edffc596
android/input: add copy/paste context to post input
...
Fixes: https://github.com/damus-io/notedeck/issues/942
Signed-off-by: William Casarin <jb55@jb55.com >
2025-07-11 15:36:56 -07: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
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
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
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
kernelkind
e91684a7d5
accounts: move accounts to own module
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:40:39 -04:00
kernelkind
e29ea35ee5
remove duplicate UnknownIds initialization
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-07-02 11:40:33 -04:00
Fernando López Guevara
c6dbb0e856
fix(content): handle case where notes are not loaded
2025-06-24 09:15:52 -07:00
kernelkind
87b4b5fc70
add preview flag to NoteAction
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-22 16:03:09 -04:00
kernelkind
a77fe6ca00
unknowns: use unowned noteid instead of owned
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-06-18 14:39:05 -04:00
William Casarin
e87b6f1905
chrome: collapsible side panel
...
This implements the initial logic that makes the side panel collapsible.
Since we don't have a proper hamburger control, we do the same thing we
do on iOS for now.
2025-06-05 12:01:55 -07:00
William Casarin
163abe891a
Merge remote-tracking branch 'pr/862'
2025-05-19 15:25:56 -07:00
kernelkind
5598cc8ba0
use CustomZapView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-17 14:41:48 -04:00
kernelkind
68b5c32e7f
method to get current default zap amount
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-17 14:30:21 -04:00
kernelkind
54c0fdb563
don't show zap button if no wallet
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-17 14:29:43 -04:00
kernelkind
98cb082fb4
hotfix: can login again
...
adds fallback pubkey as account and selects it when there are
no accounts
closes: https://github.com/damus-io/notedeck/issues/855
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-16 15:50:31 -04:00
William Casarin
86d2a9e2e7
clippy: fix lint related to iterator
...
warning: called `Iterator::last` on a `DoubleEndedIterator`; this will
needlessly iterate the entire iterator
--> crates/notedeck/src/urls.rs:262:43
|
262 | if let Some(file_name) = path.last() {
| ^^^^^^ help: try: `next_back()`
|
Signed-off-by: William Casarin <jb55@jb55.com >
2025-05-14 09:56:06 -07:00
kernelkind
b2abe495ca
implement blurring
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:57:57 -04:00
kernelkind
640bf742c0
add one shot error message
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:57:51 -04:00
kernelkind
def9de0dc0
images: make promise payload optional to take easily
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2025-05-04 12:56:38 -04:00