William Casarin
33b2fa263e
fix issue where columns fail to load on first failure
...
This fixes an issue where if one of the columns fail to load, all other
columns fail to load. This is because we are too aggressive with the
early exit on failure.
To reproduce:
$ notedeck --dbpath what
With existing columns in an existing data path.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-15 12:30:45 -08:00
William Casarin
8043d86bf2
arg: fix broken dbpath argument, add test
...
I broke dbpath, lets fix that and add a test so it doesn't happen again
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-15 12:30:45 -08:00
William Casarin
ebfa9e4450
fix log message for relay states
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-15 10:11:04 -08:00
William Casarin
4d124c05fa
remove unnecessary crash
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-15 10:11:00 -08:00
William Casarin
01bedac710
Fix filter states when adding columns
...
This fixes various issues with filter states when adding columns. We now
maintain multiple states per relay so that we don't lose track of
anything.
Fixes: https://github.com/damus-io/notedeck/issues/431
Fixes: https://github.com/damus-io/notedeck/issues/359
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-14 15:25:08 -08:00
William Casarin
845f745dca
remove NewTimelineSub
...
New timelines should be handled in the standard timeline codepaths
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-14 10:36:16 -08:00
William Casarin
3fb78ae01e
nav: use id_source instead of show argument
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 16:14:56 -08:00
William Casarin
4c458727a9
fix: save columns on removal
...
Fixes: https://github.com/damus-io/notedeck/issues/432
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 15:51:46 -08:00
William Casarin
91016facc7
Merge Persist Columns #390
...
Fixed a few merge conflicts
kernelkind (2):
initial column storage
tmp remove DeckAuthor columns
2024-11-13 13:13:55 -08:00
William Casarin
94b97d247d
Merge Add External Notifications Column setting #395
...
kernelkind (2):
init external notifs column
use AcquireKeyState for AddColumn
2024-11-13 13:06:18 -08:00
William Casarin
29da910534
android: fix build
...
Fixes: 2f20e8253e ("app: simplify Damus::new constructor")
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 12:10:02 -08:00
William Casarin
804a7f0bf9
test: add args column test
...
Adding a testcase for a bug I noticed on another branch
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 10:55:14 -08:00
William Casarin
19d790fce0
timeline: add TimelineKind equality
...
we will be using these for tests
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 10:55:14 -08:00
William Casarin
9801a20429
storage: simplify imports
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 10:55:14 -08:00
William Casarin
d1059d9480
bin: extract logging setup into its own function
...
a little bit less messy
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 10:55:14 -08:00
William Casarin
2f20e8253e
app: simplify Damus::new constructor
...
Just take an egui::Context instead of an eframe::CreationContext.
This should make it easier to test the app via egui::Context::default();
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 10:53:29 -08:00
William Casarin
fab1257f6e
paths: remove hardcoded basepath
...
Before we were hardcoding the basepath with dirs, which isn't that
useful for testing, previews, or for android. Let's fix that.
This also moves the db and cache directories into our root DataPaths.
This is a breaking change, we don't have a migration step. sorry.
Signed-off-by: William Casarin <jb55@jb55.com >
2024-11-13 09:55:56 -08:00
Ken Sedgwick
877a30d2f6
Enable file_key_storage on Android
2024-11-11 10:14:42 -08:00
kernelkind
412ba9b565
use AcquireKeyState for AddColumn
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-02 22:18:27 -04:00
kernelkind
529b76094c
init external notifs column
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-11-02 22:18:23 -04:00
kernelkind
ee5dd5426f
tmp remove DeckAuthor columns
...
we don't yet have logic for handling switching 'deck authors' and this
is causing two problems:
1. the column title isn't renamed when the selected account is changed
2. when saving a deck author column to disk and the account is switched
beforehand, it switches to the current deck author's column
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-30 13:46:00 -04:00
kernelkind
56dd88b3a2
initial column storage
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-30 13:40:31 -04:00
Ken Sedgwick
ae4b7750cc
Restore RUST_LOG filtering, default to INFO if absent
2024-10-30 10:39:51 -07:00
kernelkind
503b7edeb5
use open instead of egui OpenUrl for mailto link
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-28 17:02:40 -04:00
William Casarin
1476be48cc
Merge 'Support view, key storage'
...
kernelkind (5):
file storage
write log files to disk daily and on panic
app window size persists on app close
support view
fix cmd line args bug
2024-10-28 13:30:16 -07:00
kernelkind
0c7b5e7e59
fix cmd line args bug
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-28 15:30:44 -04:00
kernelkind
309477dca4
support view
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-25 15:23:35 -04:00
kernelkind
03bfb34172
app window size persists on app close
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-25 15:23:35 -04:00
kernelkind
d3b4a9efc1
write log files to disk daily and on panic
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-25 15:23:35 -04:00
kernelkind
4f86e9604f
file storage
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-25 15:23:35 -04:00
William Casarin
d729823f33
Merge 'Update account_login_view.rs' #366
...
alltheseas (1):
Update account_login_view.rs
2024-10-22 10:35:57 -07:00
alltheseas
f83eb38342
Update account_login_view.rs
...
Changed "enter your key here" to include specific reference to npub, nsec, and nip05 as to show login options to the notedeck customer.
New text: "Enter your public key (npub, nip05), or private key (nsec) here..."
2024-10-18 12:11:32 -05:00
William Casarin
a2a8a9f66d
cargo fmt
...
Signed-off-by: William Casarin <jb55@jb55.com >
2024-10-16 08:52:43 -07:00
kernelkind
eedb4e1297
NoteActionResponse for note preview pfp clicking
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 13:21:39 -04:00
kernelkind
2d7da83872
rename TimelineResponse -> ColumnNoteResponse
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 12:35:06 -04:00
kernelkind
54d49f0110
reword comments and logs thread -> NotesHolder
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 11:54:05 -04:00
kernelkind
0a077ae797
fix unnecessary copy every frame
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 11:45:13 -04:00
kernelkind
e5ba897ce6
revert timeline no_scroll stuff
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-15 11:22:48 -04:00
kernelkind
dcb6620ddd
proper timelineTabs
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 17:39:10 -04:00
kernelkind
6ffe33e924
integrate profile view caching
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 13:29:36 -04:00
kernelkind
705a4bdf05
profile struct
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 13:29:36 -04:00
kernelkind
780fba3093
generify Threads
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 13:29:31 -04:00
kernelkind
d11d8aa9d0
consolidate timelineTab ui to TimelineTabView
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-14 10:58:43 -04:00
kernelkind
34aef30fed
click on thread pfp
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-11 17:58:29 -04:00
kernelkind
8e6a982843
profile unsub
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-11 17:47:03 -04:00
kernelkind
ce3f24abcd
add profile preview and implement scrolling
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-11 16:37:17 -04:00
kernelkind
44948fdff0
init profile routing
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-11 16:37:17 -04:00
kernelkind
a2fc754e1b
updated back arrow
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-08 21:38:43 -04:00
kernelkind
ee5aa32469
fix deck author bug & rename titles
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-08 19:10:25 -04:00
kernelkind
0d994172a0
unsubscribe timeline on deletion
...
Signed-off-by: kernelkind <kernelkind@gmail.com >
2024-10-07 14:02:37 -04:00